summaryrefslogtreecommitdiff
path: root/Makefile
blob: 65d7bc798713be14dd6e6cfe4e625bcc471c43f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
OBJECTS=extract_version_1 extract_version_2 extract_version_3 split_version_2 map_coords convert_coords
BINARIES=$(addprefix bin/,$(OBJECTS))
CFLAGS+=-Wextra -O3
LDFLAGS+=-lz -lm
VPATH=src/export

.SUFFIXES: .c

all: $(BINARIES)

bin/% : %.c mystdlib.c
	$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)

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