{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:
parent
f30966e6d4
commit
66b260c1ff
6 changed files with 47 additions and 45 deletions
|
|
@ -1,8 +1,11 @@
|
|||
#######################################################################
|
||||
# $Header$
|
||||
# DOH
|
||||
# DOH
|
||||
#######################################################################
|
||||
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
#.KEEP_STATE:
|
||||
|
||||
# Set your C++ compiler here. g++ works on most machines,
|
||||
|
|
@ -19,31 +22,31 @@ 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
|
||||
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
|
||||
LIBHEADERS = $(srcdir)/../Include/doh.h
|
||||
LIB = libdoh.a
|
||||
INCLUDE = -I$(srcdir)/../Include
|
||||
CFLAGS = -DDOH_STRING_UPDATE_LINES
|
||||
SHELL = /bin/sh
|
||||
|
||||
#
|
||||
# Rules for creation of a .o file from .cxx
|
||||
.SUFFIXES: .c
|
||||
.c.o:
|
||||
.c.o:
|
||||
$(CC) $(INCLUDE) $(CFLAGS) -c -o $*.o $<
|
||||
|
||||
all: $(LIB)
|
||||
|
||||
$(LIB): $(LIBOBJS)
|
||||
$(LIB): $(LIBOBJS)
|
||||
@echo "Building library"
|
||||
$(AR) cr $(LIB) $(LIBOBJS)
|
||||
$(RANLIB) $(LIB)
|
||||
cp -f $(LIB) ..
|
||||
|
||||
clean::
|
||||
rm -f *.o ../libdoh.a
|
||||
rm -f *.o $(LIB) ../$(LIB)
|
||||
nuke::
|
||||
rm -f Makefile *~ #* core a.out
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue