diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-08-21 17:43:22 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-08-21 17:43:22 +0000 |
commit | cce81a748fc4f69de944ff0ae8cb1a59b6194308 (patch) | |
tree | 3db353a3c26999d927915047b1b20497347719bf /make/Makefile.in | |
parent | Modified version number to recut snapshot. (diff) | |
download | rtems-cce81a748fc4f69de944ff0ae8cb1a59b6194308.tar.bz2 |
A patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:
Here is another patch to hopefully enhance rtems' configuration.
Motivation: Try to support other c-compilers besides gcc (I tried to
build rtems under Solaris using sun's WSPro c-compiler).
Here is a couple of small patches concerning the host compiler
configuration, which fix/work-around the worst problems when using sun's
WSPro c-compiler.
Changes:
* Replaced make/compilers/gcc.cfg with make/compilers/gcc.cfg.in, ie.
gcc.cfg is generated by configure now.
* Removed a line containing a hard-coded "gcc" from gcc.cfg (BUG-fix).
* Add -g to host compiler flags only if configure reported -g to work
* Add -Wall to host compiler flags only if configure reported that the
host compiler is gcc (WSPro's cc chokes on -Wall).
* Some modifications to make/Makefile.in
* Adapted make/custom/default.cfg to the new location of gcc.cfg
BTW, gcc.cfg/gcc.cfg.in seems to be full of unused code (DEBUG-VARIANTS
etc.) which deserves to be cleaned up, IMO.
IMO, a similar patch should be applied to gcc-target-default.cfg
Diffstat (limited to 'make/Makefile.in')
-rw-r--r-- | make/Makefile.in | 63 |
1 files changed, 31 insertions, 32 deletions
diff --git a/make/Makefile.in b/make/Makefile.in index 7b281a3bbf..6f504d7eee 100644 --- a/make/Makefile.in +++ b/make/Makefile.in @@ -58,35 +58,34 @@ get: retrieve all: $(prefix)/rtems: - -$(MKDIR) $(prefix) - -$(MKDIR) $(prefix)/rtems - -install: install_files $(prefix)/rtems - -install_files:: $(GENERIC_FILES) $(MAKEFILES) - @test -d $(prefix)/rtems/make || \ - $(MKDIR) $(prefix)/rtems/make - for f in $^; do \ - $(INSTALL) -m 644 "$$f" $(prefix)/rtems/make ;\ - done - -install_files:: $(COMPILER_FILES) - @test -d $(prefix)/rtems/make/compilers || \ - $(MKDIR) $(prefix)/rtems/make/compilers - for f in $^; do \ - $(INSTALL) -m 644 "$$f" $(prefix)/rtems/make/compilers; \ - done - -install_files:: $(CUSTOM_FILES) - @test -d $(prefix)/rtems/make/custom || \ - $(MKDIR) $(prefix)/rtems/make/custom - for f in $^; do \ - $(INSTALL) -m 644 "$$f" $(prefix)/rtems/make/custom; \ - done - -install_files:: $(TEMPLATE_FILES) - @test -d $(prefix)/rtems/make/Templates || \ - $(MKDIR) $(prefix)/rtems/make/Templates - for f in $^; do \ - $(INSTALL) -m 644 "$$f" $(prefix)/rtems/make/Templates; \ - done + @INSTALL@ $(INSTDIRFLAGS) $@ + +install: $(prefix)/rtems install_files + +$(prefix)/rtems/make: + @INSTALL@ $(INSTDIRFLAGS) $@ + +install_files:: $(GENERIC_FILES) $(MAKEFILES) $(prefix)/rtems/make + @INSTALL@ $(INSTDATAFLAGS) $(GENERIC_FILES) $(MAKEFILES) \ + $(prefix)/rtems/make + +$(prefix)/rtems/make/compilers: + @INSTALL@ $(INSTDIRFLAGS) $@ + +install_files:: $(COMPILER_FILES) $(prefix)/rtems/make/compilers + @INSTALL@ $(INSTDATAFLAGS) $(COMPILER_FILES) \ + $(prefix)/rtems/make/compilers + +$(prefix)/rtems/make/custom: + @INSTALL@ $(INSTDIRFLAGS) $@ + +install_files:: $(CUSTOM_FILES) $(prefix)/rtems/make/custom + @INSTALL@ $(INSTDATAFLAGS) $(CUSTOM_FILES) \ + $(prefix)/rtems/make/custom + +$(prefix)/rtems/make/Templates: + @INSTALL@ $(INSTDIRFLAGS) $@ + +install_files:: $(TEMPLATE_FILES) $(prefix)/rtems/make/Templates + @INSTALL@ $(INSTDATAFLAGS) $(TEMPLATE_FILES) \ + $(prefix)/rtems/make/Templates |