diff options
Diffstat (limited to 'makefile')
| -rw-r--r-- | makefile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/makefile b/makefile new file mode 100644 index 0000000..3f481bc --- /dev/null +++ b/makefile | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | include config.mk | ||
| 2 | |||
| 3 | bin/app: obj/main.o | bin | ||
| 4 | c++ $(LDFLAGS) $^ -o $@ | ||
| 5 | |||
| 6 | obj/%.o: src/%.cpp | obj | ||
| 7 | c++ $(CPPFLAGS) -c $< -o $@ | ||
| 8 | |||
| 9 | clean: | ||
| 10 | rm -rf bin obj | ||
| 11 | |||
| 12 | bin obj: | ||
| 13 | mkdir $@ | ||
| 14 | |||
| 15 | .PHONY: all clean | ||
