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