1997-11-16 04:52:19 +00:00
|
|
|
#
|
|
|
|
# Redistribution and use in source and binary forms are permitted
|
|
|
|
# provided that this notice is preserved and due credit is given
|
|
|
|
# to the original author and the contributors.
|
|
|
|
#
|
|
|
|
#CC=gcc -Wuninitialized -Wstrict-prototypes -Werror -O
|
|
|
|
CFLAGS=-I..
|
|
|
|
|
2000-05-24 02:14:22 +00:00
|
|
|
all: $(DESTDIR)/y.tab.o $(DESTDIR)/lex.yy.o
|
1997-11-16 04:52:19 +00:00
|
|
|
|
2000-05-24 02:14:22 +00:00
|
|
|
$(DESTDIR)/y.tab.o: $(DESTDIR)/y.tab.c
|
|
|
|
$(CC) $(DEBUG) -I. -I.. -I$(DESTDIR) -I../ipsend $(CFLAGS) $(LINUX) -c $(DESTDIR)/y.tab.c -o $@
|
1997-11-16 04:52:19 +00:00
|
|
|
|
2000-10-29 08:07:08 +00:00
|
|
|
$(DESTDIR)/$(OBJ)/y.tab.o: $(DESTDIR)/y.tab.c
|
|
|
|
$(CC) $(DEBUG) -I. -I.. -I$(DESTDIR) -I../ipsend $(CFLAGS) $(LINUX) -c $(DESTDIR)/y.tab.c -o $@
|
|
|
|
|
2000-05-24 02:14:22 +00:00
|
|
|
$(DESTDIR)/lex.yy.o: $(DESTDIR)/lex.yy.c
|
|
|
|
$(CC) $(DEBUG) -I. -I.. -I$(DESTDIR) -I../ipsend $(CFLAGS) $(LINUX) -c $(DESTDIR)/lex.yy.c -o $@
|
1997-11-16 04:52:19 +00:00
|
|
|
|
|
|
|
y.tab.o: y.tab.c
|
|
|
|
$(CC) $(DEBUG) -I. -I.. -I../ipsend $(CFLAGS) $(LINUX) -c y.tab.c -o $@
|
|
|
|
|
|
|
|
lex.yy.o: lex.yy.c
|
|
|
|
$(CC) $(DEBUG) -I. -I.. -I../ipsend $(CFLAGS) $(LINUX) -c lex.yy.c -o $@
|
|
|
|
|
2000-05-24 02:14:22 +00:00
|
|
|
$(DESTDIR)/lex.yy.c: iplang_l.l $(DESTDIR)/y.tab.h
|
1997-11-16 04:52:19 +00:00
|
|
|
lex iplang_l.l
|
2000-05-24 02:14:22 +00:00
|
|
|
mv lex.yy.c $(DESTDIR)
|
1997-11-16 04:52:19 +00:00
|
|
|
|
2000-05-24 02:14:22 +00:00
|
|
|
$(DESTDIR)/y.tab.c $(DESTDIR)/y.tab.h: iplang_y.y
|
1997-11-16 04:52:19 +00:00
|
|
|
yacc -d iplang_y.y
|
2000-05-24 02:14:22 +00:00
|
|
|
mv y.tab.c $(DESTDIR)
|
|
|
|
mv y.tab.h $(DESTDIR)
|
1997-11-16 04:52:19 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
/bin/rm -f *.o lex.yy.c y.tab.c y.tab.h
|