summaryrefslogtreecommitdiff
path: root/Makefile
blob: 3de24f30ca45187c1ef3574b9b8b5cef6a8a8799 (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+=-W -Wall -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)