A few last-minute changes to the previous commit :)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@149 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
4d6f8c3326
commit
a41d5a1740
3 changed files with 22 additions and 2 deletions
|
|
@ -20,7 +20,7 @@ LIB_DIR = $(prefix)/lib
|
||||||
GOAL := all
|
GOAL := all
|
||||||
OBJS_FILE := $(srcdir)/objs.tmp
|
OBJS_FILE := $(srcdir)/objs.tmp
|
||||||
OBJS = `cat $(OBJS_FILE)`
|
OBJS = `cat $(OBJS_FILE)`
|
||||||
MODULES :=
|
MODULES := `ls Source/`
|
||||||
|
|
||||||
#####################################################################
|
#####################################################################
|
||||||
# TARGET: swig
|
# TARGET: swig
|
||||||
|
|
@ -65,7 +65,7 @@ _recurse:
|
||||||
for i in $(MODULES); \
|
for i in $(MODULES); \
|
||||||
do \
|
do \
|
||||||
if [ -d Source/$$i -a -f Source/$$i/Makefile ]; then \
|
if [ -d Source/$$i -a -f Source/$$i/Makefile ]; then \
|
||||||
(cd Source/$$i && $(MAKE) $(TARGET) OBJS_FILE=$(OBJS_FILE)) || exit 1; \
|
(cd Source/$$i && $(MAKE) $(GOAL) OBJS_FILE=$(OBJS_FILE)) || exit 1; \
|
||||||
cd $$ORIG_DIR ;\
|
cd $$ORIG_DIR ;\
|
||||||
fi \
|
fi \
|
||||||
done;
|
done;
|
||||||
|
|
|
||||||
|
|
@ -28,3 +28,9 @@ swig: $(OBJS)
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o *~ core *.so *.a
|
rm -f *.o *~ core *.so *.a
|
||||||
|
|
||||||
|
######################################################################
|
||||||
|
# TARGET: experiment
|
||||||
|
#####################################################################
|
||||||
|
# same as swig
|
||||||
|
experiment: swig
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -88,8 +88,22 @@ all: swig
|
||||||
swig: $(OBJS)
|
swig: $(OBJS)
|
||||||
for i in $(OBJS); do echo Source/Swig/$$i >> $(OBJS_FILE); done
|
for i in $(OBJS); do echo Source/Swig/$$i >> $(OBJS_FILE); done
|
||||||
|
|
||||||
|
######################################################################
|
||||||
|
# TARGET: experiment
|
||||||
|
#####################################################################
|
||||||
|
# same as swig
|
||||||
|
experiment: swig
|
||||||
|
|
||||||
|
######################################################################
|
||||||
|
# TARGET: python
|
||||||
|
#####################################################################
|
||||||
|
# not integrated with the mother ship yet
|
||||||
python: $(TARGET) # the python module
|
python: $(TARGET) # the python module
|
||||||
|
|
||||||
|
######################################################################
|
||||||
|
# TARGET: supertest
|
||||||
|
#####################################################################
|
||||||
|
# not integrated with the mother ship yet
|
||||||
supertest: super.c # test the super module
|
supertest: super.c # test the super module
|
||||||
$(CC) $(CCSHARED) $(INCLUDE) $(CFLAGS) -g -DSUPER_TEST -c \
|
$(CC) $(CCSHARED) $(INCLUDE) $(CFLAGS) -g -DSUPER_TEST -c \
|
||||||
-o supertest.o super.c
|
-o supertest.o super.c
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue