summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2020-09-29 16:43:33 +0200
committerThomas Schmucker <ts@its1.de>2020-09-29 16:43:33 +0200
commitf5a84b3c53ee37d83c33e9a6ad73b99866efcdc1 (patch)
tree94581241ed6a8dc804c0b846ce65b45b25edac83 /makefile
downloadscissor-f5a84b3c53ee37d83c33e9a6ad73b99866efcdc1.tar.gz
scissor-f5a84b3c53ee37d83c33e9a6ad73b99866efcdc1.tar.bz2
scissor-f5a84b3c53ee37d83c33e9a6ad73b99866efcdc1.zip
erster checkin
Diffstat (limited to 'makefile')
-rw-r--r--makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..7723923
--- /dev/null
+++ b/makefile
@@ -0,0 +1,18 @@
1.PHONY: all clean
2
3BIN=bin/srcut
4OBJS+=obj/srcut.o
5HEADER=${wildcard include/*.hpp}
6
7CPPFLAGS=-Wall -Werror -std=c++20 -pedantic -Iinclude -O2
8
9all: $(BIN)
10
11$(BIN): $(OBJS)
12 c++ -o $@ $(OBJS)
13
14obj/%.o: src/%.cpp $(HEADER)
15 c++ -o $@ $(CPPFLAGS) -c $<
16
17clean:
18 rm -f obj/* bin/*