Changeset cce81a7 in rtems for make


Ignore:
Timestamp:
Aug 21, 1998, 5:43:22 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
4de817d
Parents:
aa2171b
Message:

A patch from Ralf Corsepius <corsepiu@…>:

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

Location:
make
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • make/Makefile.in

    raa2171b rcce81a7  
    5959
    6060$(prefix)/rtems:
    61         -$(MKDIR) $(prefix)
    62         -$(MKDIR) $(prefix)/rtems
     61        @INSTALL@ $(INSTDIRFLAGS) $@
    6362
    64 install: install_files $(prefix)/rtems
     63install: $(prefix)/rtems install_files
    6564
    66 install_files:: $(GENERIC_FILES) $(MAKEFILES)
    67         @test -d $(prefix)/rtems/make || \
    68                 $(MKDIR) $(prefix)/rtems/make
    69         for f in $^; do \
    70         $(INSTALL) -m 644 "$$f" $(prefix)/rtems/make ;\
    71         done
     65$(prefix)/rtems/make:
     66        @INSTALL@ $(INSTDIRFLAGS) $@
    7267
    73 install_files:: $(COMPILER_FILES)
    74         @test -d $(prefix)/rtems/make/compilers || \
    75                 $(MKDIR) $(prefix)/rtems/make/compilers
    76         for f in $^; do \
    77         $(INSTALL) -m 644 "$$f" $(prefix)/rtems/make/compilers; \
    78         done
     68install_files:: $(GENERIC_FILES) $(MAKEFILES) $(prefix)/rtems/make
     69        @INSTALL@ $(INSTDATAFLAGS) $(GENERIC_FILES) $(MAKEFILES) \
     70        $(prefix)/rtems/make
    7971
    80 install_files:: $(CUSTOM_FILES)
    81         @test -d $(prefix)/rtems/make/custom || \
    82                 $(MKDIR) $(prefix)/rtems/make/custom
    83         for f in $^; do \
    84         $(INSTALL) -m 644 "$$f" $(prefix)/rtems/make/custom; \
    85         done
     72$(prefix)/rtems/make/compilers:
     73        @INSTALL@ $(INSTDIRFLAGS) $@
    8674
    87 install_files:: $(TEMPLATE_FILES)
    88         @test -d $(prefix)/rtems/make/Templates || \
    89                 $(MKDIR) $(prefix)/rtems/make/Templates
    90         for f in $^; do \
    91         $(INSTALL) -m 644 "$$f" $(prefix)/rtems/make/Templates; \
    92         done
     75install_files:: $(COMPILER_FILES) $(prefix)/rtems/make/compilers
     76        @INSTALL@ $(INSTDATAFLAGS) $(COMPILER_FILES) \
     77        $(prefix)/rtems/make/compilers
     78
     79$(prefix)/rtems/make/custom:
     80        @INSTALL@ $(INSTDIRFLAGS) $@
     81
     82install_files:: $(CUSTOM_FILES) $(prefix)/rtems/make/custom
     83        @INSTALL@ $(INSTDATAFLAGS) $(CUSTOM_FILES) \
     84        $(prefix)/rtems/make/custom
     85
     86$(prefix)/rtems/make/Templates:
     87        @INSTALL@ $(INSTDIRFLAGS) $@
     88
     89install_files:: $(TEMPLATE_FILES) $(prefix)/rtems/make/Templates
     90        @INSTALL@ $(INSTDATAFLAGS) $(TEMPLATE_FILES) \
     91        $(prefix)/rtems/make/Templates
  • make/custom/default.cfg

    raa2171b rcce81a7  
    3232# HOST Compiler config file
    3333# You may also want to specify where the compiler resides here.
    34 CONFIG.$(HOST_ARCH).CC   = $(RTEMS_ROOT)/make/compilers/gcc.cfg
     34CONFIG.$(HOST_ARCH).CC   = $(PROJECT_ROOT)/make/compilers/gcc.cfg
    3535
    3636## Target compiler config file, if any
Note: See TracChangeset for help on using the changeset viewer.