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

all: fzy testscore

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

test: testscore
	ruby test.rb

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

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

clean:
	$(RM) fzy testscore *.o