Moved Makefiles and configure.in to the top level, and added .cvsignore
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
This commit is contained in:
parent
ad9cb6a2d7
commit
c4a023be78
11 changed files with 71 additions and 99 deletions
52
Makefile.in
Normal file
52
Makefile.in
Normal file
|
|
@ -0,0 +1,52 @@
|
||||||
|
#######################################################################
|
||||||
|
# $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.*
|
||||||
0
Source/.cvsignore
Normal file
0
Source/.cvsignore
Normal file
2
Source/DOH/.cvsignore
Normal file
2
Source/DOH/.cvsignore
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
Makefile
|
||||||
|
y.tab.*
|
||||||
|
|
@ -1,50 +0,0 @@
|
||||||
# Generated automatically from Makefile.in by configure.
|
|
||||||
#######################################################################
|
|
||||||
# $Header$
|
|
||||||
# DOH
|
|
||||||
#######################################################################
|
|
||||||
|
|
||||||
#.KEEP_STATE:
|
|
||||||
|
|
||||||
# Set your C++ compiler here. g++ works on most machines,
|
|
||||||
# but you might have to change it depending on your installation.
|
|
||||||
#
|
|
||||||
CC = cc
|
|
||||||
prefix = /usr/local
|
|
||||||
|
|
||||||
# Comment out the following line if you're on an SGI or don't have ranlib!
|
|
||||||
RANLIB = ranlib
|
|
||||||
AR = ar
|
|
||||||
|
|
||||||
########################################################################
|
|
||||||
# Normally, you shouldn't have to change anything below this point #
|
|
||||||
########################################################################
|
|
||||||
|
|
||||||
LIBOBJS = callable.o void.o fio.o memory.o base.o file.o list.o hash.o string.o
|
|
||||||
|
|
||||||
LIBSRCS = callable.c void.c fio.c memory.c base.c file.c list.c hash.c string.c
|
|
||||||
|
|
||||||
LIBHEADERS = ../Include/doh.h
|
|
||||||
LIB = ../libdoh.a
|
|
||||||
INCLUDE = -I../Include
|
|
||||||
CFLAGS =
|
|
||||||
SHELL = /bin/sh
|
|
||||||
|
|
||||||
#
|
|
||||||
# Rules for creation of a .o file from .cxx
|
|
||||||
.SUFFIXES: .c
|
|
||||||
.c.o:
|
|
||||||
$(CC) $(INCLUDE) $(CFLAGS) -c -o $*.o $<
|
|
||||||
|
|
||||||
all: $(LIB)
|
|
||||||
|
|
||||||
$(LIB): $(LIBOBJS)
|
|
||||||
@echo "Building library"
|
|
||||||
$(AR) cr $(LIB) $(LIBOBJS)
|
|
||||||
$(RANLIB) $(LIB)
|
|
||||||
|
|
||||||
clean::
|
|
||||||
rm -f *.o ../libdoh.a
|
|
||||||
nuke::
|
|
||||||
rm -f Makefile *~ #* core a.out
|
|
||||||
|
|
||||||
|
|
@ -1,46 +0,0 @@
|
||||||
#######################################################################
|
|
||||||
# $Header$
|
|
||||||
# Simplified Wrapper and Interface Generator (SWIG)
|
|
||||||
#
|
|
||||||
#######################################################################
|
|
||||||
|
|
||||||
TARGET = swig
|
|
||||||
SHELL = /bin/sh
|
|
||||||
CC = @CC@
|
|
||||||
CXX = @CXX@
|
|
||||||
LIBS =
|
|
||||||
|
|
||||||
#
|
|
||||||
#
|
|
||||||
#
|
|
||||||
|
|
||||||
DIRS = DOH Core Preprocessor SWIG1.1 Modules1.1
|
|
||||||
SWIGOBJS = SWIG1.1/*.o Modules1.1/*.o DOH/Doh/*.o Core/*.o Preprocessor/*.o
|
|
||||||
|
|
||||||
swig: objs
|
|
||||||
$(CXX) $(SWIGOBJS) $(LIBS) -o $(TARGET)
|
|
||||||
|
|
||||||
objs:
|
|
||||||
@for i in $(DIRS); \
|
|
||||||
do \
|
|
||||||
cd $$i; $(MAKE); cd .. ;\
|
|
||||||
done;
|
|
||||||
|
|
||||||
clean:
|
|
||||||
@for i in $(DIRS); \
|
|
||||||
do \
|
|
||||||
cd $$i; $(MAKE) clean; cd ..; \
|
|
||||||
done;
|
|
||||||
rm -f swig
|
|
||||||
|
|
||||||
nuke: clean
|
|
||||||
@cd SWIG; $(MAKE) nuke
|
|
||||||
@cd Modules; $(MAKE) nuke
|
|
||||||
@cd Examples; $(MAKE) nuke
|
|
||||||
@cd Tests; $(MAKE) clean
|
|
||||||
@cd Runtime; $(MAKE) clean
|
|
||||||
rm -f Makefile Makefile.template config.*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
2
Source/Modules1.1/.cvsignore
Normal file
2
Source/Modules1.1/.cvsignore
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
Makefile
|
||||||
|
y.tab.*
|
||||||
2
Source/Preprocessor/.cvsignore
Normal file
2
Source/Preprocessor/.cvsignore
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
Makefile
|
||||||
|
y.tab.*
|
||||||
5
Source/SWIG1.1/.cvsignore
Normal file
5
Source/SWIG1.1/.cvsignore
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
Makefile
|
||||||
|
y.tab.*
|
||||||
|
parser.h
|
||||||
|
parser.cxx
|
||||||
|
|
||||||
2
Source/Swig/.cvsignore
Normal file
2
Source/Swig/.cvsignore
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
Makefile
|
||||||
|
y.tab.*
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
dnl Process this file with autoconf to produce a configure script.
|
dnl Process this file with autoconf to produce a configure script.
|
||||||
AC_INIT(Core/swigcore.h)
|
AC_INIT(Source/Core/swigcore.h)
|
||||||
AC_PREREQ(2.0)
|
AC_PREREQ(2.0)
|
||||||
|
|
||||||
# Set name for machine-dependent library files
|
# Set name for machine-dependent library files
|
||||||
|
|
@ -168,5 +168,8 @@ fi
|
||||||
AC_MSG_RESULT($RPATH)
|
AC_MSG_RESULT($RPATH)
|
||||||
AC_SUBST(RPATH)
|
AC_SUBST(RPATH)
|
||||||
|
|
||||||
|
# Note we write DOH's Makefiles for it -- if it has any special configure
|
||||||
AC_OUTPUT(Makefile Core/Makefile DOH/Doh/Makefile DOH/Makefile Preprocessor/Makefile SWIG1.1/Makefile Modules1.1/Makefile)
|
# stuff, we're going to skip it!
|
||||||
|
AC_OUTPUT(Makefile Source/Core/Makefile Source/DOH/Doh/Makefile
|
||||||
|
Source/DOH/Makefile Source/Preprocessor/Makefile Source/SWIG1.1/Makefile
|
||||||
|
Source/Modules1.1/Makefile)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue