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/convert_coords CFLAGS += -W -Wall -Wextra -O3 # -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/convert_coords: src/export/convert_coords.c $(CC) $(CFLAGS) -o $@ src/export/convert_coords.c -lm .PHONY: clean clean: @rm -f $(BINARIES)