source: rtems-libbsd/Makefile.todo @ b8fdbe2

5-freebsd-12
Last change on this file since b8fdbe2 was 97c5f8e8, checked in by Sebastian Huber <sebastian.huber@…>, on Oct 9, 2017 at 7:59:36 AM

Update libpcap to FreeBSD head 2017-04-04

Update libpcap from Git mirror commit
99a648a912e81e29d9c4c159cbbe263462f2d719 to
642b174daddbd0efd9bb5f242c43f4ab4db6869f.

  • Property mode set to 100644
File size: 7.2 KB
Line 
1LOCAL_INC = rtemsbsd/include/rtems/bsd/local
2
3LOCAL_SRC = rtemsbsd/local
4
5FREEBSD_SRC = freebsd-org
6
7TOOLS = freebsd-org/sys/tools
8
9GENERATED =
10GENERATED += $(LOCAL_INC)/usb_if.h
11GENERATED += $(LOCAL_SRC)/usb_if.c
12GENERATED += $(LOCAL_INC)/bus_if.h
13GENERATED += $(LOCAL_SRC)/bus_if.c
14GENERATED += $(LOCAL_INC)/device_if.h
15GENERATED += $(LOCAL_SRC)/device_if.c
16GENERATED += $(LOCAL_INC)/usbdevs_data.h
17GENERATED += $(LOCAL_INC)/usbdevs.h
18GENERATED += $(LOCAL_INC)/ifdi_if.h
19GENERATED += $(LOCAL_SRC)/ifdi_if.c
20GENERATED += $(LOCAL_INC)/miibus_if.h
21GENERATED += $(LOCAL_SRC)/miibus_if.c
22GENERATED += $(LOCAL_INC)/miidevs.h
23GENERATED += $(LOCAL_INC)/ofw_if.h
24GENERATED += $(LOCAL_SRC)/ofw_if.c
25GENERATED += $(LOCAL_INC)/ofw_bus_if.h
26GENERATED += $(LOCAL_SRC)/ofw_bus_if.c
27GENERATED += $(LOCAL_INC)/pci_if.h
28GENERATED += $(LOCAL_SRC)/pci_if.c
29GENERATED += $(LOCAL_INC)/pcib_if.h
30GENERATED += $(LOCAL_SRC)/pcib_if.c
31GENERATED += $(LOCAL_INC)/mmcbr_if.h
32GENERATED += $(LOCAL_SRC)/mmcbr_if.c
33GENERATED += $(LOCAL_INC)/mmcbus_if.h
34GENERATED += $(LOCAL_SRC)/mmcbus_if.c
35GENERATED += $(LOCAL_SRC)/rtwn-rtl8192cfwT.c
36GENERATED += $(LOCAL_SRC)/rtwn-rtl8188eufw.c
37GENERATED += $(LOCAL_SRC)/runfw.c
38GENERATED += rtemsbsd/include/machine/rtems-bsd-regdomain.h
39GENERATED += rtemsbsd/rtems/rtems-bsd-regdomain.c
40GENERATED += freebsd/contrib/libpcap/grammar.h
41GENERATED += freebsd/contrib/libpcap/grammar.c
42GENERATED += freebsd/contrib/libpcap/pcap_version.h
43GENERATED += freebsd/contrib/libpcap/scanner.h
44GENERATED += freebsd/contrib/libpcap/scanner.c
45
46all: $(GENERATED)
47
48$(LOCAL_INC)/usbdevs.h: $(FREEBSD_SRC)/sys/dev/usb/usbdevs
49        awk -f $(TOOLS)/usbdevs2h.awk $< -h
50        mv usbdevs.h $@
51
52$(LOCAL_INC)/usbdevs_data.h: $(FREEBSD_SRC)/sys/dev/usb/usbdevs
53        awk -f $(TOOLS)/usbdevs2h.awk $< -d
54        mv usbdevs_data.h $@
55
56$(LOCAL_INC)/usb_if.h: $(FREEBSD_SRC)/sys/dev/usb/usb_if.m
57        awk -f $(TOOLS)/makeobjops.awk $< -h
58        mv usb_if.h $@
59
60$(LOCAL_SRC)/usb_if.c: $(FREEBSD_SRC)/sys/dev/usb/usb_if.m
61        awk -f $(TOOLS)/makeobjops.awk $< -c
62        mv usb_if.c $@
63
64$(LOCAL_INC)/bus_if.h: $(FREEBSD_SRC)/sys/kern/bus_if.m
65        awk -f $(TOOLS)/makeobjops.awk $< -h
66        mv bus_if.h $@
67
68$(LOCAL_SRC)/bus_if.c: $(FREEBSD_SRC)/sys/kern/bus_if.m
69        awk -f $(TOOLS)/makeobjops.awk $< -c
70        mv bus_if.c $@
71
72$(LOCAL_INC)/device_if.h: $(FREEBSD_SRC)/sys/kern/device_if.m
73        awk -f $(TOOLS)/makeobjops.awk $< -h
74        mv device_if.h $@
75
76$(LOCAL_SRC)/device_if.c: $(FREEBSD_SRC)/sys/kern/device_if.m
77        awk -f $(TOOLS)/makeobjops.awk $< -c
78        mv device_if.c $@
79
80$(LOCAL_INC)/ifdi_if.h: $(FREEBSD_SRC)/sys/net/ifdi_if.m
81        awk -f $(TOOLS)/makeobjops.awk $< -h
82        mv ifdi_if.h $@
83
84$(LOCAL_SRC)/ifdi_if.c: $(FREEBSD_SRC)/sys/net/ifdi_if.m
85        awk -f $(TOOLS)/makeobjops.awk $< -c
86        mv ifdi_if.c $@
87
88$(LOCAL_INC)/miidevs.h: $(FREEBSD_SRC)/sys/dev/mii/miidevs
89        awk -f $(TOOLS)/miidevs2h.awk $<
90        mv miidevs.h $@
91
92$(LOCAL_INC)/miibus_if.h: $(FREEBSD_SRC)/sys/dev/mii/miibus_if.m
93        awk -f $(TOOLS)/makeobjops.awk $< -h
94        mv miibus_if.h $@
95
96$(LOCAL_SRC)/miibus_if.c: $(FREEBSD_SRC)/sys/dev/mii/miibus_if.m
97        awk -f $(TOOLS)/makeobjops.awk $< -c
98        mv miibus_if.c $@
99
100$(LOCAL_INC)/pci_if.h: $(FREEBSD_SRC)/sys/dev/pci/pci_if.m
101        awk -f $(TOOLS)/makeobjops.awk $< -h
102        mv pci_if.h $@
103
104$(LOCAL_SRC)/pci_if.c: $(FREEBSD_SRC)/sys/dev/pci/pci_if.m
105        awk -f $(TOOLS)/makeobjops.awk $< -c
106        mv pci_if.c $@
107
108$(LOCAL_INC)/pcib_if.h: $(FREEBSD_SRC)/sys/dev/pci/pcib_if.m
109        awk -f $(TOOLS)/makeobjops.awk $< -h
110        mv pcib_if.h $@
111
112$(LOCAL_SRC)/pcib_if.c: $(FREEBSD_SRC)/sys/dev/pci/pcib_if.m
113        awk -f $(TOOLS)/makeobjops.awk $< -c
114        mv pcib_if.c $@
115
116$(LOCAL_INC)/mmcbus_if.h: $(FREEBSD_SRC)/sys/dev/mmc/mmcbus_if.m
117        awk -f $(TOOLS)/makeobjops.awk $< -h
118        mv mmcbus_if.h $@
119
120$(LOCAL_SRC)/mmcbus_if.c: $(FREEBSD_SRC)/sys/dev/mmc/mmcbus_if.m
121        awk -f $(TOOLS)/makeobjops.awk $< -c
122        mv mmcbus_if.c $@
123
124$(LOCAL_INC)/mmcbr_if.h: $(FREEBSD_SRC)/sys/dev/mmc/mmcbr_if.m
125        awk -f $(TOOLS)/makeobjops.awk $< -h
126        mv mmcbr_if.h $@
127
128$(LOCAL_SRC)/mmcbr_if.c: $(FREEBSD_SRC)/sys/dev/mmc/mmcbr_if.m
129        awk -f $(TOOLS)/makeobjops.awk $< -c
130        mv mmcbr_if.c $@
131
132$(LOCAL_INC)/ofw_if.h: $(FREEBSD_SRC)/sys/dev/ofw/ofw_if.m
133        awk -f $(TOOLS)/makeobjops.awk $< -h
134        mv ofw_if.h $@
135
136$(LOCAL_SRC)/ofw_if.c: $(FREEBSD_SRC)/sys/dev/ofw/ofw_if.m
137        awk -f $(TOOLS)/makeobjops.awk $< -c
138        mv ofw_if.c $@
139
140$(LOCAL_INC)/ofw_bus_if.h: $(FREEBSD_SRC)/sys/dev/ofw/ofw_bus_if.m
141        awk -f $(TOOLS)/makeobjops.awk $< -h
142        mv ofw_bus_if.h $@
143
144$(LOCAL_SRC)/ofw_bus_if.c: $(FREEBSD_SRC)/sys/dev/ofw/ofw_bus_if.m
145        awk -f $(TOOLS)/makeobjops.awk $< -c
146        mv ofw_bus_if.c $@
147
148$(LOCAL_INC)/if_dwc_if.h: $(FREEBSD_SRC)/sys/dev/dwc/if_dwc_if.m
149        awk -f $(TOOLS)/makeobjops.awk $< -h
150        mv if_dwc_if.h $@
151
152$(LOCAL_SRC)/if_dwc_if.c: $(FREEBSD_SRC)/sys/dev/dwc/if_dwc_if.m
153        awk -f $(TOOLS)/makeobjops.awk $< -c
154        mv if_dwc_if.c $@
155
156$(LOCAL_INC)/gpio_if.h: $(FREEBSD_SRC)/sys/dev/gpio/gpio_if.m
157        awk -f $(TOOLS)/makeobjops.awk $< -h
158        mv gpio_if.h $@
159
160$(LOCAL_SRC)/gpio_if.c: $(FREEBSD_SRC)/sys/dev/gpio/gpio_if.m
161        awk -f $(TOOLS)/makeobjops.awk $< -c
162        mv gpio_if.c $@
163
164$(LOCAL_SRC)/rtwn-rtl8192cfwT.c: $(FREEBSD_SRC)/sys/contrib/dev/rtwn/rtwn-rtl8192cfwT.fw.uu
165        uudecode -o /dev/stdout $< | python firmware-gen.py \
166            -l "$(FREEBSD_SRC)/sys/contrib/dev/rtwn/LICENSE" \
167            rtwn-rtl8192cfwT - $@
168
169$(LOCAL_SRC)/rtwn-rtl8188eufw.c: $(FREEBSD_SRC)/sys/contrib/dev/rtwn/rtwn-rtl8188eufw.fw.uu
170        uudecode -o /dev/stdout $< | python firmware-gen.py \
171            -l "$(FREEBSD_SRC)/sys/contrib/dev/rtwn/LICENSE" \
172            rtwn-rtl8188eufw - $@
173
174$(LOCAL_SRC)/runfw.c: $(FREEBSD_SRC)/sys/contrib/dev/run/rt2870.fw.uu
175        uudecode -o /dev/stdout $< | python firmware-gen.py \
176            -l "$(FREEBSD_SRC)/sys/contrib/dev/run/LICENSE" \
177            runfw - $@
178
179freebsd/usr.bin/netstat/nl_symbols.c: $(FREEBSD_SRC)/usr.bin/netstat/nlist_symbols
180        awk '\
181            BEGIN { \
182                print "#include <sys/param.h>"; \
183                print "#include <nlist.h>"; \
184                print "const struct nlist nl[] = {"; \
185            } \
186            !/^\#/ { printf("\t{ .n_name = \"%s\" },\n", $$2); } \
187            END { print "\t{ .n_name = NULL },\n};" } \
188            ' < $< > $@ || rm -f $@
189
190freebsd/usr.bin/netstat/nl_defs.h: $(FREEBSD_SRC)/usr.bin/netstat/nlist_symbols
191        awk '\
192            BEGIN { \
193                print "#include <nlist.h>"; \
194                print "extern const struct nlist nl[];"; \
195                i = 0; \
196            } \
197            !/^\#/ { printf("\#define\tN%s\t%s\n", toupper($$2), i++); }' \
198            < $< > $@ || rm -f $@
199
200rtemsbsd/include/machine/rtems-bsd-regdomain.h: $(FREEBSD_SRC)/etc/regdomain.xml
201        rtems-bin2c -H $< $@
202
203rtemsbsd/rtems/rtems-bsd-regdomain.c: $(FREEBSD_SRC)/etc/regdomain.xml
204        rtems-bin2c -C $< $@
205
206freebsd/contrib/libpcap/grammar.h: freebsd/contrib/libpcap/grammar.c
207
208freebsd/contrib/libpcap/grammar.c: freebsd-org/contrib/libpcap/grammar.y
209        cd freebsd-org/contrib/libpcap && yacc -p pcap_ -o grammar.c -d grammar.y
210        mv freebsd-org/contrib/libpcap/grammar.h freebsd/contrib/libpcap/grammar.h
211        mv freebsd-org/contrib/libpcap/grammar.c $@
212
213freebsd/contrib/libpcap/pcap_version.h: freebsd-org/contrib/libpcap/VERSION
214        freebsd-org/contrib/libpcap/gen_version_header.sh $< freebsd-org/contrib/libpcap/pcap_version.h.in $@
215
216freebsd/contrib/libpcap/scanner.h: freebsd/contrib/libpcap/scanner.c
217
218freebsd/contrib/libpcap/scanner.c: freebsd-org/contrib/libpcap/scanner.l
219        cd freebsd-org/contrib/libpcap && lex -P pcap_ --header-file=scanner.h --nounput -o scanner.c scanner.l
220        mv freebsd-org/contrib/libpcap/scanner.h freebsd/contrib/libpcap/scanner.h
221        mv freebsd-org/contrib/libpcap/scanner.c $@
222
223clean:
224        rm $(GENERATED)
Note: See TracBrowser for help on using the repository browser.