From f5a84b3c53ee37d83c33e9a6ad73b99866efcdc1 Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Tue, 29 Sep 2020 16:43:33 +0200 Subject: erster checkin --- makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 makefile (limited to 'makefile') diff --git a/makefile b/makefile new file mode 100644 index 0000000..7723923 --- /dev/null +++ b/makefile @@ -0,0 +1,18 @@ +.PHONY: all clean + +BIN=bin/srcut +OBJS+=obj/srcut.o +HEADER=${wildcard include/*.hpp} + +CPPFLAGS=-Wall -Werror -std=c++20 -pedantic -Iinclude -O2 + +all: $(BIN) + +$(BIN): $(OBJS) + c++ -o $@ $(OBJS) + +obj/%.o: src/%.cpp $(HEADER) + c++ -o $@ $(CPPFLAGS) -c $< + +clean: + rm -f obj/* bin/* -- cgit v1.3