Added "module" target to build a dynamic module, got "clean" target to
invoke "chicken_clean" target in Examples/Makefile, and let Examples/Makefile handle all the compiling. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4500 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
61ec2b6351
commit
dc903ccc6e
8 changed files with 151 additions and 87 deletions
|
|
@ -1,10 +1,13 @@
|
|||
TOP = ../..
|
||||
SWIG = $(TOP)/../swig
|
||||
CHICKGEN = example_wrap.c csi.c precsi.c oexample.c
|
||||
SRCS = $(CHICKGEN)
|
||||
CHICKSRCS = precsi.c oexample.c
|
||||
SRCS = example_wrap.c
|
||||
CXXSRCS =
|
||||
CHICKGEN = $(CHICKSRCS) csi.c example_wrap.c
|
||||
TARGET = constants
|
||||
INCLUDE = -I$(SOURCE_DIR)
|
||||
INCLUDE =
|
||||
SWIGOPT =
|
||||
CFLAGS =
|
||||
|
||||
all:: $(TARGET)
|
||||
|
||||
|
|
@ -24,15 +27,22 @@ oexample.c: example.scm
|
|||
$(MAKE) -f $(TOP)/Makefile TARGET='oexample.c' \
|
||||
INTERFACE='$<' chicken
|
||||
|
||||
$(TARGET): $(SRCS)
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
$(TARGET): csi.c $(CHICKSRCS) $(SRCS) $(CXXSRCS)
|
||||
$(MAKE) -f $(TOP)/Makefile \
|
||||
CHICKSRCS='$(CHICKSRCS)' SRCS='$(SRCS)' CXXSRCS='$(CXXSRCS)' \
|
||||
INCLUDE='$(INCLUDE)' SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' \
|
||||
INTERFACE='$(INTERFACE)' chicken_static
|
||||
SWIG='$(SWIG)' INTERFACE='$(INTERFACE)' chicken_static
|
||||
|
||||
module:: $(CHICKSRCS) $(SRCS) $(CXXSRCS)
|
||||
$(MAKE) -f $(TOP)/Makefile \
|
||||
CHICKSRCS='$(CHICKSRCS)' SRCS='$(SRCS)' CXXSRCS='$(CXXSRCS)' \
|
||||
INCLUDE='$(INCLUDE)' SWIGOPT='$(SWIGOPT)' TARGET='module' \
|
||||
SWIG='$(SWIG)' INTERFACE='$(INTERFACE)' chicken_module
|
||||
|
||||
clean::
|
||||
rm -f *_wrap* *.o core *~ *.so *.stackdump STACKTRACE
|
||||
rm -f $(CHICKGEN) csi.c precsi.c oexample.c
|
||||
rm -f example.scm
|
||||
$(MAKE) -f $(TOP)/Makefile chicken_clean
|
||||
rm -f $(CHICKGEN)
|
||||
rm -f example.scm example_generic.scm example_clos.scm
|
||||
rm -f $(TARGET)
|
||||
|
||||
check:: all
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue