diff options
author | Mike Buland <eichlan@xagasoft.com> | 2009-12-21 18:03:28 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2009-12-21 18:03:28 +0000 |
commit | 51e21a316be6e052251b3dfc7d671061ebd67cee (patch) | |
tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /Makefile | |
parent | ad6f4dfcc671d3f8d458c42b0992956f2a2cf979 (diff) | |
download | build-51e21a316be6e052251b3dfc7d671061ebd67cee.tar.gz build-51e21a316be6e052251b3dfc7d671061ebd67cee.tar.bz2 build-51e21a316be6e052251b3dfc7d671061ebd67cee.tar.xz build-51e21a316be6e052251b3dfc7d671061ebd67cee.zip |
Removed the old trunk contents. About to load up m3
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/Makefile b/Makefile deleted file mode 100644 index c1cf095..0000000 --- a/Makefile +++ /dev/null | |||
@@ -1,51 +0,0 @@ | |||
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 archivebase.cpp archivebase.h util.h util.cpp,src/$f) | ||
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)) | ||
4 | REV:=$(shell svn info | grep "Revision" | cut -d\ -f2) | ||
5 | VER:=r$(REV) | ||
6 | PKG:=build-$(VER).tar.bz2 | ||
7 | |||
8 | .PHONY: all extern clean distclean package | ||
9 | # .SILENT: | ||
10 | |||
11 | all: extern build | ||
12 | |||
13 | package: clean distclean extern $(PKG) | ||
14 | |||
15 | $(PKG): | ||
16 | mkdir build-$(VER) | ||
17 | mkdir build-$(VER)/src | ||
18 | mkdir build-$(VER)/src/bu | ||
19 | cp -a src/*.{cpp,h,y,l} build-$(VER)/src | ||
20 | cp -a src/bu/*.{cpp,h} build-$(VER)/src/bu | ||
21 | cp -a build.conf build-$(VER) | ||
22 | cp -a Makefile.slim build-$(VER)/Makefile | ||
23 | tar -c build-$(VER) | bzip2 -9 > $(PKG) | ||
24 | rm -Rf build-$(VER) | ||
25 | |||
26 | clean: | ||
27 | -rm -Rf build $(OBJ) | ||
28 | |||
29 | distclean: | ||
30 | -rm -Rf $(LIBBU) | ||
31 | -rm -Rf src/bu | ||
32 | |||
33 | extern: $(LIBBU) | ||
34 | |||
35 | $(LIBBU): | ||
36 | if [ ! -f src/bu/$@ ]; then mkdir -p src/bu; wget -nv -Psrc/bu http://svn.xagasoft.com/libbu++/trunk/$@; fi | ||
37 | |||
38 | build: src/build.yy.c src/build.tab.c $(OBJ) | ||
39 | g++ -ggdb -ldl -o build $(OBJ) | ||
40 | |||
41 | %.o: %.cpp | ||
42 | g++ -ggdb -Isrc -c -o $@ $< | ||
43 | |||
44 | %.o: %.c | ||
45 | g++ -ggdb -Isrc -c -o $@ $< | ||
46 | |||
47 | %.yy.c: %.l | ||
48 | flex --bison-bridge --bison-locations -o $@ $< | ||
49 | |||
50 | %.tab.c: %.y | ||
51 | bison -v -b$(patsubst %.tab.c,%,$@) $< | ||