summaryrefslogtreecommitdiff
path: root/Makefile
blob: aaca82923fdc79bb1fc0dd165b4bbe5d00c379f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
CFLAGS+=-Wall -Wextra -g -std=c99

all: fzy fzytest

fzytest: fzytest.o match.o
	$(CC) $(CCFLAGS) -o $@ $^

test: fzytest
	-./fzytest

fzy: fzy.o match.o
	$(CC) $(CCFLAGS) -o $@ $^

%.o: %.c fzy.h
	$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<

clean:
	$(RM) fzy fzytest *.o

.PHONY: test all clean