summaryrefslogtreecommitdiff
path: root/src/Makefile
blob: c36fa560a6ffe0e13569bc321e7f421ebaa1693c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
BINARIES=../bin/extract_version_1 ../bin/extract_version_2 ../bin/extract_version_3 ../bin/split_version_2 ../bin/map_coords ../bin/convert_coords
binaries: $(BINARIES)

../bin/extract_version_3: export/extract_version_3.c export/mystdlib.c
	@$(CC) -O2 -o ../bin/extract_version_3 export/extract_version_3.c export/mystdlib.c -lz -I export

../bin/extract_version_2: export/extract_version_2.c export/mystdlib.c
	@$(CC) -O3 -o ../bin/extract_version_2 export/extract_version_2.c export/mystdlib.c -I export

../bin/extract_version_1: export/extract_version_1.c export/mystdlib.c
	@$(CC) -O3 -o ../bin/extract_version_1 export/extract_version_1.c export/mystdlib.c -I export

../bin/split_version_2: export/split_version_2.c
	@$(CC) -O3 -o ../bin/split_version_2 export/split_version_2.c

../bin/map_coords: export/map_coords.c export/mystdlib.c
	@$(CC) -O3 -o ../bin/map_coords export/map_coords.c export/mystdlib.c -I export

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

clean:
	@rm -f $(BINARIES)