aboutsummaryrefslogtreecommitdiff
path: root/c++-libbu++/Makefile
diff options
context:
space:
mode:
authorMike Buland <mike@xagasoft.com>2016-09-21 12:56:11 -0600
committerMike Buland <mike@xagasoft.com>2016-09-21 12:56:11 -0600
commit10f61f1285190986498221cfa82b2d3b9fe9f391 (patch)
tree78a469517d56aa423dbc231cd49544ffb4969738 /c++-libbu++/Makefile
parenta9e52e201f401860e394a87ec3634206aedc440b (diff)
downloadlibgats-10f61f1285190986498221cfa82b2d3b9fe9f391.tar.gz
libgats-10f61f1285190986498221cfa82b2d3b9fe9f391.tar.bz2
libgats-10f61f1285190986498221cfa82b2d3b9fe9f391.tar.xz
libgats-10f61f1285190986498221cfa82b2d3b9fe9f391.zip
Accumulated changes.
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