Changeset d2ff8254 in rtems


Ignore:
Timestamp:
Nov 7, 2005, 9:11:31 AM (15 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
f6d9b6f
Parents:
650b975
Message:

Take contents of amcompile.am.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/automake/compile.am

    r650b975 rd2ff8254  
    33##
    44
    5 ## -------------------------------------------------------------------------
    6 ## NOTE: This file is rather immature and has to be considered to be
    7 ## almost experimental.
    8 ##
    9 ## Expect frequent changes -- It deserves to be cleaned up :(
    10 ## -------------------------------------------------------------------------
     5## RTEMS_USE_GCC     .. if we are using GCC
    116
    127if RTEMS_USE_GCC
     
    1510endif # RTEMS_USE_GCC
    1611
     12depend:
     13
     14if RTEMS_USE_GCC
     15RTEMS_RELLDFLAGS = -qnolinkcmds -nostdlib -Wl,-r
     16endif
    1717LINK_LIBS = $(LD_LIBS)
    1818
     19#COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
     20#       $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
     21#CCLD = $(CC)
     22#LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
     23#        $(AM_LDFLAGS) $(LDFLAGS) -o $@
    1924#
    20 # How to compile stuff into ${ARCH} subdirectory
     25#CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
     26#       $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
     27#CXXLD = $(CXX)
     28#CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \
     29#       $(AM_LDFLAGS) $(LDFLAGS) -o $@
    2130#
    22 
    23 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
    24         $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
    25 CCLD = $(CC)
    26 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
    27         $(AM_LDFLAGS) $(LDFLAGS) -o $@
    28 
    29 CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
    30         $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
    31 CXXLD = $(CXX)
    32 CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \
    33         $(AM_LDFLAGS) $(LDFLAGS) -o $@
    34 
    35 CCASCOMPILE = $(CCAS) $(AM_CCASFLAGS) $(CCASFLAGS)
    36 
    37 ${ARCH}/%.o: %.c $(ARCH)/$(dirstamp)
    38         ${COMPILE} -o $@ -c $<
    39 
    40 ${ARCH}/%.o: %.cc $(ARCH)/$(dirstamp)
    41         ${CXXCOMPILE} -o $@ -c $<
    42 
    43 ${ARCH}/%.o: %.S $(ARCH)/$(dirstamp)
    44         ${CCASCOMPILE} -DASM -o $@ -c $<
     31#CCASCOMPILE = $(CCAS) $(AM_CCASFLAGS) $(CCASFLAGS)
    4532
    4633${ARCH}/$(dirstamp):
    4734        @$(mkdir_p) $(ARCH)
    4835        @: > $(ARCH)/$(dirstamp)
    49 
    50 # Dependency files for use by gmake
    51 # NOTE: we don't put them into $(ARCH)
    52 #       so that 'make clean' doesn't blow it away
    53 
    54 DEPEND=Depends-${ARCH}
    55 
    56 # We deliberately don't have anything depend on the
    57 # $(DEPEND) file; otherwise it will get rebuilt even
    58 # on 'make clean'
    59 #
    60 
    61 if RTEMS_USE_GCC
    62 ## HACK: Specific to gcc
    63 ## FIXME: The approach below is known to be conceptionally broken.
    64 depend-gcc: $(C_FILES) $(CC_FILES) $(S_FILES)
    65 ##       Use gcc -M to generate dependencies
    66 ##       Replace foo.o with $(ARCH)/foo.o
    67 ##       Replace $(ARCH) value with string $(ARCH)
    68 ##           so that it will for debug cases
    69         $(COMPILE) -M   $^    |  \
    70         sed -e 's?^\(.*\)\.o[ ]*:?$$(ARCH)/\1.o:?' \
    71             -e 's?$(ARCH)/?$$(ARCH)/?'   >$(DEPEND).tmp
    72         mv $(DEPEND).tmp $(DEPEND)
    73 
    74 # pull in dependencies if they exist
    75 ifeq (${DEPEND},$(wildcard ${DEPEND}))
    76 include ${DEPEND}
    77 @ENDIF@
    78 endif
    79 depend: depend-am
    8036
    8137# spell out all the LINK_FILE's, rather than using -lbsp, so
     
    9248
    9349## -------------------------------------------------------------------------
    94 ## Setup the variant build subdirectory
    9550ARCH = o-optimize
    9651
     
    11469
    11570clean-local:
    116         $(RM) -r o-optimize
    117         $(RM) Depends-o-optimize.tmp
     71        $(RM) -r ${ARCH}
Note: See TracChangeset for help on using the changeset viewer.