stmp-targ-include modification
Joel Sherrill
joel.sherrill@OARcorp.com
Fri Dec 1 06:42:00 GMT 2000
With all the .h files for a target in a single spot in the build
tree other libraries built on top of the C library which are
built at the same time as gcc/newlib (i.e. language run-times)
do not have to know about newlib target specific .h file placement.
2000-12-01 Joel Sherrill <joel@OARcorp.com>
* Makefile.am (stmp-targ-include): Put all .h files in a single
directory in the build tree to simplify building other
components.
--
Joel Sherrill, Ph.D. Director of Research & Development
joel@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
Index: newlib/Makefile.am
===================================================================
RCS file: /cvs/src/src/newlib/Makefile.am,v
retrieving revision 1.3
diff -u -r1.3 Makefile.am
--- Makefile.am 2000/09/06 20:46:27 1.3
+++ Makefile.am 2000/12/01 13:20:16
@@ -109,6 +107,21 @@
stmp-targ-include: config.status
-rm -rf targ-include stmp-targ-include
mkdir targ-include targ-include/sys targ-include/machine
+ -for i in $(srcdir)/libc/include/*.h; do \
+ if [ -f $$i ]; then \
+ cp $$i targ-include/`basename $$i`; \
+ else true; fi ; \
+ done
+ -for i in $(srcdir)/libc/include/sys/*.h; do \
+ if [ -f $$i ]; then \
+ cp $$i targ-include/sys/`basename $$i`; \
+ else true; fi ; \
+ done
+ -for i in $(srcdir)/libc/include/machine/*.h; do \
+ if [ -f $$i ]; then \
+ cp $$i targ-include/machine/`basename $$i`; \
+ else true; fi ; \
+ done
-for i in $(srcdir)/libc/machine/$(machine_dir)/machine/*.h; do \
if [ -f $$i ]; then \
cp $$i targ-include/machine/`basename $$i`; \
More information about the Newlib
mailing list