files to most subdirectories to make things a bit cleaner. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@37 626c5289-ae23-0410-ae9c-e8d60b6d4f22
52 lines
1.1 KiB
Makefile
52 lines
1.1 KiB
Makefile
#######################################################################
|
|
# $Header$
|
|
# Simplified Wrapper and Interface Generator (SWIG)
|
|
#
|
|
#######################################################################
|
|
|
|
TARGET = swig
|
|
SHELL = /bin/sh
|
|
CC = @CC@
|
|
CXX = @CXX@
|
|
LIBS =
|
|
|
|
#
|
|
#
|
|
#
|
|
|
|
SWIGOBJS = SWIG1.1/*.o Modules1.1/*.o DOH/Doh/*.o Core/*.o Preprocessor/*.o
|
|
|
|
swig: objs
|
|
$(CXX) $(SWIGOBJS) $(LIBS) -o $(TARGET)
|
|
|
|
objs:
|
|
@ORIG_DIR=`pwd`; \
|
|
for i in `ls Source/`; \
|
|
do \
|
|
if [ -d Source/$$i -a -f Source/$$i/Makefile ]; then \
|
|
(cd Source/$$i && $(MAKE)) || exit 1; \
|
|
cd $$ORIG_DIR ;\
|
|
fi \
|
|
done;
|
|
|
|
clean:
|
|
@ORIG_DIR=`pwd`; \
|
|
for i in `ls Source/`; \
|
|
do \
|
|
if [ -d Source/$$i -a -f Source/$$i/Makefile ]; then \
|
|
(cd Source/$$i && $(MAKE) clean) || exit 1; \
|
|
cd $$ORIG_DIR ;\
|
|
fi \
|
|
done;
|
|
rm -f swig
|
|
|
|
nuke:
|
|
@ORIG_DIR=`pwd`; \
|
|
for i in `ls Source/`; \
|
|
do \
|
|
if [ -d Source/$$i -a -f Source/$$i/Makefile ]; then \
|
|
(cd Source/$$i && $(MAKE) nuke) || exit 1; \
|
|
cd $$ORIG_DIR ;\
|
|
fi \
|
|
done;
|
|
rm -f Makefile Makefile.template config.*
|