source: rtems-libbsd/freebsd-userspace/Makefile @ 0d928a0

4.1155-freebsd-126-freebsd-12freebsd-9.3
Last change on this file since 0d928a0 was 0d928a0, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 12, 2012 at 12:13:52 AM

nameser/ns_samedomain.c: New file

  • Property mode set to 100644
File size: 7.0 KB
Line 
1include ../config.inc
2
3include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
4include $(RTEMS_CUSTOM)
5include $(PROJECT_ROOT)/make/leaf.cfg
6
7CFLAGS += -Iinclude
8CFLAGS += -Irtems/include
9CFLAGS += -Ilib/libc/include
10CFLAGS += -Ilib/libc/resolv
11CFLAGS += -Ilib/netgraph
12CFLAGS += -Isys
13CFLAGS += -Ilocal
14# XXX hack to find rpc
15CFLAGS += -I../services/librpc/include
16
17CFLAGS += -I$(INSTALL_BASE)/include
18
19CFLAGS += -w
20CFLAGS += -std=gnu99
21CFLAGS += -MT $@ -MD -MP -MF $(basename $@).d
22
23C_FILES =
24C_FILES += lib/libc/inet/inet_addr.c
25C_FILES += lib/libc/inet/inet_cidr_ntop.c
26C_FILES += lib/libc/inet/inet_cidr_pton.c
27C_FILES += lib/libc/inet/inet_lnaof.c
28C_FILES += lib/libc/inet/inet_makeaddr.c
29C_FILES += lib/libc/inet/inet_net_pton.c
30C_FILES += lib/libc/inet/inet_ntop.c
31C_FILES += lib/libc/inet/inet_neta.c
32C_FILES += lib/libc/inet/inet_net_ntop.c
33C_FILES += lib/libc/inet/inet_netof.c
34C_FILES += lib/libc/inet/inet_network.c
35C_FILES += lib/libc/inet/inet_ntoa.c
36C_FILES += lib/libc/inet/inet_pton.c
37C_FILES += lib/libc/inet/nsap_addr.c
38
39C_FILES += lib/libc/net/base64.c
40C_FILES += lib/libc/net/ether_addr.c
41C_FILES += lib/libc/net/getaddrinfo.c
42C_FILES += lib/libc/net/gethostbydns.c
43C_FILES += lib/libc/net/gethostbyht.c
44C_FILES += lib/libc/net/gethostbynis.c
45C_FILES += lib/libc/net/gethostnamadr.c
46C_FILES += lib/libc/net/getifaddrs.c
47C_FILES += lib/libc/net/getifmaddrs.c
48C_FILES += lib/libc/net/getnameinfo.c
49C_FILES += lib/libc/net/getnetbydns.c
50C_FILES += lib/libc/net/getnetbyht.c
51C_FILES += lib/libc/net/getnetbynis.c
52C_FILES += lib/libc/net/getnetnamadr.c
53C_FILES += lib/libc/net/getproto.c
54C_FILES += lib/libc/net/getprotoent.c
55C_FILES += lib/libc/net/getprotoname.c
56C_FILES += lib/libc/net/getservent.c
57C_FILES += lib/libc/gen/err.c
58C_FILES += lib/libc/gen/gethostname.c
59C_FILES += lib/libc/nameser/ns_name.c
60C_FILES += lib/libc/nameser/ns_netint.c
61C_FILES += lib/libc/nameser/ns_parse.c
62C_FILES += lib/libc/nameser/ns_print.c
63C_FILES += lib/libc/nameser/ns_samedomain.c
64C_FILES += lib/libc/nameser/ns_ttl.c
65C_FILES += lib/libc/net/if_indextoname.c
66C_FILES += lib/libc/net/if_nameindex.c
67C_FILES += lib/libc/net/linkaddr.c
68C_FILES += lib/libc/net/map_v4v6.c
69C_FILES += lib/libc/net/name6.c
70C_FILES += lib/libc/net/rcmd.c
71C_FILES += lib/libc/net/recv.c
72C_FILES += lib/libc/net/send.c
73C_FILES += lib/libc/resolv/herror.c
74C_FILES += lib/libc/resolv/res_comp.c
75C_FILES += lib/libc/resolv/res_data.c
76C_FILES += lib/libc/resolv/res_debug.c
77C_FILES += lib/libc/resolv/res_init.c
78C_FILES += lib/libc/resolv/res_mkquery.c
79C_FILES += lib/libc/resolv/res_mkupdate.c
80C_FILES += lib/libc/resolv/res_query.c
81C_FILES += lib/libc/resolv/res_send.c
82C_FILES += lib/libc/resolv/res_update.c
83C_FILES += lib/libc/string/strsep.c
84
85C_FILES += lib/libc/isc/ev_streams.c
86C_FILES += lib/libc/isc/ev_timers.c
87
88C_FILES += lib/libc/stdio/fgetln.c
89
90# RTEMS Specific Files
91# C_FILES += rtems/rtems-net-setup.c
92C_FILES += rtems/syslog.c
93
94# ping command sources
95C_FILES += commands/sbin/ping/ping.c
96C_FILES += commands/sbin/ping6/ping6.c
97
98# route command sources
99C_FILES += commands/sbin/route/route.c
100
101# dhclient command sources
102C_FILES += commands/sbin/dhclient/alloc.c
103C_FILES += commands/sbin/dhclient/bpf.c
104C_FILES += commands/sbin/dhclient/clparse.c
105C_FILES += commands/sbin/dhclient/conflex.c
106C_FILES += commands/sbin/dhclient/convert.c
107C_FILES += commands/sbin/dhclient/dhclient.c
108C_FILES += commands/sbin/dhclient/dispatch.c
109C_FILES += commands/sbin/dhclient/errwarn.c
110C_FILES += commands/sbin/dhclient/hash.c
111C_FILES += commands/sbin/dhclient/inet.c
112C_FILES += commands/sbin/dhclient/options.c
113C_FILES += commands/sbin/dhclient/packet.c
114C_FILES += commands/sbin/dhclient/parse.c
115C_FILES += commands/sbin/dhclient/privsep.c
116C_FILES += commands/sbin/dhclient/tables.c
117C_FILES += commands/sbin/dhclient/tree.c
118
119# ifconfig command sources
120C_FILES += commands/sbin/ifconfig/af_atalk.c
121C_FILES += commands/sbin/ifconfig/af_inet.c
122C_FILES += commands/sbin/ifconfig/af_link.c
123C_FILES += commands/sbin/ifconfig/ifbridge.c
124C_FILES += commands/sbin/ifconfig/ifclone.c
125C_FILES += commands/sbin/ifconfig/ifgif.c
126C_FILES += commands/sbin/ifconfig/ifgroup.c
127C_FILES += commands/sbin/ifconfig/iflagg.c
128C_FILES += commands/sbin/ifconfig/ifmedia.c
129C_FILES += commands/sbin/ifconfig/ifvlan.c
130C_FILES += commands/sbin/ifconfig/af_inet6.c
131C_FILES += commands/sbin/ifconfig/af_nd6.c
132C_FILES += commands/sbin/ifconfig/ifcarp.c
133C_FILES += commands/sbin/ifconfig/ifconfig.c
134C_FILES += commands/sbin/ifconfig/ifgre.c
135C_FILES += commands/sbin/ifconfig/ifieee80211.c
136C_FILES += commands/sbin/ifconfig/ifmac.c
137C_FILES += commands/sbin/ifconfig/ifpfsync.c
138
139# The following two files were left out to avoid
140# porting issues.  regdomain uses an xml parser
141# that is not part of the standard release and
142# af_ipx uses thread0 which we are trying to avoid
143# pulling in.
144#
145# C_FILES += commands/sbin/ifconfig/regdomain.c
146# C_FILES += commands/sbin/ifconfig/af_ipx.c
147
148ifeq (1,0)
149# netstat command sources
150# no need to support AppleTalk yet
151# C_FILES += commands/usr.bin/netstat/atalk.c
152C_FILES += commands/usr.bin/netstat/bpf.c
153C_FILES += commands/usr.bin/netstat/if.c
154C_FILES += commands/usr.bin/netstat/inet6.c
155C_FILES += commands/usr.bin/netstat/inet.c
156C_FILES += commands/usr.bin/netstat/ipsec.c
157# no need to support IPX yet
158# C_FILES += commands/usr.bin/netstat/ipx.c
159C_FILES += commands/usr.bin/netstat/main.c
160C_FILES += commands/usr.bin/netstat/mbuf.c
161C_FILES += commands/usr.bin/netstat/mroute6.c
162C_FILES += commands/usr.bin/netstat/mroute.c
163# Disable netgraph support - this is a long thread to pull
164# C_FILES += commands/usr.bin/netstat/netgraph.c
165C_FILES += commands/usr.bin/netstat/pfkey.c
166C_FILES += commands/usr.bin/netstat/route.c
167C_FILES += commands/usr.bin/netstat/sctp.c
168C_FILES += commands/usr.bin/netstat/unix.c
169endif
170
171C_O_FILES = $(C_FILES:%.c=%.o)
172C_D_FILES = $(C_FILES:%.c=%.d)
173
174LIB = libbsdc.a
175GEN_FILES = include/rpc/rpcb_prot.h
176GEN_FILES += commands/sbin/route/keywords.h
177all: $(LIB)
178
179$(LIB): $(GEN_FILES) $(C_O_FILES)
180        $(AR) rcu $@ $^
181
182include/rpc/rpcb_prot.h: include/rpc/rpcb_prot.x
183        rm -f include/rpc/rpcb_prot.h
184        rpcgen -h -o include/rpc/rpcb_prot.h include/rpc/rpcb_prot.x
185
186commands/sbin/route/keywords.h: commands/sbin/route/keywords
187        sed -e '/^#/d' -e '/^$$/d' commands/sbin/route//keywords > _keywords.tmp
188        LC_ALL=C tr 'a-z' 'A-Z' < _keywords.tmp | paste _keywords.tmp - | \
189            awk '{ \
190                if (NF > 1) \
191                        printf "#define\tK_%s\t%d\n\t{\"%s\", K_%s},\n", \
192                            $$2, NR, $$1, $$2 }' \
193            > commands/sbin/route/keywords.h
194        rm -f _keywords.tmp
195
196install: $(LIB)
197        install -d $(INSTALL_BASE)/include
198        cd include; for i in `find . -name '*.h'` ; do \
199          install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
200        cd rtems/include; for i in `find . -name '*.h'` ; do \
201          install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
202        cd local; for i in `find . -name '*.h'` ; do \
203          install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
204        cd sys; for i in `find . -name '*.h'` ; do \
205          install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
206        install -c -m 644 $(LIB) $(INSTALL_BASE)
207
208clean:
209        rm -f $(LIB) $(C_O_FILES) $(C_D_FILES) $(GEN_FILES)
210
211-include $(C_D_FILES)
212
213doc: 
214
Note: See TracBrowser for help on using the repository browser.