diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
| @@ -1,12 +1,12 @@ | |||
| 1 | # | 1 | # |
| 2 | # Copyright (C) 2007-2011 Xagasoft, All rights reserved. | 2 | # Copyright (C) 2007-2012 Xagasoft, All rights reserved. |
| 3 | # | 3 | # |
| 4 | # This file is part of the libbu++ library and is released under the | 4 | # This file is part of the libbu++ library and is released under the |
| 5 | # terms of the license contained in the file LICENSE. | 5 | # terms of the license contained in the file LICENSE. |
| 6 | # | 6 | # |
| 7 | 7 | ||
| 8 | OBJECTS := $(patsubst %.cpp,%.o,$(wildcard src/stable/*.cpp src/unstable/*.cpp src/experimental/*.cpp)) | 8 | OBJECTS := $(patsubst %.cpp,%.o,$(wildcard src/stable/*.cpp src/unstable/*.cpp src/experimental/*.cpp)) |
| 9 | HEADERS := bu/signals.h bu/autoconfig.h bu/version.h bu/config.h $(foreach fn,$(wildcard src/stable/*.h src/unstable/*.h src/experimental/*.h),bu/$(notdir ${fn})) $(patsubst src/%,bu/%,$(wildcard src/compat/*.h)) | 9 | HEADERS := bu bu/signals.h bu/autoconfig.h bu/version.h bu/config.h $(foreach fn,$(wildcard src/stable/*.h src/unstable/*.h src/experimental/*.h),bu/$(notdir ${fn})) $(patsubst src/%,bu/%,$(wildcard src/compat/*.h)) |
| 10 | TOOLS := $(patsubst src/tools/%.cpp,%,$(wildcard src/tools/*.cpp)) | 10 | TOOLS := $(patsubst src/tools/%.cpp,%,$(wildcard src/tools/*.cpp)) |
| 11 | UNITS := $(patsubst src/unit/%.unit,unit/%,$(wildcard src/unit/*.unit)) | 11 | UNITS := $(patsubst src/unit/%.unit,unit/%,$(wildcard src/unit/*.unit)) |
| 12 | TESTS := $(patsubst src/tests/%.cpp,tests/%,$(wildcard src/tests/*.cpp)) | 12 | TESTS := $(patsubst src/tests/%.cpp,tests/%,$(wildcard src/tests/*.cpp)) |
| @@ -22,6 +22,9 @@ tests: ${UNITS} ${TESTS} | |||
| 22 | clean: | 22 | clean: |
| 23 | -rm ${HEADERS} ${OBJECTS} libbu++.a ${TOOLS} ${UNITS} ${TESTS} | 23 | -rm ${HEADERS} ${OBJECTS} libbu++.a ${TOOLS} ${UNITS} ${TESTS} |
| 24 | 24 | ||
| 25 | bu: | ||
| 26 | mkdir -p bu/compat | ||
| 27 | |||
| 25 | bu/signals.h bu/config.h bu/autoconfig.h bu/version.h: bu/%: src/% | 28 | bu/signals.h bu/config.h bu/autoconfig.h bu/version.h: bu/%: src/% |
| 26 | ln -s ../$< $@ | 29 | ln -s ../$< $@ |
| 27 | 30 | ||
| @@ -61,6 +64,9 @@ viewcsv: | |||
| 61 | bin2cpp: | 64 | bin2cpp: |
| 62 | g++ -ggdb -W -Wall -I. -L. $< -o $@ -lbu++ -lbz2 -lz -llzma | 65 | g++ -ggdb -W -Wall -I. -L. $< -o $@ -lbu++ -lbz2 -lz -llzma |
| 63 | 66 | ||
| 67 | myriad: | ||
| 68 | g++ -ggdb -W -Wall -I. -L. $< -o $@ -lbu++ -lpthread | ||
| 69 | |||
| 64 | ${OBJECTS}: %.o: %.cpp | 70 | ${OBJECTS}: %.o: %.cpp |
| 65 | g++ -ggdb -W -Wall -I. $< -c -o $@ | 71 | g++ -ggdb -W -Wall -I. $< -c -o $@ |
| 66 | 72 | ||
