summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2012-07-11 14:31:26 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2012-07-11 14:31:26 -0500
commit079c3f27ea5c1c97c2807d8b9b300a330ab041fb (patch)
tree5190496a2c0627aa96924584a73dbc241160416b
parentlink01: Initialize interfaces (diff)
downloadrtems-libbsd-079c3f27ea5c1c97c2807d8b9b300a330ab041fb.tar.bz2
userspace: Add install support
-rw-r--r--freebsd-userspace/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/freebsd-userspace/Makefile b/freebsd-userspace/Makefile
index d2881873..bc363477 100644
--- a/freebsd-userspace/Makefile
+++ b/freebsd-userspace/Makefile
@@ -55,6 +55,8 @@ C_FILES += lib/libc/net/getnetbynis.c
# C_FILES += lib/libc/net/getprotoname.c
# C_FILES += lib/libc/net/getservent.c
+C_FILES += rtems/rtems-net-setup.c
+
C_O_FILES = $(C_FILES:%.c=%.o)
C_D_FILES = $(C_FILES:%.c=%.d)
@@ -69,8 +71,10 @@ lib_bsdc:
$(MAKE) $(LIB)
install: $(LIB)
- #install -d $(INSTALL_BASE)/include
- #install -c -m 644 $(LIB) $(INSTALL_BASE)
+ install -d $(INSTALL_BASE)/include
+ cd include; for i in `find . -name '*.h'` ; do \
+ install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
+ install -c -m 644 $(LIB) $(INSTALL_BASE)
clean:
rm -f $(LIB) $(C_O_FILES) $(C_D_FILES)