summaryrefslogtreecommitdiffstats
path: root/freebsd-userspace/Makefile
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2012-07-11 16:01:37 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2012-07-11 16:01:37 -0500
commit028aaafa79bda01c0d0456266df9510ad4caeca9 (patch)
treef2cdda7c295433673d24a87d8326e83d50607c1a /freebsd-userspace/Makefile
parentMakefile: Fix clean and install of user space (diff)
downloadrtems-libbsd-028aaafa79bda01c0d0456266df9510ad4caeca9.tar.bz2
freebsd-userspace: All files in old libnetworking/libc now present
But they don't all compile. Multiple issues left to address.
Diffstat (limited to 'freebsd-userspace/Makefile')
-rw-r--r--freebsd-userspace/Makefile40
1 files changed, 37 insertions, 3 deletions
diff --git a/freebsd-userspace/Makefile b/freebsd-userspace/Makefile
index bc363477..1417f65b 100644
--- a/freebsd-userspace/Makefile
+++ b/freebsd-userspace/Makefile
@@ -54,6 +54,35 @@ C_FILES += lib/libc/net/getnetbynis.c
# C_FILES += lib/libc/net/getprotoent.c
# C_FILES += lib/libc/net/getprotoname.c
# C_FILES += lib/libc/net/getservent.c
+C_FILES += lib/libc/gen/gethostname.c
+# C_FILES += lib/libc/nameser/ns_name.c
+C_FILES += lib/libc/nameser/ns_netint.c
+C_FILES += lib/libc/nameser/ns_parse.c
+# C_FILES += lib/libc/nameser/ns_print.c
+C_FILES += lib/libc/nameser/ns_ttl.c
+C_FILES += lib/libc/net/if_indextoname.c
+C_FILES += lib/libc/net/if_nameindex.c
+C_FILES += lib/libc/net/linkaddr.c
+# C_FILES += lib/libc/net/map_v4v6.c
+# C_FILES += lib/libc/net/rcmd.c
+C_FILES += lib/libc/net/recv.c
+C_FILES += lib/libc/net/send.c
+# iovec redefined between RTEMS and FreeBSD
+# C_FILES += lib/libc/resolv/herror.c
+C_FILES += lib/libc/resolv/res_comp.c
+# Little of res_XXX compiles without BIND_4_COMPAT fixed
+# one of many needing BIND_4_COMPAT defined (#1 issue impacting most)
+# C_FILES += lib/libc/resolv/res_data.c
+# one of many needing BIND_4_COMPAT defined (#1 issue impacting most)
+# C_FILES += lib/libc/resolv/res_debug.c
+# one of many needing BIND_4_COMPAT defined (#1 issue impacting most)
+# C_FILES += lib/libc/resolv/res_init.c
+# C_FILES += lib/libc/resolv/res_mkquery.c
+# C_FILES += lib/libc/resolv/res_mkupdate.c
+# C_FILES += lib/libc/resolv/res_query.c
+#C_FILES += lib/libc/resolv/res_send.c
+#C_FILES += lib/libc/resolv/res_update.c
+C_FILES += lib/libc/string/strsep.c
C_FILES += rtems/rtems-net-setup.c
@@ -61,15 +90,20 @@ C_O_FILES = $(C_FILES:%.c=%.o)
C_D_FILES = $(C_FILES:%.c=%.d)
LIB = libbsdc.a
+GEN_FILES = include/rpc/rpcb_prot.h
all: lib_bsdc
-$(LIB): $(C_O_FILES)
+$(LIB): $(GEN_FILES) $(C_O_FILES)
$(AR) rcu $@ $^
-lib_bsdc:
+lib_bsdc: $(LIB) include/rpc/rpcb_prot.h
$(MAKE) $(LIB)
+include/rpc/rpcb_prot.h: include/rpc/rpcb_prot.x
+ rm -f include/rpc/rpcb_prot.h
+ rpcgen -h -o include/rpc/rpcb_prot.h include/rpc/rpcb_prot.x
+
install: $(LIB)
install -d $(INSTALL_BASE)/include
cd include; for i in `find . -name '*.h'` ; do \
@@ -77,7 +111,7 @@ install: $(LIB)
install -c -m 644 $(LIB) $(INSTALL_BASE)
clean:
- rm -f $(LIB) $(C_O_FILES) $(C_D_FILES)
+ rm -f $(LIB) $(C_O_FILES) $(C_D_FILES) $(GEN_FILES)
-include $(C_D_FILES)