summaryrefslogtreecommitdiff
path: root/Makefile
blob: 1bb45a08557713b4b5930bd4a00dfeb7ee62072b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
BINARIES=bin/extract_version_1 bin/extract_version_2 bin/extract_version_3 bin/extract_version_4 bin/split_version_2 bin/split_version_3 bin/map_coords bin/map_branches_v3 bin/map_branches_v4 bin/convert_coords bin/merge_entries bin/sort_plz bin/map_plz # bin/join
CFLAGS += -W -Wall -Wextra -O3 -I src/export # -Weverything -Wno-cast-align -Wno-padded

all: $(BINARIES)

bin/extract_version_4: src/export/extract_version_4.c src/export/mystdlib.c
	$(CC) $(CFLAGS) -o $@ src/export/extract_version_4.c src/export/mystdlib.c -lz

bin/extract_version_3: src/export/extract_version_3.c src/export/mystdlib.c
	$(CC) $(CFLAGS) -o $@ src/export/extract_version_3.c src/export/mystdlib.c

bin/extract_version_2: src/export/extract_version_2.c src/export/mystdlib.c
	$(CC) $(CFLAGS) -o $@ src/export/extract_version_2.c src/export/mystdlib.c

bin/extract_version_1: src/export/extract_version_1.c src/export/mystdlib.c
	$(CC) $(CFLAGS) -o $@ src/export/extract_version_1.c src/export/mystdlib.c

bin/split_version_3: src/export/split_version_3.c
	$(CC) $(CFLAGS) -o $@ src/export/split_version_3.c

bin/split_version_2: src/export/split_version_2.c src/export/mystdlib.c
	$(CC) $(CFLAGS) -o $@ src/export/split_version_2.c src/export/mystdlib.c

bin/map_coords: src/export/map_coords.c src/export/mystdlib.c
	$(CC) $(CFLAGS) -o $@ src/export/map_coords.c src/export/mystdlib.c

bin/map_branches_v4: src/export/map_branches_v4.c
	$(CC) $(CFLAGS) -o $@ src/export/map_branches_v4.c

bin/map_branches_v3: src/export/map_branches_v3.c
	$(CC) $(CFLAGS) -o $@ src/export/map_branches_v3.c

bin/convert_coords: src/export/convert_coords.c
	$(CC) $(CFLAGS) -o $@ src/export/convert_coords.c -lm

#bin/join: src/postprocess/join.c src/export/mystdlib.c
#	$(CC) $(CFLAGS) -o $@ src/postprocess/join.c src/export/mystdlib.c -Isrc/export

bin/merge_entries: src/postprocess/merge_entries.c src/export/mystdlib.c src/postprocess/halfsiphash.c
	$(CC) $(CFLAGS) -o $@ src/postprocess/merge_entries.c src/export/mystdlib.c src/postprocess/halfsiphash.c

bin/sort_plz: src/postprocess/sort_plz.c
	$(CC) $(CFLAGS) -o $@ src/postprocess/sort_plz.c

bin/map_plz: src/postprocess/map_plz.c src/export/mystdlib.c
	$(CC) $(CFLAGS) -o $@ src/postprocess/map_plz.c src/export/mystdlib.c

.PHONY: clean
clean:
	@rm -f $(BINARIES)