summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile28
1 files changed, 19 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index f319b52..5ad8100 100644
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,25 @@
1OBJECTS=extract_version_1 extract_version_2 extract_version_3 split_version_2 map_coords convert_coords 1BINARIES=bin/extract_version_1 bin/extract_version_2 bin/extract_version_3 bin/split_version_2 bin/map_coords bin/convert_coords
2BINARIES=$(addprefix bin/,$(OBJECTS)) 2CFLAGS += -W -Wall -Wextra -O3 # -Weverything -Wno-cast-align -Wno-padded
3CFLAGS+=-W -Wall -Wextra -O3 # -Weverything -Wno-cast-align -Wno-padded
4LDFLAGS+=-lz -lm
5VPATH=src/export
6
7.SUFFIXES: .c
8 3
9all: $(BINARIES) 4all: $(BINARIES)
10 5
11bin/% : %.c mystdlib.c 6bin/extract_version_3: src/export/extract_version_3.c src/export/mystdlib.c
12 $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) 7 $(CC) $(CFLAGS) -o $@ src/export/extract_version_3.c src/export/mystdlib.c -lz
8
9bin/extract_version_2: src/export/extract_version_2.c src/export/mystdlib.c
10 $(CC) $(CFLAGS) -o $@ src/export/extract_version_2.c src/export/mystdlib.c
11
12bin/extract_version_1: src/export/extract_version_1.c src/export/mystdlib.c
13 $(CC) $(CFLAGS) -o $@ src/export/extract_version_1.c src/export/mystdlib.c
14
15bin/split_version_2: src/export/split_version_2.c
16 $(CC) $(CFLAGS) -o $@ src/export/split_version_2.c
17
18bin/map_coords: src/export/map_coords.c src/export/mystdlib.c
19 $(CC) $(CFLAGS) -o $@ src/export/map_coords.c src/export/mystdlib.c
20
21bin/convert_coords: src/export/convert_coords.c
22 $(CC) $(CFLAGS) -o $@ -lm src/export/convert_coords.c
13 23
14.PHONY: clean 24.PHONY: clean
15clean: 25clean: