diff options
Diffstat (limited to 'c++-libbu++/Makefile')
-rw-r--r-- | c++-libbu++/Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/c++-libbu++/Makefile b/c++-libbu++/Makefile new file mode 100644 index 0000000..5ff9292 --- /dev/null +++ b/c++-libbu++/Makefile | |||
@@ -0,0 +1,21 @@ | |||
1 | OBJECTS := $(patsubst %.cpp,%.o,$(wildcard src/*.cpp)) | ||
2 | |||
3 | .PHONY: default all headers clean tests install | ||
4 | |||
5 | default: libgats.a | ||
6 | |||
7 | all: default tests | ||
8 | |||
9 | clean: | ||
10 | -rm ${HEADERS} ${OBJECTS} libgats.a ${TOOLS} ${UNITS} ${TESTS} | ||
11 | |||
12 | $(foreach fn,$(wildcard src/*.h),bu/$(notdir ${fn})): bu/%: src/% | ||
13 | ln -s ../$< $@ | ||
14 | |||
15 | ${OBJECTS}: %.o: %.cpp | ||
16 | ${CXX} -ggdb -W -Wall -I. -I../../libbu++ ${CXXFLAGS} $< -c -o $@ | ||
17 | |||
18 | libgats.a: ${HEADERS} ${OBJECTS} | ||
19 | ar -r libgats.a ${OBJECTS} | ||
20 | |||
21 | |||