diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-07-09 17:21:36 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-07-09 17:21:36 -0500 |
commit | 842c238a37ef41275a1ba5ae505e078708e82eaa (patch) | |
tree | da1a69426c1da0084c44d10977e1fa5e51dd6dc2 /Makefile | |
parent | link01: Add static_hints and make nic-sysinit.h generic (diff) | |
download | rtems-libbsd-842c238a37ef41275a1ba5ae505e078708e82eaa.tar.bz2 |
Makefile: updated to probably install architecture specific .h files
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -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: |