Blame


1 e2b5610c 2022-04-11 op .PATH:${.CURDIR}/../lib
2 e2b5610c 2022-04-11 op
3 e2b5610c 2022-04-11 op PROG = mkftsidx
4 e2b5610c 2022-04-11 op SRCS = mkftsidx.c ports.c wiki.c db.c dictionary.c tokenize.c
5 e2b5610c 2022-04-11 op
6 e2b5610c 2022-04-11 op WARNINGS = yes
7 e2b5610c 2022-04-11 op
8 e2b5610c 2022-04-11 op CPPFLAGS += -I/usr/local/include -I${.CURDIR}/../include
9 e2b5610c 2022-04-11 op LDADD = -lexpat -lsqlite3 -L/usr/local/lib
10 e2b5610c 2022-04-11 op
11 e2b5610c 2022-04-11 op .if defined(PROFILE)
12 e2b5610c 2022-04-11 op CPPFLAGS += -DPROFILE
13 e2b5610c 2022-04-11 op LDADD += -static -lm -lpthread
14 e2b5610c 2022-04-11 op DEBUG = -pg
15 e2b5610c 2022-04-11 op .endif
16 e2b5610c 2022-04-11 op
17 e2b5610c 2022-04-11 op DEBUG += -O0 -g
18 e2b5610c 2022-04-11 op
19 e2b5610c 2022-04-11 op show-prof:
20 e2b5610c 2022-04-11 op gprof mkftsidx ../gmon.out | gprof2dot | dot -Tpng > profile.png
21 e2b5610c 2022-04-11 op nsxiv profile.png &
22 e2b5610c 2022-04-11 op
23 e2b5610c 2022-04-11 op .include <bsd.prog.mk>