This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Create and Install to include/$(machine_dir)


Hi Jeff,

I have a need to create a newlib include directory include/mips. This patch adds the Makefile bits needed to copy the include files to targ-include and to install them. Does this look okay to install? I tested the patch with mips-elf and arm-elf. The patch to add the new header files will be submitted at a later date.

Thanks,
Catherine


2009-04-06 Catherine Moore <clm@codesourcery.com>


        * Makefile.am (stmp-targ-include): Copy headers from
        machine/include/$(machine_dir).
        (install-data-local): Install headers to include/$(machine_dir).
    * Makefile.in: Regenerated.






Index: Makefile.am
===================================================================
RCS file: /cvs/src/src/newlib/Makefile.am,v
retrieving revision 1.42
diff -p -r1.42 Makefile.am
*** Makefile.am	21 Jan 2008 18:29:17 -0000	1.42
--- Makefile.am	6 Apr 2009 23:05:36 -0000
*************** stmp-targ-include: config.status
*** 211,216 ****
--- 211,224 ----
  	      cp $$i targ-include/`basename $$i`; \
  	    else true; fi ; \
  	  done
+ 	-if [ -d $(srcdir)/libc/machine/$(machine_dir)/include/$(machine_dir) ]; then \
+ 	  mkdir targ-include/$(machine_dir); \
+ 	fi ;
+ 	-for i in $(srcdir)/libc/machine/$(machine_dir)/include/$(machine_dir)/*.h; do \
+ 	    if [ -f $$i ]; then \
+ 	      cp $$i targ-include/$(machine_dir)/`basename $$i`; \
+ 	    else true; fi ; \
+ 	  done
  	-for i in $(srcdir)/libc/sys/$(sys_dir)/include/*.h; do \
  	    if [ -f $$i ]; then \
  	      cp $$i targ-include/`basename $$i`; \
*************** endif
*** 267,272 ****
--- 275,286 ----
  	     $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/machine/`basename $$i`; \
  	    else true; fi ; \
  	  done; \
+ 	  if [ -d $(srcdir)/libc/machine/$(machine_dir)/include/$(machine_dir) ]; then \
+ 	    $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/$(machine_dir); \
+ 	  else true; fi ; \
+ 	  for i in $(srcdir)/libc/machine/$(machine_dir)/include/$(machine_dir)/*.h; do \
+ 	   $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/$(machine_dir)/`basename $$i`; \
+ 	  done; \
  	  $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/sys; \
  	  for i in $(srcdir)/libc/include/sys/*.h; do \
  	   $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/sys/`basename $$i`; \
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/newlib/Makefile.in,v
retrieving revision 1.52
diff -p -r1.52 Makefile.in
*** Makefile.in	29 Sep 2008 15:40:26 -0000	1.52
--- Makefile.in	6 Apr 2009 23:05:36 -0000
*************** UNIX_OBJECTLIST = @UNIX_OBJECTLIST@
*** 223,242 ****
  USE_LIBTOOL_FALSE = @USE_LIBTOOL_FALSE@
  USE_LIBTOOL_TRUE = @USE_LIBTOOL_TRUE@
  VERSION = @VERSION@
- ac_ct_AR = @ac_ct_AR@
- ac_ct_AS = @ac_ct_AS@
  ac_ct_CC = @ac_ct_CC@
- ac_ct_DLLTOOL = @ac_ct_DLLTOOL@
- ac_ct_DSYMUTIL = @ac_ct_DSYMUTIL@
  ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
- ac_ct_LIPO = @ac_ct_LIPO@
- ac_ct_NMEDIT = @ac_ct_NMEDIT@
- ac_ct_OBJDUMP = @ac_ct_OBJDUMP@
- ac_ct_OTOOL = @ac_ct_OTOOL@
- ac_ct_OTOOL64 = @ac_ct_OTOOL64@
- ac_ct_RANLIB = @ac_ct_RANLIB@
- ac_ct_READELF = @ac_ct_READELF@
- ac_ct_STRIP = @ac_ct_STRIP@
  aext = @aext@
  am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
--- 223,230 ----
*************** build_cpu = @build_cpu@
*** 252,263 ****
--- 240,255 ----
  build_os = @build_os@
  build_vendor = @build_vendor@
  datadir = @datadir@
+ datarootdir = @datarootdir@
+ docdir = @docdir@
+ dvidir = @dvidir@
  exec_prefix = @exec_prefix@
  host = @host@
  host_alias = @host_alias@
  host_cpu = @host_cpu@
  host_os = @host_os@
  host_vendor = @host_vendor@
+ htmldir = @htmldir@
  includedir = @includedir@
  infodir = @infodir@
  install_sh = @install_sh@
*************** libc_cv_initfinit_array = @libc_cv_initf
*** 266,271 ****
--- 258,264 ----
  libdir = @libdir@
  libexecdir = @libexecdir@
  libm_machine_dir = @libm_machine_dir@
+ localedir = @localedir@
  localstatedir = @localstatedir@
  lpfx = @lpfx@
  lt_ECHO = @lt_ECHO@
*************** mkdir_p = @mkdir_p@
*** 275,282 ****
--- 268,277 ----
  newlib_basedir = @newlib_basedir@
  oext = @oext@
  oldincludedir = @oldincludedir@
+ pdfdir = @pdfdir@
  prefix = @prefix@
  program_transform_name = @program_transform_name@
+ psdir = @psdir@
  sbindir = @sbindir@
  sharedstatedir = @sharedstatedir@
  subdirs = @subdirs@
*************** stmp-targ-include: config.status
*** 888,893 ****
--- 883,897 ----
  	      cp $$i targ-include/`basename $$i`; \
  	    else true; fi ; \
  	  done
+ 	echo "*** clm" $machine_dir
+ 	-if [ -d $(srcdir)/libc/machine/$(machine_dir)/include/$(machine_dir) ]; then \
+ 	  mkdir targ-include/$(machine_dir); \
+ 	fi ;
+ 	-for i in $(srcdir)/libc/machine/$(machine_dir)/include/$(machine_dir)/*.h; do \
+ 	    if [ -f $$i ]; then \
+ 	      cp $$i targ-include/$(machine_dir)/`basename $$i`; \
+ 	    else true; fi ; \
+ 	  done
  	-for i in $(srcdir)/libc/sys/$(sys_dir)/include/*.h; do \
  	    if [ -f $$i ]; then \
  	      cp $$i targ-include/`basename $$i`; \
*************** install-data-local:	install-toollibLIBRA
*** 939,944 ****
--- 943,954 ----
  	     $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/machine/`basename $$i`; \
  	    else true; fi ; \
  	  done; \
+ 	  if [ -d $(srcdir)/libc/machine/$(machine_dir)/include/$(machine_dir) ]; then \
+ 	    $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/$(machine_dir); \
+ 	  else true; fi ; \
+ 	  for i in $(srcdir)/libc/machine/$(machine_dir)/include/$(machine_dir)/*.h; do \
+ 	   $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/$(machine_dir)/`basename $$i`; \
+ 	  done; \
  	  $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/sys; \
  	  for i in $(srcdir)/libc/include/sys/*.h; do \
  	   $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/sys/`basename $$i`; \

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]