Big changes. The makefiles now recurse correctly, and targets (e.g.
experiment, swim, swig, pymod, etc.) are passed along to sub-makes correctly. Also, a mechanism has been devised to avoid the use of *.o in the toplevel Makefile, as it was linking files which were not intended for use in the final executable. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@148 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
f0d2cf2a9e
commit
d2c40e1b17
10 changed files with 171 additions and 73 deletions
|
|
@ -1,3 +1,7 @@
|
|||
#####################################################################
|
||||
# LParse
|
||||
#####################################################################
|
||||
|
||||
# Generated automatically from Makefile.in by configure.
|
||||
|
||||
CC = @CC@
|
||||
|
|
@ -14,12 +18,17 @@ YACC = @YACC@
|
|||
INCLUDE = -I. -I../Swig -I../DOH/Include -I../Preprocessor
|
||||
|
||||
SRCS = cscanner.c type.c
|
||||
OBJS = cscanner.o type.o
|
||||
OBJS = parser.o cscanner.o type.o
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CCSHARED) $(INCLUDE) $(CFLAGS) -c -o $*.o $<
|
||||
|
||||
all: parser.o $(OBJS)
|
||||
#####################################################################
|
||||
# TARGET: experiment
|
||||
#####################################################################
|
||||
# friendly to the toplevel makefile
|
||||
experiment: $(OBJS)
|
||||
for i in $(OBJS); do echo Source/LParse/$$i >> $(OBJS_FILE); done
|
||||
|
||||
parser.o: parser.c
|
||||
$(CC) $(CCSHARED) $(INCLUDE) $(CFLAGS) -c -o $*.o $<
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue