diff options
author | User Erdgeist <erdgeist@avon.ccc.de> | 2014-02-25 01:08:47 +0100 |
---|---|---|
committer | User Erdgeist <erdgeist@avon.ccc.de> | 2014-02-25 01:08:47 +0100 |
commit | 1b83cfe9c5a689532154dc098d13188fc1e8c61e (patch) | |
tree | d8494828365d55b23bfbbc3bd57880b6076d2297 /Makefile | |
parent | 6922e6678d247af8c9d63df7a3db2fe83c328f7e (diff) |
GNUmake and BSDmake are just too different to get the Makefile work with more advanced features. Revert to manual input
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 28 |
1 files changed, 19 insertions, 9 deletions
@@ -1,15 +1,25 @@ | |||
1 | OBJECTS=extract_version_1 extract_version_2 extract_version_3 split_version_2 map_coords convert_coords | 1 | BINARIES=bin/extract_version_1 bin/extract_version_2 bin/extract_version_3 bin/split_version_2 bin/map_coords bin/convert_coords |
2 | BINARIES=$(addprefix bin/,$(OBJECTS)) | 2 | CFLAGS += -W -Wall -Wextra -O3 # -Weverything -Wno-cast-align -Wno-padded |
3 | CFLAGS+=-W -Wall -Wextra -O3 # -Weverything -Wno-cast-align -Wno-padded | ||
4 | LDFLAGS+=-lz -lm | ||
5 | VPATH=src/export | ||
6 | |||
7 | .SUFFIXES: .c | ||
8 | 3 | ||
9 | all: $(BINARIES) | 4 | all: $(BINARIES) |
10 | 5 | ||
11 | bin/% : %.c mystdlib.c | 6 | bin/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 | |||
9 | bin/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 | |||
12 | bin/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 | |||
15 | bin/split_version_2: src/export/split_version_2.c | ||
16 | $(CC) $(CFLAGS) -o $@ src/export/split_version_2.c | ||
17 | |||
18 | bin/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 | |||
21 | bin/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 |
15 | clean: | 25 | clean: |