NetBSD/dist/ipf/iplang/Makefile

32 lines
957 B
Makefile
Raw Normal View History

#
2004-03-28 13:00:53 +04:00
# See the IPFILTER.LICENCE file for details on licencing.
#
#CC=gcc -Wuninitialized -Wstrict-prototypes -Werror -O
CFLAGS=-I..
2004-03-28 13:00:53 +04:00
all: $(DESTDIR)/iplang_y.o $(DESTDIR)/iplang_l.o
2004-03-28 13:00:53 +04:00
$(DESTDIR)/iplang_y.o: $(DESTDIR)/iplang_y.c
$(CC) $(DEBUG) -I. -I.. -I$(DESTDIR) -I../ipsend $(CFLAGS) $(LINUX) -c $(DESTDIR)/iplang_y.c -o $@
2004-03-28 13:00:53 +04:00
$(DESTDIR)/iplang_l.o: $(DESTDIR)/iplang_l.c
$(CC) $(DEBUG) -I. -I.. -I$(DESTDIR) -I../ipsend $(CFLAGS) $(LINUX) -c $(DESTDIR)/iplang_l.c -o $@
2001-03-26 10:11:46 +04:00
2004-03-28 13:00:53 +04:00
iplang_y.o: iplang_y.c
$(CC) $(DEBUG) -I. -I.. -I../ipsend $(CFLAGS) $(LINUX) -c $< -o $@
2004-03-28 13:00:53 +04:00
iplang_l.o: iplang_l.c
$(CC) $(DEBUG) -I. -I.. -I../ipsend $(CFLAGS) $(LINUX) -c $< -o $@
2004-03-28 13:00:53 +04:00
$(DESTDIR)/iplang_l.c: iplang_l.l $(DESTDIR)/iplang_y.h
lex iplang_l.l
2004-03-28 13:00:53 +04:00
mv lex.yy.c $(DESTDIR)/iplang_l.c
2004-03-28 13:00:53 +04:00
$(DESTDIR)/iplang_y.c $(DESTDIR)/iplang_y.h: iplang_y.y
yacc -d iplang_y.y
2004-03-28 13:00:53 +04:00
mv y.tab.c $(DESTDIR)/iplang_y.c
mv y.tab.h $(DESTDIR)/iplang_y.h
clean:
/bin/rm -f *.o lex.yy.c y.tab.c y.tab.h