source: rtems-libbsd/freebsd-userspace/Makefile @ b27d875

4.1155-freebsd-126-freebsd-12freebsd-9.3
Last change on this file since b27d875 was b27d875, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 27, 2012 at 1:05:15 PM

Makefile: Correct so not rebuilding all every time

  • Property mode set to 100644
File size: 3.4 KB
Line 
1include ../config.inc
2
3include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
4include $(RTEMS_CUSTOM)
5include $(PROJECT_ROOT)/make/leaf.cfg
6
7CFLAGS += -I include
8CFLAGS += -I rtems/include
9CFLAGS += -I lib/libc/include
10CFLAGS += -I sys
11CFLAGS += -I local 
12
13CFLAGS += -I $(INSTALL_BASE)/include
14
15CFLAGS += -w
16CFLAGS += -std=gnu99
17CFLAGS += -MT $@ -MD -MP -MF $(basename $@).d
18
19C_FILES =
20C_FILES += lib/libc/inet/inet_addr.c
21C_FILES += lib/libc/inet/inet_cidr_ntop.c
22C_FILES += lib/libc/inet/inet_cidr_pton.c
23C_FILES += lib/libc/inet/inet_lnaof.c
24C_FILES += lib/libc/inet/inet_makeaddr.c
25C_FILES += lib/libc/inet/inet_net_pton.c
26C_FILES += lib/libc/inet/inet_ntop.c
27C_FILES += lib/libc/inet/inet_neta.c
28C_FILES += lib/libc/inet/inet_net_ntop.c
29C_FILES += lib/libc/inet/inet_netof.c
30C_FILES += lib/libc/inet/inet_network.c
31C_FILES += lib/libc/inet/inet_ntoa.c
32C_FILES += lib/libc/inet/inet_pton.c
33C_FILES += lib/libc/inet/nsap_addr.c
34
35C_FILES += lib/libc/net/base64.c
36C_FILES += lib/libc/net/ether_addr.c
37C_FILES += lib/libc/net/gethostbydns.c
38C_FILES += lib/libc/net/gethostbyht.c
39C_FILES += lib/libc/net/gethostbynis.c
40C_FILES += lib/libc/net/gethostnamadr.c
41C_FILES += lib/libc/net/getifaddrs.c
42C_FILES += lib/libc/net/getifmaddrs.c
43C_FILES += lib/libc/net/getnameinfo.c
44C_FILES += lib/libc/net/getnetbydns.c
45C_FILES += lib/libc/net/getnetbyht.c
46C_FILES += lib/libc/net/getnetbynis.c
47C_FILES += lib/libc/net/getnetnamadr.c
48C_FILES += lib/libc/net/getproto.c
49C_FILES += lib/libc/net/getprotoent.c
50C_FILES += lib/libc/net/getprotoname.c
51C_FILES += lib/libc/net/getservent.c
52C_FILES += lib/libc/gen/gethostname.c
53C_FILES += lib/libc/nameser/ns_name.c
54C_FILES += lib/libc/nameser/ns_netint.c
55C_FILES += lib/libc/nameser/ns_parse.c
56# isc/assertions.h is needed
57# C_FILES += lib/libc/nameser/ns_print.c
58C_FILES += lib/libc/nameser/ns_ttl.c
59C_FILES += lib/libc/net/if_indextoname.c
60C_FILES += lib/libc/net/if_nameindex.c
61C_FILES += lib/libc/net/linkaddr.c
62C_FILES += lib/libc/net/map_v4v6.c
63C_FILES += lib/libc/net/rcmd.c
64C_FILES += lib/libc/net/recv.c
65C_FILES += lib/libc/net/send.c
66# iovec redefined between RTEMS and FreeBSD
67# C_FILES += lib/libc/resolv/herror.c
68C_FILES += lib/libc/resolv/res_comp.c
69C_FILES += lib/libc/resolv/res_data.c
70C_FILES += lib/libc/resolv/res_debug.c
71C_FILES += lib/libc/resolv/res_init.c
72C_FILES += lib/libc/resolv/res_mkquery.c
73# weird compile problem with what appears to be a list
74# C_FILES += lib/libc/resolv/res_mkupdate.c
75C_FILES += lib/libc/resolv/res_query.c
76# fd_setsize.h is missing and Joel can't find it
77# C_FILES += lib/libc/resolv/res_send.c
78# isc/list.h is missing
79# C_FILES += lib/libc/resolv/res_update.c
80C_FILES += lib/libc/string/strsep.c
81
82C_FILES += rtems/rtems-net-setup.c
83
84C_O_FILES = $(C_FILES:%.c=%.o)
85C_D_FILES = $(C_FILES:%.c=%.d)
86
87LIB = libbsdc.a
88GEN_FILES = include/rpc/rpcb_prot.h
89
90all: $(LIB)
91
92$(LIB): $(GEN_FILES) $(C_O_FILES)
93        $(AR) rcu $@ $^
94
95include/rpc/rpcb_prot.h: include/rpc/rpcb_prot.x
96        rm -f include/rpc/rpcb_prot.h
97        rpcgen -h -o include/rpc/rpcb_prot.h include/rpc/rpcb_prot.x
98
99install: $(LIB)
100        install -d $(INSTALL_BASE)/include
101        cd include; for i in `find . -name '*.h'` ; do \
102          install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
103        cd rtems/include; for i in `find . -name '*.h'` ; do \
104          install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
105        install -c -m 644 $(LIB) $(INSTALL_BASE)
106
107clean:
108        rm -f $(LIB) $(C_O_FILES) $(C_D_FILES) $(GEN_FILES)
109
110-include $(C_D_FILES)
111
112doc: 
113
Note: See TracBrowser for help on using the repository browser.