Changeset 674c900 in rtems for c/Makefile.in


Ignore:
Timestamp:
Dec 10, 1997, 4:58:00 PM (23 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, 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
  • c/Makefile.in

    rf99d4f83 r674c900  
    1818mandir = @mandir@/man$(manext)
    1919program_prefix = @program_prefix@
    20 VPATH=@srcdir@
     20VPATH = @srcdir@
     21RTEMS_ROOT = @RTEMS_ROOT@
     22PROJECT_ROOT = @PROJECT_ROOT@
     23RTEMS_CUSTOM = $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
    2124
    2225include $(RTEMS_CUSTOM)
     
    5154
    5255# Make all/install must include 'env'
     56# if something is added to TARGET_VARIANTS, then account for it here
    5357all: env
    54 $(TARGET_VARIANTS): env
    55 $(TARGET_VARIANTS:%=%_install): env
    56 $(TARGET_VARIANTS:%=%_all): env
     58debug: env
     59profile: env
     60
     61install: all install_files
     62debug_install: env debug install_files
     63profile_install: env profile install_files
     64
     65debug_all: debug
     66profile_all: profile
    5767
    5868# top level clean/clobber will delete the install points
     
    6474.PHONY: dirs clean_wrapup clean_dirs clean_tools clean_modules env install
    6575
    66 #  XXX The link is temporary while switching to -specs options.
    6776dirs:
    6877        -test -d $(PROJECT_ROOT)/c/src/lib/libhwapi && \
    6978            (cd $(PROJECT_ROOT)/c/src/lib/libhwapi ; $(MAKE) mkdirs)
    70 #       -$(MKDIR) ${CREATE_DIRS:%=$(PROJECT_ROOT)/$(RTEMS_BSP)/%}
    71         @echo Making directories in build tree ...
    72         -$(foreach dir,$(CREATE_DIRS), \
    73             $(shell $(MKDIR) $(PROJECT_ROOT)/$(RTEMS_BSP)/$(dir)))
     79        -$(MKDIR) ${CREATE_DIRS:%=$(PROJECT_ROOT)/$(RTEMS_BSP)/%}
     80#       @echo Making directories in build tree ...
     81#       -$(foreach dir,$(CREATE_DIRS), \
     82#           $(shell $(MKDIR) $(PROJECT_ROOT)/$(RTEMS_BSP)/$(dir)))
    7483
    7584distclean: clobber
     
    8392# NOTE: The wildcard on the install should pick up everything except
    8493#       the tests directory.  This significantly minimizes the install size.
    85 install: all
     94
     95
     96install_files:
    8697         -$(MKDIR) $(prefix)/
    8798         -$(MKDIR) $(prefix)/rtems
Note: See TracChangeset for help on using the changeset viewer.