CMiniLexicon::FindMajorSignatures(): use log file routines
[linguistica.git] / swig / Makefile-swig
blobf1fb1d111c4d45722db55ea205ffa8595ee9bf37
1 python: _lxa.so ;
3 include Makefile
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
10 # to rebuild.
12 swig_dep_args = -MF .$@.d -MMD
14 SWIG_CFLAGS := $(filter -D% -I%,$(ALL_CFLAGS)) -I$(PY_H_DIR)
16 lxa_wrap.cxx: lxa.i
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)
26 swigclean:
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