diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,4 +1,4 @@ | |||
1 | LIBBU:=$(foreach f,paramproc.h paramproc.cpp fstring.h fstring.cpp exceptionbase.cpp exceptionbase.h archive.cpp archive.h archival.cpp archival.h plugger.h plugger.cpp singleton.h hash.cpp hash.h file.h file.cpp stream.h stream.cpp list.h list.cpp set.h set.cpp trace.h trace.cpp util.h fbasicstring.cpp fbasicstring.h,src/$f) | 1 | LIBBU:=$(foreach f,paramproc.h paramproc.cpp fstring.h fstring.cpp exceptionbase.cpp exceptionbase.h archive.cpp archive.h archival.cpp archival.h plugger.h plugger.cpp singleton.h hash.cpp hash.h file.h file.cpp stream.h stream.cpp list.h list.cpp set.h set.cpp trace.h trace.cpp util.h fbasicstring.cpp fbasicstring.h sharedcore.cpp sharedcore.h,src/$f) |
2 | SRC:=$(sort $(wildcard src/*.cpp) $(patsubst src/%,src/bu/%,$(filter %.cpp,$(LIBBU)))) | 2 | SRC:=$(sort $(wildcard src/*.cpp) $(patsubst src/%,src/bu/%,$(filter %.cpp,$(LIBBU)))) |
3 | OBJ:=src/build.yy.o src/build.tab.o $(patsubst %.cpp,%.o,$(SRC)) | 3 | OBJ:=src/build.yy.o src/build.tab.o $(patsubst %.cpp,%.o,$(SRC)) |
4 | REV:=$(shell svn info | grep "Revision" | cut -d\ -f2) | 4 | REV:=$(shell svn info | grep "Revision" | cut -d\ -f2) |
@@ -33,8 +33,7 @@ distclean: | |||
33 | extern: $(LIBBU) | 33 | extern: $(LIBBU) |
34 | 34 | ||
35 | $(LIBBU): | 35 | $(LIBBU): |
36 | mkdir -p src/bu | 36 | if [ ! -f src/bu/$@ ]; then mkdir -p src/bu; wget -nv -Psrc/bu http://svn.xagasoft.com/libbu++/trunk/$@; fi |
37 | wget -nv -Psrc/bu http://svn.xagasoft.com/libbu++/trunk/$@ | ||
38 | 37 | ||
39 | build: src/build.yy.c src/build.tab.c $(OBJ) | 38 | build: src/build.yy.c src/build.tab.c $(OBJ) |
40 | g++ -ggdb -ldl -o build $(OBJ) | 39 | g++ -ggdb -ldl -o build $(OBJ) |