summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2012-07-09 17:21:36 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2012-07-09 17:21:36 -0500
commit842c238a37ef41275a1ba5ae505e078708e82eaa (patch)
treeda1a69426c1da0084c44d10977e1fa5e51dd6dc2 /Makefile
parentlink01: Add static_hints and make nic-sysinit.h generic (diff)
downloadrtems-libbsd-842c238a37ef41275a1ba5ae505e078708e82eaa.tar.bz2
Makefile: updated to probably install architecture specific .h files
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5c543d98..84e6462e 100644
--- a/Makefile
+++ b/Makefile
@@ -452,12 +452,22 @@ $(LIB): $(C_O_FILES)
lib_usb:
$(MAKE) $(LIB)
+CPU_SED = sed
+CPU_SED += -e '/arm/d'
+CPU_SED += -e '/i386/d'
+CPU_SED += -e '/powerpc/d'
+CPU_SED += -e '/mips/d'
+CPU_SED += -e '/sparc/d'
+CPU_SED += -e '/sparc64/d'
+
install: $(LIB)
install -d $(INSTALL_BASE)/include
install -c -m 644 $(LIB) $(INSTALL_BASE)
- cd rtemsbsd; for i in `find . -name '*.h'` ; do \
+ cd rtemsbsd; for i in `find . -name '*.h' | $(CPU_SED)` ; do \
+ install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
+ for i in `find contrib freebsd -name '*.h' | $(CPU_SED)` ; do \
install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
- for i in `find contrib freebsd -name '*.h'` ; do \
+ cd freebsd/$(RTEMS_CPU)/include ; for i in `find . -name '*.h'` ; do \
install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
clean: