diff options
Diffstat (limited to 'makefile')
| -rw-r--r-- | makefile | 18 |
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 | |||
| 3 | BIN=bin/srcut | ||
| 4 | OBJS+=obj/srcut.o | ||
| 5 | HEADER=${wildcard include/*.hpp} | ||
| 6 | |||
| 7 | CPPFLAGS=-Wall -Werror -std=c++20 -pedantic -Iinclude -O2 | ||
| 8 | |||
| 9 | all: $(BIN) | ||
| 10 | |||
| 11 | $(BIN): $(OBJS) | ||
| 12 | c++ -o $@ $(OBJS) | ||
| 13 | |||
| 14 | obj/%.o: src/%.cpp $(HEADER) | ||
| 15 | c++ -o $@ $(CPPFLAGS) -c $< | ||
| 16 | |||
| 17 | clean: | ||
| 18 | rm -f obj/* bin/* | ||
