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
40
Examples/GIFPlot/Chicken/full/Makefile
Normal file
40
Examples/GIFPlot/Chicken/full/Makefile
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
TOP = ../../..
|
||||
SWIG = $(TOP)/../swig
|
||||
CHICKGEN = gifplot_wrap.c csi.c precsi.c ogifplot.c
|
||||
SRCS = $(CHICKGEN)
|
||||
TARGET = gifplot
|
||||
INCLUDE = -I. -I../../Include
|
||||
LIBS = -L../.. -lgifplot -lm
|
||||
SWIGOPT = -I../../Include
|
||||
|
||||
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
|
||||
|
||||
gifplot_wrap.c gifplot.scm: ./gifplot.i
|
||||
$(MAKE) -f $(TOP)/Makefile SWIG='$(SWIG)' SWIGOPT='$(SWIGOPT)' \
|
||||
INCLUDE='$(INCLUDE)' INTERFACE='gifplot.i' chicken_c
|
||||
|
||||
ogifplot.c: gifplot.scm
|
||||
$(MAKE) -f $(TOP)/Makefile TARGET='ogifplot.c' \
|
||||
INTERFACE='$<' chicken
|
||||
|
||||
$(TARGET): $(SRCS)
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
INCLUDE='$(INCLUDE)' SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' \
|
||||
LIBS='$(LIBS)' INTERFACE='$(INTERFACE)' chicken_static
|
||||
|
||||
clean::
|
||||
rm -f *_wrap* *.o core *~ *.so *.stackdump STACKTRACE
|
||||
rm -f $(CHICKGEN)
|
||||
rm -f gifplot.scm
|
||||
rm -f $(TARGET)
|
||||
rm -f *.gif
|
||||
|
||||
check:: all
|
||||
40
Examples/GIFPlot/Chicken/simple/Makefile
Normal file
40
Examples/GIFPlot/Chicken/simple/Makefile
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
TOP = ../../..
|
||||
SWIG = $(TOP)/../swig
|
||||
CHICKGEN = simple_wrap.c csi.c precsi.c osimple.c
|
||||
SRCS = $(CHICKGEN)
|
||||
TARGET = simple
|
||||
INCLUDE = -I. -I../../Include
|
||||
LIBS = -L../.. -lgifplot -lm
|
||||
SWIGOPT = -I../../Include
|
||||
|
||||
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
|
||||
|
||||
simple_wrap.c simple.scm: ./simple.i
|
||||
$(MAKE) -f $(TOP)/Makefile SWIG='$(SWIG)' SWIGOPT='$(SWIGOPT)' \
|
||||
INCLUDE='$(INCLUDE)' INTERFACE='simple.i' chicken_c
|
||||
|
||||
osimple.c: simple.scm
|
||||
$(MAKE) -f $(TOP)/Makefile TARGET='osimple.c' \
|
||||
INTERFACE='$<' chicken
|
||||
|
||||
$(TARGET): $(SRCS)
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
INCLUDE='$(INCLUDE)' SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' \
|
||||
LIBS='$(LIBS)' INTERFACE='$(INTERFACE)' chicken_static
|
||||
|
||||
clean::
|
||||
rm -f *_wrap* *.o core *~ *.so *.stackdump STACKTRACE
|
||||
rm -f $(CHICKGEN)
|
||||
rm -f simple.scm
|
||||
rm -f $(TARGET)
|
||||
rm -f *.gif
|
||||
|
||||
check:: all
|
||||
42
Examples/chicken/class/Makefile
Normal file
42
Examples/chicken/class/Makefile
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
TOP = ../..
|
||||
SWIG = $(TOP)/../swig
|
||||
CHICKGEN = csi.o precsi.o oexample.o example.cxx example_wrap.cxx
|
||||
SRCS = $(CHICKGEN)
|
||||
TARGET = class
|
||||
INCLUDE =
|
||||
SWIGOPT =
|
||||
CFLAGS =
|
||||
|
||||
all:: $(TARGET) example_generic.scm example_clos.scm
|
||||
|
||||
.c.o:
|
||||
$(MAKE) -f $(TOP)/Makefile CFLAGS='$(CFLAGS)' TARGET='$@' \
|
||||
INCLUDE='$(INCLUDE)' INTERFACE='$<' compile
|
||||
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.cxx example.scm example_generic.scm example_clos.scm: example.i
|
||||
$(MAKE) -f $(TOP)/Makefile SWIG='$(SWIG)' SWIGOPT='$(SWIGOPT)' \
|
||||
INCLUDE='$(INCLUDE)' INTERFACE='example.i' chicken_cpp
|
||||
|
||||
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_cpp_static
|
||||
|
||||
clean::
|
||||
rm -f *_wrap* *.o core *~ *.so *.stackdump STACKTRACE
|
||||
rm -f $(CHICKGEN)
|
||||
rm -f example.scm example_generic.scm example_clos.scm
|
||||
rm -f $(TARGET)
|
||||
|
||||
check:: all
|
||||
38
Examples/chicken/constants/Makefile
Normal file
38
Examples/chicken/constants/Makefile
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
TOP = ../..
|
||||
SWIG = $(TOP)/../swig
|
||||
CHICKGEN = example_wrap.c csi.c precsi.c oexample.c
|
||||
SRCS = $(CHICKGEN)
|
||||
TARGET = constants
|
||||
INCLUDE = -I$(SOURCE_DIR)
|
||||
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
|
||||
38
Examples/chicken/multimap/Makefile
Normal file
38
Examples/chicken/multimap/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 = multimap
|
||||
INCLUDE =
|
||||
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
|
||||
43
Examples/chicken/overload/Makefile
Normal file
43
Examples/chicken/overload/Makefile
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
TOP = ../..
|
||||
SWIG = $(TOP)/../swig
|
||||
CHICKGEN = csi.o precsi.o oexample.o example.cxx example_wrap.cxx
|
||||
SRCS = $(CHICKGEN)
|
||||
TARGET = overload
|
||||
INCLUDE =
|
||||
SWIGOPT =
|
||||
CFLAGS =
|
||||
|
||||
all:: $(TARGET) example_generic.scm example_clos.scm
|
||||
|
||||
.c.o:
|
||||
$(MAKE) -f $(TOP)/Makefile CFLAGS='$(CFLAGS)' TARGET='$@' \
|
||||
INCLUDE='$(INCLUDE)' INTERFACE='$<' compile
|
||||
|
||||
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.cxx example.scm example_generic.scm example_clos.scm: example.i
|
||||
$(MAKE) -f $(TOP)/Makefile SWIG='$(SWIG)' SWIGOPT='$(SWIGOPT)' \
|
||||
INCLUDE='$(INCLUDE)' INTERFACE='example.i' chicken_cpp
|
||||
|
||||
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_cpp_static
|
||||
|
||||
clean::
|
||||
rm -f *_wrap* *.o core *~ *.so *.stackdump STACKTRACE
|
||||
rm -f $(CHICKGEN)
|
||||
rm -f example.scm example_generic.scm example_clos.scm
|
||||
rm -f $(TARGET)
|
||||
|
||||
check:: all
|
||||
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
|
||||
41
Examples/chicken/zlib/Makefile
Normal file
41
Examples/chicken/zlib/Makefile
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
TOP = ../..
|
||||
SWIG = $(TOP)/../swig
|
||||
CHICKGEN = example_wrap.c csi.c precsi.c oexample.c
|
||||
SRCS = $(CHICKGEN)
|
||||
TARGET = zlib
|
||||
INCLUDE = -I.
|
||||
LIBS = -lz
|
||||
SWIGOPT = -prefix zlib -mixed -I/usr/include
|
||||
|
||||
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 || \
|
||||
(echo Did you read the README? && exit 1)
|
||||
|
||||
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)' \
|
||||
LIBS='$(LIBS)' INTERFACE='$(INTERFACE)' chicken_static || \
|
||||
(echo Did you read the README? && exit 1)
|
||||
|
||||
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