{Changes to enable non-local build}

(srcdir, VPATH): New vars.  Use where appropriate.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@268 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Thien-Thi Nguyen 2000-02-26 05:06:40 +00:00
commit 366660042c
6 changed files with 47 additions and 45 deletions

View file

@ -4,19 +4,25 @@
# LParse
#####################################################################
srcdir = @srcdir@
VPATH = @srcdir@
CC = @CC@
CFLAGS = @CFLAGS@
AR = @AR@
RANLIB = @RANLIB@
YACC = @YACC@
INCLUDE = -I. -I../Swig -I../DOH/Include -I../Preprocessor
INCLUDE = -I$(srcdir)/. \
-I$(srcdir)/../Swig \
-I$(srcdir)/../DOH/Include \
-I$(srcdir)/../Preprocessor
SRCS = cscanner.c
OBJS = parser.o cscanner.o
TARGET = liblparse.a
.c.o:
.c.o:
$(CC) $(CFLAGS) $(INCLUDE) -c -o $*.o $<
all: $(TARGET)
@ -28,26 +34,10 @@ $(TARGET): $(OBJS)
parser.o: parser.c
$(CC) $(CFLAGS) $(INCLUDE) -c -o $*.o $<
parser.c: parser.y
parser.c: parser.y
$(YACC) @YFLAGS@ parser.y
@cp y.tab.h lyacc.h
@cp y.tab.c parser.c
clean:
rm -f *.o *~ core *.so *.a y.tab*