Changeset df49c60 in rtems for make/compilers


Ignore:
Timestamp:
Jun 12, 2000, 3:00:15 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
edeed26
Parents:
0ab65474
Message:

Merged from 4.5.0-beta3a

Location:
make/compilers
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • make/compilers/Makefile.am

    r0ab65474 rdf49c60  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 EXTRA_DIST = \
    8 gcc-no_bsp.cfg \
    9 gcc-portsw.cfg \
    10 gcc-target-default.cfg
     7EXTRA_DIST = gcc-no_bsp.cfg gcc-portsw.cfg gcc-target-default.cfg
    118
    129## -------------------------------------------------------
    13 include $(top_srcdir)/automake/local.am
     10include $(top_srcdir)/automake/host.am
  • make/compilers/gcc-no_bsp.cfg

    r0ab65474 rdf49c60  
    7878# debug flag; typically -g
    7979CFLAGS_DEBUG_V=-g -Wno-unused
    80 
    81 # when debugging, optimize flag: typically empty
    82 # some compilers do allow optimization with their "-g"
    83 CFLAGS_DEBUG_OPTIMIZE_V=
    8480
    8581# profile flag; use gprof(1)
     
    212208
    213209# Dependency files for use by gmake
    214 # NOTE: we don't put in $(TARGET_ARCH)
     210# NOTE: we don't put them into $(ARCH)
    215211#       so that 'make clean' doesn't blow it away
    216212
    217 DEPEND=Depends-$(TARGET_ARCH:o-%=%)
     213DEPEND=Depends-${ARCH}
    218214
    219215CLEAN_DEPEND=$(DEPEND).tmp
  • make/compilers/gcc-portsw.cfg

    r0ab65474 rdf49c60  
    5959# debug flag; typically -g
    6060CFLAGS_DEBUG_V=-g -O0 -DRTEMS_DEBUG -DSTACK_CHECKER_ON
    61 
    62 # when debugging, optimize flag: typically empty
    63 # some compilers do allow optimization with their "-g"
    64 CFLAGS_DEBUG_OPTIMIZE_V=
    6561
    6662# profile flag; use gprof(1)
     
    199195
    200196# Dependency files for use by gmake
    201 # NOTE: we don't put in $(TARGET_ARCH)
     197# NOTE: we don't put them into $(ARCH)
    202198#       so that 'make clean' doesn't blow it away
    203199
    204 DEPEND=Depends-$(TARGET_ARCH:o-%=%)
     200DEPEND=Depends-${ARCH}
    205201
    206202CLEAN_DEPEND=$(DEPEND).tmp
  • make/compilers/gcc-target-default.cfg

    r0ab65474 rdf49c60  
    9494endif
    9595
    96 # when debugging, optimize flag: typically empty
    97 # some compilers do allow optimization with their "-g"
    98 CFLAGS_DEBUG_OPTIMIZE_V=-g
    99 
    10096# profile flag; use gprof(1)
    10197CFLAGS_PROFILE_V=-pg
    10298
     99ifndef AUTOMAKE
    103100# default is to optimize
    104101CFLAGS_OPTIMIZE=$(CFLAGS_OPTIMIZE_V)
     102endif
    105103
    106104# dynamic libraries
     
    108106#ASFLAGS_DYNAMIC_V=
    109107
     108ifndef AUTOMAKE
    110109CFLAGS += $(CFLAGS_OPTIMIZE) $(CFLAGS_DEBUG) $(CFLAGS_PROFILE)
     110endif
    111111
    112112# List of library paths without -L
     
    187187# Make foo.rel from foo.o
    188188${ARCH}/%.rel: ${ARCH}/%.o
    189         ${LD} $(LDFLAGS_INCOMPLETE) -o $@ $^
     189        ${make-rel}
    190190
    191191# create $(ARCH)/pgm from pgm.sh
     
    215215#       Replace $(ARCH) value with string $(ARCH)
    216216#           so that it will for debug and profile cases
    217         $(COMPILE.c) -M   $^    |  \
     217        $(COMPILE.c) $(AM_CPPFLAGS) $(AM_CFLAGS) -M   $^    |  \
    218218        $(SED) -e 's?^\(.*\)\.o[ ]*:?$$(ARCH)/\1.o:?' \
    219219            -e 's?$(ARCH)/?$$(ARCH)/?'   >$(DEPEND).tmp
     
    290290endif
    291291
    292 
     292ifeq ($(RTEMS_USE_GCC272),yes)
    293293define make-rel
    294294        $(LD) $(LDFLAGS_INCOMPLETE) $(XLDFLAGS) -o $@ $^
    295295endef
     296else
     297define make-rel
     298        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
     299          -qnolinkcmds -nostdlib -Wl,-r $(XLDFLAGS) -o $@ $^
     300endef
     301endif
Note: See TracChangeset for help on using the changeset viewer.