{Changes to enable non-local build}

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


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

View file

@ -2,6 +2,9 @@
# $Header$
#----------------------------------------------------------------
srcdir = @srcdir@
VPATH = @srcdir@
SRCS = tree.c stype.c scanner.c include.c getopt.c misc.c super.c
OBJS = tree.o stype.o scanner.o include.o getopt.o misc.o super.o
@ -12,10 +15,10 @@ CC = @CC@
AR = @AR@
RANLIB = @RANLIB@
CFLAGS = @CFLAGS@
INCLUDE = -I. -I../DOH/Include
INCLUDE = -I$(srcdir)/. -I$(srcdir)/../DOH/Include
TARGET = libswig.a
.c.o:
.c.o:
$(CC) $(CFLAGS) $(INCLUDE) -c -o $*.o $<
all: $(TARGET)
@ -36,4 +39,3 @@ typetest: type.c super.o
clean:
rm -f *.o *~ core *.so *.a *_wrap.*