summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2012-03-08 11:05:16 -0600
committerJoel Sherrill <joel.sherrill@oarcorp.com>2012-03-08 11:05:16 -0600
commit3616a063a1b40795271d4678fb3b2ee9441836d6 (patch)
tree93deac6f56fbe8d5b61b8f278a81e6c7f3b2072e /Makefile
parentRemove rtems/ from includes of RTEMS specific files (diff)
downloadrtems-libbsd-3616a063a1b40795271d4678fb3b2ee9441836d6.tar.bz2
Remove leading rtems/ directory from paths under rtemsbsd
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 4ca468b9..2de04023 100644
--- a/Makefile
+++ b/Makefile
@@ -6,8 +6,7 @@ include $(PROJECT_ROOT)/make/leaf.cfg
CFLAGS += -ffreestanding
CFLAGS += -I .
-# CFLAGS += -I rtemsbsd
-CFLAGS += -I rtemsbsd/rtems
+CFLAGS += -I rtemsbsd
CFLAGS += -I contrib/altq
CFLAGS += -I contrib/pf
CFLAGS += -B $(INSTALL_BASE)
@@ -350,8 +349,11 @@ lib_usb:
make $(LIB)
install: $(LIB)
+ install -d "$(INSTALL_BASE)/include"
install -c -m 644 $(LIB) $(INSTALL_BASE)
- for i in `find . -name '*.h'` ; do \
+ cd rtemsbsd; for i in `find . -name '*.h'` ; do \
+ install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
+ for i in `find contrib freebsd -name '*.h'` ; do \
install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
clean: