aboutsummaryrefslogtreecommitdiff
path: root/c++-libbu++/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'c++-libbu++/Makefile')
-rw-r--r--c++-libbu++/Makefile21
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 @@
1OBJECTS := $(patsubst %.cpp,%.o,$(wildcard src/*.cpp))
2
3.PHONY: default all headers clean tests install
4
5default: libgats.a
6
7all: default tests
8
9clean:
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
18libgats.a: ${HEADERS} ${OBJECTS}
19 ar -r libgats.a ${OBJECTS}
20
21