1997-11-16 04:52:19 +00:00
|
|
|
#
|
2005-04-25 17:31:50 +00:00
|
|
|
# See the IPFILTER.LICENCE file for details on licencing.
|
1997-11-16 04:52:19 +00:00
|
|
|
#
|
|
|
|
#CC=gcc -Wuninitialized -Wstrict-prototypes -Werror -O
|
|
|
|
CFLAGS=-I..
|
2007-10-18 21:42:51 +00:00
|
|
|
CCARGS=$(DEBUG) -I. -I.. $(CFLAGS) -I$(DESTDIR) -I$(DESTDIR)/.. -I../ipsend
|
1997-11-16 04:52:19 +00:00
|
|
|
|
2005-04-25 17:31:50 +00:00
|
|
|
all: $(DESTDIR)/iplang_y.o $(DESTDIR)/iplang_l.o
|
1997-11-16 04:52:19 +00:00
|
|
|
|
2005-04-25 17:31:50 +00:00
|
|
|
$(DESTDIR)/iplang_y.o: $(DESTDIR)/iplang_y.c
|
2007-10-18 21:42:51 +00:00
|
|
|
$(CC) $(CCARGS) $(LINUX) -c $(DESTDIR)/iplang_y.c -o $@
|
1997-11-16 04:52:19 +00:00
|
|
|
|
2005-04-25 17:31:50 +00:00
|
|
|
$(DESTDIR)/iplang_l.o: $(DESTDIR)/iplang_l.c
|
2007-10-18 21:42:51 +00:00
|
|
|
$(CC) $(CCARGS) $(LINUX) -c $(DESTDIR)/iplang_l.c -o $@
|
2000-10-29 08:07:08 +00:00
|
|
|
|
2005-04-25 17:31:50 +00:00
|
|
|
iplang_y.o: iplang_y.c
|
2007-10-18 21:42:51 +00:00
|
|
|
$(CC) $(CCARGS) $< -o $@
|
1997-11-16 04:52:19 +00:00
|
|
|
|
2005-04-25 17:31:50 +00:00
|
|
|
iplang_l.o: iplang_l.c
|
2007-10-18 21:42:51 +00:00
|
|
|
$(CC) $(CCARGS) $< -o $@
|
1997-11-16 04:52:19 +00:00
|
|
|
|
2005-04-25 17:31:50 +00:00
|
|
|
$(DESTDIR)/iplang_l.c: iplang_l.l $(DESTDIR)/iplang_y.h
|
1997-11-16 04:52:19 +00:00
|
|
|
lex iplang_l.l
|
2005-04-25 17:31:50 +00:00
|
|
|
mv lex.yy.c $(DESTDIR)/iplang_l.c
|
1997-11-16 04:52:19 +00:00
|
|
|
|
2005-04-25 17:31:50 +00:00
|
|
|
$(DESTDIR)/iplang_y.c $(DESTDIR)/iplang_y.h: iplang_y.y
|
1997-11-16 04:52:19 +00:00
|
|
|
yacc -d iplang_y.y
|
2005-04-25 17:31:50 +00:00
|
|
|
mv y.tab.c $(DESTDIR)/iplang_y.c
|
|
|
|
mv y.tab.h $(DESTDIR)/iplang_y.h
|
1997-11-16 04:52:19 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
/bin/rm -f *.o lex.yy.c y.tab.c y.tab.h
|