Changeset 674c900 in rtems for Makefile.in


Ignore:
Timestamp:
Dec 10, 1997, 4:58:00 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
d2632274
Parents:
f99d4f83
Message:

Modified a lot of files to take a first cut at supporting building from
any directory in the build tree. The only variable which must be set
before the command "gmake" is invoked is RTEMS_BSP (e.g. RTEMS_BSP=erc32).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile.in

    rf99d4f83 r674c900  
    1717program_prefix = @program_prefix@
    1818
     19RTEMS_ROOT = @RTEMS_ROOT@
     20PROJECT_ROOT = @PROJECT_ROOT@
    1921
    2022VPATH=@srcdir@
    21 
    22 CFLAGS = @CFLAGS@
    23 CPPFLAGS = @CPPFLAGS@
    24 DEFS = @DEFS@
    25 LDFLAGS =
    26 LIBS = @LIBS@
    27 CC_FOR_BUILD = gcc
    28 
    29 
    30 CC_FOR_TARGET = $(program_prefix)gcc
    31 AS_FOR_TARGET = $(program_prefix)as
    32 AR_FOR_TARGET = $(program_prefix)ar
    33 NM_FOR_TARGET = $(program_prefix)nm
    34 LD_FOR_TARGET = $(program_prefix)ld
    35 OBJCOPY_FOR_TARGET = $(program_prefix)objcopy
    36 SIZE_FOR_TARGET = $(program_prefix)size
    37 
    38 RTEMS_ROOT = @RTEMS_ROOT@
    39 RTEMS_HOST = @RTEMS_HOST@
    40 PROJECT_ROOT = @PROJECT_ROOT@
    41 RTEMS_USE_OWN_PDIR = @RTEMS_USE_OWN_PDIR@
    42 RTEMS_HAS_POSIX_API = @RTEMS_HAS_POSIX_API@
    43 RTEMS_HAS_KA9Q = @RTEMS_HAS_KA9Q@
    44 RTEMS_HAS_CPLUSPLUS = @RTEMS_HAS_CPLUSPLUS@
    45 RTEMS_USE_MACROS = @RTEMS_USE_MACROS@
    46 RTEMS_USE_GCC272 = @RTEMS_USE_GCC272@
    47 RTEMS_LIBC_DIR = @RTEMS_LIBC_DIR@
    4823
    4924ifeq ($(RTEMSBSP),)
     
    5227  RTEMS_BSP = $(RTEMSBSP)
    5328endif
     29
     30MAKE_CONFIG_EXTRA_DIR_PART=c/
    5431
    5532include $(RTEMS_ROOT)/make/main.cfg
     
    6643override MAKEFLAGS=
    6744
     45#            \"XCFLAGS=$(CFLAGS_FOR_TARGET)\"
     46
    6847$(MTARGETS): make_subdir
    6948        BASEDIR=`pwd`; \
     
    7251            cd $$BASEDIR; \
    7352            cmd="cd c; $(MAKE) RTEMS_BSP=$$bsp $(FLAGS_TO_PASS) \
    74             RTEMS_CUSTOM=$(RTEMS_ROOT)/make/custom/$$bsp.cfg \
    75             INSTALL=$(PROJECT_ROOT)/$$bsp/build-tools/install-if-change \
    76             \"CC=$(CC_FOR_TARGET)\" \
    77             \"XCFLAGS=$(CFLAGS_FOR_TARGET)\" \
    78             \"CC_FOR_BUILD=$(CC_FOR_BUILD)\" \
    79             \"AS=$(AS_FOR_TARGET)\" \
    80             \"LD=$(LD_FOR_TARGET)\" \
    81             \"NM=$(NM_FOR_TARGET)\" \
    82             \"AR=$(AR_FOR_TARGET)\" \
    83             \"SIZE=$(SIZE_FOR_TARGET)\" \
    84             \"OBJCOPY=$(OBJCOPY_FOR_TARGET)\" \
    85             \"RTEMS_ROOT=$(RTEMS_ROOT)\" \
    86             \"RTEMS_HOST=$(RTEMS_HOST)\" \
    87             \"PROJECT_HOME=$(PROJECT_ROOT)/$$bsp\" \
    88             \"PROJECT_ROOT=$(PROJECT_ROOT)\" \
    89             \"RTEMS_USE_OWN_PDIR=$(RTEMS_USE_OWN_PDIR)\" \
    90             \"RTEMS_HAS_POSIX_API=$(RTEMS_HAS_POSIX_API)\" \
    91             \"RTEMS_HAS_KA9Q=$(RTEMS_HAS_KA9Q)\" \
    92             \"RTEMS_HAS_CPLUSPLUS=$(RTEMS_HAS_CPLUSPLUS)\" \
    93             \"RTEMS_USE_MACROS=$(RTEMS_USE_MACROS)\" \
    94             \"RTEMS_USE_GCC272=$(RTEMS_USE_GCC272)\" \
    95             \"RTEMS_LIBC_DIR=$(RTEMS_LIBC_DIR)\" \
    9653            $@" ; \
    9754            eval $$cmd || $(EXIT_CMD); \
     
    11067                tar xpBf - ; rm -rf make/CVS make/*/CVS ; \
    11168          cp c/make/Templates/Makefile.inc make/Templates/Makefile.inc ; \
     69          cp c/make/host.cfg make/host.cfg ; \
     70          cp c/make/target.cfg make/target.cfg ; \
    11271        fi
    113        
    114        
    115 
Note: See TracChangeset for help on using the changeset viewer.