summaryrefslogtreecommitdiff
path: root/src/Makefile
blob: 6d40c6b16fcf3298d0f85ee182c937604baa3f45 (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
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)
CFLAGS+=-Wextra

../bin/extract_version_3: export/extract_version_3.c export/mystdlib.c
	@$(CC) $(CFLAGS) -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) $(CFLAGS) -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) $(CFLAGS) -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) $(CFLAGS) -O3 -o ../bin/split_version_2 export/split_version_2.c

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

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

clean:
	@rm -f $(BINARIES)