Initial addition, to get rid of dependence on configure.in
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4331 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
99fede4c84
commit
5ba1ebe3c5
8 changed files with 320 additions and 0 deletions
38
Examples/chicken/simple/Makefile
Normal file
38
Examples/chicken/simple/Makefile
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
TOP = ../..
|
||||
SWIG = $(TOP)/../swig
|
||||
CHICKGEN = example_wrap.c csi.c precsi.c oexample.c
|
||||
SRCS = $(CHICKGEN) ./example.c
|
||||
TARGET = simple
|
||||
INCLUDE = -I.
|
||||
SWIGOPT =
|
||||
|
||||
all:: $(TARGET)
|
||||
|
||||
csi.c:
|
||||
$(MAKE) -f $(TOP)/Makefile TARGET='csi.c' \
|
||||
INTERFACE='precsi' chicken_csi
|
||||
|
||||
precsi.c: ./precsi.scm
|
||||
$(MAKE) -f $(TOP)/Makefile TARGET='precsi.c' \
|
||||
INTERFACE='$<' chicken
|
||||
|
||||
example_wrap.c example.scm: ./example.i
|
||||
$(MAKE) -f $(TOP)/Makefile SWIG='$(SWIG)' SWIGOPT='$(SWIGOPT)' \
|
||||
INCLUDE='$(INCLUDE)' INTERFACE='example.i' chicken_c
|
||||
|
||||
oexample.c: example.scm
|
||||
$(MAKE) -f $(TOP)/Makefile TARGET='oexample.c' \
|
||||
INTERFACE='$<' chicken
|
||||
|
||||
$(TARGET): $(SRCS)
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
INCLUDE='$(INCLUDE)' SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' \
|
||||
INTERFACE='$(INTERFACE)' chicken_static
|
||||
|
||||
clean::
|
||||
rm -f *_wrap* *.o core *~ *.so *.stackdump STACKTRACE
|
||||
rm -f $(CHICKGEN)
|
||||
rm -f example.scm
|
||||
rm -f $(TARGET)
|
||||
|
||||
check:: all
|
||||
Loading…
Add table
Add a link
Reference in a new issue