5 PY_H_DIR = /usr/include/python2.5
7 # Note: swig does not handle the -MP option, so we omit it.
8 # If a header is removed from the project, run
9 # "rm lxa_wrap.cxx .lxa_wrap.cxx.d" by hand to get lxa_wrap.cxx
12 swig_dep_args = -MF .$@.d -MMD
14 SWIG_CFLAGS := $(filter -D% -I%,$(ALL_CFLAGS)) -I$(PY_H_DIR)
17 swig -c++ $(swig_dep_args) $(SWIG_CFLAGS) -Iswig -python lxa.i
19 lxa_wrap.o: lxa_wrap.cxx
20 $(quiet_compile) $(CXX) -c $< $(dep_args) -I$(PY_H_DIR) $(ALL_CFLAGS)
22 _lxa.so: lxa_wrap.o $(OBJECTS)
23 $(quiet_link) $(CXX) -shared -o $@ lxa_wrap.o \
24 $(OBJECTS) $(ALL_LDFLAGS) $(LIBS)
27 rm -f _lxa.so lxa_wrap.cxx lxa_wrap.o lxa.py lxa.pyc
28 rm -f .lxa_wrap.cxx.d .lxa_wrap.o.d