diff options
author | Mike Buland <mike@xagasoft.com> | 2016-09-21 12:56:11 -0600 |
---|---|---|
committer | Mike Buland <mike@xagasoft.com> | 2016-09-21 12:56:11 -0600 |
commit | 10f61f1285190986498221cfa82b2d3b9fe9f391 (patch) | |
tree | 78a469517d56aa423dbc231cd49544ffb4969738 /c++-libbu++/Makefile | |
parent | a9e52e201f401860e394a87ec3634206aedc440b (diff) | |
download | libgats-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++/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 | |||