diff options
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) | ||