]>
Commit | Line | Data |
---|---|---|
866f59c9 | 1 | @include@ @includel@../build.mk@includel@ |
4bad6412 | 2 | |
06b41527 | 3 | CFLAGS+=$(INCPCRE) |
4bad6412 | 4 | LDFLAGS+=$(LIBPCRE) |
c86edd1d | 5 | |
9ff9a226 | 6 | .PHONY: all clean distclean |
c86edd1d Q |
7 | all: newsearch.so |
8 | ||
e3b5fea4 | 9 | NSCOMMANDS=ns-not.o ns-and.o ns-or.o ns-eq.o ns-match.o ns-hostmask.o ns-realname.o ns-modes.o ns-nick.o ns-ident.o ns-regex.o ns-host.o ns-channel.o ns-lt.o ns-gt.o ns-timestamp.o ns-country.o ns-authname.o ns-ip.o ns-kill.o ns-gline.o ns-exists.o ns-services.o ns-size.o ns-name.o ns-topic.o ns-oppct.o ns-cumodecount.o ns-cumodepct.o ns-hostpct.o ns-authedpct.o ns-length.o ns-kick.o ns-authts.o ns-channels.o ns-server.o ns-authid.o ns-notice.o newsearch_ast.o ns-any.o ns-channeliter.o ns-var.o ns-all.o ns-cumodes.o ns-cidr.o ns-nickiter.o ns-ipv6.o |
c5f04094 CP |
10 | |
11 | @ifeq@${NEWSEARCH_NEWPARSER}@ifeqsep@1@ifeqend@ | |
12 | CFLAGS+=-DNEWSEARCH_NEWPARSER=1 | |
53eff0a9 CP |
13 | newsearch.so: newsearch.o formats.o y.tab.o lex.yy.o parser.o ${NSCOMMANDS} |
14 | @else@ | |
15 | newsearch.so: newsearch.o formats.o ${NSCOMMANDS} | |
16 | @endif@ | |
ffc11f03 CP |
17 | |
18 | y.tab.c y.tab.h: newsearch.y | |
19 | ${YACC} -d newsearch.y | |
20 | ||
21 | lex.yy.c: newsearch.l y.tab.h | |
22 | ${LEX} newsearch.l | |
23 | ||
24 | clean: | |
25 | rm -f *.o *.so y.tab.c y.tab.h lex.yy.c | |
e245ee14 CP |
26 | |
27 | distclean: | |
28 |