From 10f61f1285190986498221cfa82b2d3b9fe9f391 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 21 Sep 2016 12:56:11 -0600 Subject: Accumulated changes. --- c++-libbu++/Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 c++-libbu++/Makefile (limited to 'c++-libbu++/Makefile') 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 @@ +OBJECTS := $(patsubst %.cpp,%.o,$(wildcard src/*.cpp)) + +.PHONY: default all headers clean tests install + +default: libgats.a + +all: default tests + +clean: + -rm ${HEADERS} ${OBJECTS} libgats.a ${TOOLS} ${UNITS} ${TESTS} + +$(foreach fn,$(wildcard src/*.h),bu/$(notdir ${fn})): bu/%: src/% + ln -s ../$< $@ + +${OBJECTS}: %.o: %.cpp + ${CXX} -ggdb -W -Wall -I. -I../../libbu++ ${CXXFLAGS} $< -c -o $@ + +libgats.a: ${HEADERS} ${OBJECTS} + ar -r libgats.a ${OBJECTS} + + -- cgit v1.2.3