summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 273a07b5e8f1e0a58aa14c08fcf7d5fe5f0a70e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
BINS = ascii class depipe_strings dup fpipe pipe realloc strpbrk strsep tokenizer
CC = gcc
DBGFLAGS = -g -O0
ifdef DEBUG
    CFLAGS = $(DBGFLAGS) -D DEBUG -std=gnu99 -Wall -pedantic
else
    CFLAGS = -O2 -std=gnu99 -Wall -pedantic
endif
LDFLAGS = -lm

all: $(BINS)

$(BINS): %: %.c
	$(CC) $(CFLAGS) $^ -o $@ 


.PHONY: clean

clean:
	rm -f ./$(BINS)