]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/ipfilter/tools/Makefile
This commit was generated by cvs2svn to compensate for changes in r156283,
[FreeBSD/FreeBSD.git] / contrib / ipfilter / tools / Makefile
1
2 DEST=.
3
4 all: $(DEST)/ipf_y.c $(DEST)/ipf_y.h $(DEST)/ipf_l.c \
5         $(DEST)/ipmon_y.c $(DEST)/ipmon_y.h $(DEST)/ipmon_l.c \
6         $(DEST)/ipnat_y.c $(DEST)/ipnat_y.h $(DEST)/ipnat_l.c \
7         $(DEST)/ipscan_y.c $(DEST)/ipscan_y.h $(DEST)/ipscan_l.c \
8         $(DEST)/ippool_y.c $(DEST)/ippool_y.h $(DEST)/ippool_l.c \
9         $(DEST)/ipf_l.h $(DEST)/ipnat_l.h $(DEST)/ipscan_l.h \
10         $(DEST)/ippool_l.h $(DEST)/ipmon_l.h
11
12 $(DEST)/ipf_y.h: $(DEST)/ipf_y.c
13
14 $(DEST)/ipf_y.c: ipf_y.y
15         yacc -d ipf_y.y
16         sed -e 's/yy/ipf_yy/g' -e 's/y.tab.h/ipf_y.c/' \
17             -e 's/"ipf_y.y"/"..\/tools\/ipf_y.y"/' \
18             y.tab.c > $(DEST)/ipf_y.c
19         sed -e 's/yy/ipf_yy/g' -e 's/y.tab.h/ipf_y.h/' y.tab.h > $(DEST)/ipf_y.h
20         /bin/rm -f y.tab.c y.tab.h
21
22 $(DEST)/ipf_l.c: lexer.c
23         sed -e 's/yy/ipf_yy/g' -e 's/y.tab.h/ipf_y.h/' \
24             -e 's/lexer.h/ipf_l.h/' lexer.c > $@
25
26 $(DEST)/ipmon_y.n: $(DEST)/ipmon_y.c
27
28 $(DEST)/ipmon_y.c $(DEST)/ipmon_y.h: ipmon_y.y
29         yacc -d ipmon_y.y
30         sed -e 's/yy/ipmon_yy/g' -e 's/"ipmon_y.y"/"..\/tools\/ipmon_y.y"/' \
31             y.tab.c > $(DEST)/ipmon_y.c
32         sed -e 's/yy/ipmon_yy/g' y.tab.h > $(DEST)/ipmon_y.h
33         /bin/rm -f y.tab.c y.tab.h
34
35 $(DEST)/ipmon_l.c: lexer.c
36         sed -e 's/yy/ipmon_yy/g' -e 's/y.tab.h/ipmon_y.h/' \
37             -e 's/lexer.h/ipmon_l.h/' lexer.c > $@
38
39 $(DEST)/ipscan_y.h: $(DEST)/ipscan_y.c
40
41 $(DEST)/ipscan_y.c $(DEST)/ipscan_y.h: ipscan_y.y
42         yacc -d ipscan_y.y
43         sed -e 's/yy/ipscan_yy/g' \
44             -e 's/"ipscan_y.y"/"..\/tools\/ipscan_y.y"/' \
45             y.tab.c > $(DEST)/ipscan_y.c
46         sed -e 's/yy/ipscan_yy/g' y.tab.h > $(DEST)/ipscan_y.h
47         /bin/rm -f y.tab.c y.tab.h
48
49 $(DEST)/ipscan_l.c: lexer.c
50         sed -e 's/yy/ipscan_yy/g' -e 's/y.tab.h/ipscan_y.h/' \
51             -e 's/lexer.h/ipscan_l.h/' lexer.c > $@
52
53 $(DEST)/ippool_y.h: $(DEST)/ippool_y.c
54
55 $(DEST)/ippool_y.c $(DEST)/ippool_y.h: ippool_y.y
56         yacc -d ippool_y.y
57         sed -e 's/yy/ippool_yy/g' -e 's/"ippool_y.y"/"..\/tools\/ippool_y.y"/' \
58             y.tab.c > $(DEST)/ippool_y.c
59         sed -e 's/yy/ippool_yy/g' y.tab.h > $(DEST)/ippool_y.h
60         /bin/rm -f y.tab.c y.tab.h
61
62 $(DEST)/ippool_l.c: lexer.c
63         sed -e 's/yy/ippool_yy/g' -e 's/y.tab.h/ippool_y.h/' \
64             -e 's/lexer.h/ippool_l.h/' lexer.c > $@
65
66 $(DEST)/ipnat_y.h: $(DEST)/ipnat_y.c
67
68 $(DEST)/ipnat_y.c $(DEST)/ipnat_y.h: ipnat_y.y
69         yacc -d ipnat_y.y
70         sed -e 's/yy/ipnat_yy/g' -e 's/y.tab.c/ipnat_y.c/' \
71             -e s/\"ipnat_y.y\"/\"..\\/tools\\/ipnat_y.y\"/ \
72             y.tab.c > $(DEST)/ipnat_y.c
73         sed -e 's/yy/ipnat_yy/g' -e 's/y.tab.h/ipnat_y.h/' \
74             y.tab.h > $(DEST)/ipnat_y.h
75         /bin/rm -f y.tab.c y.tab.h
76
77 $(DEST)/ipnat_l.c: lexer.c
78         sed -e 's/yy/ipnat_yy/g' -e 's/y.tab.h/ipnat_y.h/' \
79             -e 's/lexer.h/ipnat_l.h/' lexer.c > $@
80
81 $(DEST)/ipf_l.h: lexer.h
82         sed -e 's/yy/ipf_yy/g' lexer.h > $@
83
84 $(DEST)/ipmon_l.h: lexer.h
85         sed -e 's/yy/ipmon_yy/g' lexer.h > $@
86
87 $(DEST)/ipscan_l.h: lexer.h
88         sed -e 's/yy/ipscan_yy/g' lexer.h > $@
89
90 $(DEST)/ippool_l.h: lexer.h
91         sed -e 's/yy/ippool_yy/g' lexer.h > $@
92
93 $(DEST)/ipnat_l.h: lexer.h
94         sed -e 's/yy/ipnat_yy/g' lexer.h > $@
95
96 clean:
97         /bin/rm -f $(DEST)/ipf_y.c $(DEST)/ipf_y.h $(DEST)/ipf_l.c
98         /bin/rm -f $(DEST)/ipmon_y.c $(DEST)/ipmon_y.h $(DEST)/ipmon_l.c
99         /bin/rm -f $(DEST)/ipscan_y.c $(DEST)/ipscan_y.h $(DEST)/ipscan_l.c
100         /bin/rm -f $(DEST)/ippool_y.c $(DEST)/ippool_y.h $(DEST)/ippool_l.c
101         /bin/rm -f $(DEST)/ipnat_y.c $(DEST)/ipnat_y.h $(DEST)/ipnat_l.c
102         /bin/rm -f $(DEST)/ipf_l.h $(DEST)/ipmon_l.h $(DEST)/ippool_l.h
103         /bin/rm -f $(DEST)/ipscan_l.h $(DEST)/ipnat_l.h