2 $(error LIBNAME not defined
, fix your library Makefile
)
6 SWIG_PY
=$(LIBNAME
)_c.py
7 SWIG_C
=$(LIBNAME
)_wrap.c
8 SWIG_LIB
=_
$(LIBNAME
)_c.so
12 INCLUDES
+=$(addprefix -I
$(TOPDIR
)/include/, $(INCLUDE
))
14 ALL
+=$(SWIG_LIB
) $(SWIG_PY
)
16 $(SWIG_C
) $(SWIG_PY
): $(SWIG_SRC
)
18 $(SWIG
) $(SWIGOPTS
) -python
$(INCLUDES
) $<
20 @echo
"SWIG $(LIBNAME)"
21 @
$(SWIG
) $(SWIGOPTS
) -python
$(INCLUDES
) $<
24 $(SWIG_LIB
): $(SWIG_C
)
26 $(CC
) $< $(CFLAGS
) $(LDFLAGS
) -I
$(PYTHON_INCLUDE
) --shared
-lGP
$(LDLIBS
) -L
$(TOPDIR
)/build
/ -o
$@
29 @
$(CC
) $< $(CFLAGS
) $(LDFLAGS
) -I
$(PYTHON_INCLUDE
) --shared
-lGP
$(LDLIBS
) -L
$(TOPDIR
)/build
/ -o
$@
32 endif # ifneq ($(SWIG),)
34 CLEAN
+=$(SWIG_C
) $(SWIG_PY
) $(SWIG_LIB
) *.pyc