summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
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/*