From 9a164c3f65c01e31a9d1a8578e29b358972ddfed Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Fri, 1 Dec 2023 21:27:31 +0100 Subject: Lösung für Tag1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 makefile (limited to 'makefile') diff --git a/makefile b/makefile new file mode 100644 index 0000000..69242b1 --- /dev/null +++ b/makefile @@ -0,0 +1,20 @@ +include config.mk + +all: bin/01a bin/01b + +bin/01a: obj/01a.o | bin + c++ $(LDFLAGS) $^ -o $@ + +bin/01b: obj/01b.o | bin + c++ $(LDFLAGS) $^ -o $@ + +obj/%.o: src/%.cpp | obj + c++ $(CPPFLAGS) -c $< -o $@ + +clean: + rm -rf bin obj + +bin obj: + mkdir $@ + +.PHONY: all clean -- cgit v1.3