diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2014-02-24 03:14:53 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2014-02-24 03:14:53 +0100 |
| commit | 2a185f889470f9bfa049b1610900536309aded5a (patch) | |
| tree | d127a4d9b38adf9f8aa0c65abb8f10320f18a220 /Makefile | |
| parent | 2f724b60ce0a8323dd4173b4651661d04b0c94f9 (diff) | |
Use make the way it was intended
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..65d7bc7 --- /dev/null +++ b/Makefile | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | OBJECTS=extract_version_1 extract_version_2 extract_version_3 split_version_2 map_coords convert_coords | ||
| 2 | BINARIES=$(addprefix bin/,$(OBJECTS)) | ||
| 3 | CFLAGS+=-Wextra -O3 | ||
| 4 | LDFLAGS+=-lz -lm | ||
| 5 | VPATH=src/export | ||
| 6 | |||
| 7 | .SUFFIXES: .c | ||
| 8 | |||
| 9 | all: $(BINARIES) | ||
| 10 | |||
| 11 | bin/% : %.c mystdlib.c | ||
| 12 | $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) | ||
| 13 | |||
| 14 | .PHONY: clean | ||
| 15 | clean: | ||
| 16 | @rm -f $(BINARIES) | ||
