Changeset 29e68b75 in rtems for make/leaf.cfg


Ignore:
Timestamp:
Jul 26, 1999, 9:26:44 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
38bfb0d
Parents:
08b5f55
Message:

Patch from Ralf Corsepius <corsepiu@…>:

This patch is an addition to "The big-patch"

CHANGES:

  • FIX: c/Makefile.am: bogus comment which changed the behavior of c/Makefile.am removed
  • FIX: make/custom/ts_i386ex.cfg did not set HAS_NETWORKING correctly (Me thinks it might have been me who added this bogus setting :-).
  • NEW: removing make targets get, protos, debug_install, profile_install
  • NEW: replacing clobber with distclean
  • NEW: Reimplement distclean and clean as reverse depth first make targets (adaptation to automake's behavior)
  • NEW: removing RCS_CLEAN from make distclean (tools/build/rcs_clean is still in - remove it?)
  • NEW: "$(RM) Makefile" added to make distclean (adaptation to automake's behavior)
  • NEW: "$(RM) config.cache config.log" to CLOBBER_ADDITIONS in [lib|exec|tests]/Makefile.in (adaptation to automake's behavior)
  • NEW: "$(CLEAN_PROTOS)" removed (Not used anywhere)
  • NEW: binpatch.c moved from i386 bsp tools to tools/build (AFAIS, binpatch is not specific to the pc386 BSP at all)
  • NEW: AC_EXEEXT added to all configure scripts which contain AC_PROG_CC (Cygwin support)
  • NEW/Experimental: An experimental implementation of temporary installation tree support in libbsp/i386/pc386/tools/Makefile.am, based on dependency tracking with make, instead of applying INSTALL_CHANGE.

REMARK:

  • This patch is small in size, but changes the behavior of "make clean|distclean|clobber" basically.
  • This patch does not alter building/compiling RTEMS, ie. there should be no need to rerun all "make all" building tests.

KNOWN BUGS:

  • make RTEMS_BSP="..." distclean in c/ runs "make distclean" in BSPs subdirectories passed through RTEMS_BSP and in "c/." only, but does not descend into other BSP subdirectories previously configured with different settings of make RTEMS_BSP="...". => Workaround: always use the same setting of RTEMS_BSP when working inside the build-tree.
  • "make [distclean|clean]" do not clean subdirectories, which have been configured at configuration time, but which are not used due to make-time configuration (e.g. macros/networking/rdgb subdirectories). This will problem will vanish by itself when migrating from make-time to configuration-time configuration

APPLYING THE PATCH

mv c/src/lib/libbsp/i386/pc386/tools/binpatch.c tools/build
patch -p1 < rtems-rc-19990709-2.diff
autogen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • make/leaf.cfg

    r08b5f55 r29e68b75  
    5656# Builtin targets for compilation variants
    5757#
    58 debug debug_install:
     58debug:
    5959        $(MAKE) -f $(MAKEFILE) MAKEFILE=$(MAKEFILE) "ARCH=${TARGET_ARCH}-debug" \
    6060      "CFLAGS_DEBUG=$(CFLAGS_DEBUG_V)" \
     
    6262      "LDFLAGS_DEBUG=$(LDFLAGS_DEBUG_V)" $(TARGET_VA)
    6363
    64 profile profile_install:
     64profile:
    6565        $(MAKE) -f $(MAKEFILE) \
    6666      MAKEFILE=$(MAKEFILE) "ARCH=${TARGET_ARCH}-profile" \
     
    8181
    8282#
    83 # TARGET_VA will convert $@ (expected to be 'debug' or
    84 #     'debug_install' or 'profile' etc.)
     83# TARGET_VA will convert $@ (expected to be 'debug' or 'profile' etc.)
    8584#   into "" or "install" as appropriate.
    8685#   Used for variant recursion.
     
    8988TARGET_debug_V = all
    9089TARGET_profile_V = all
    91 
    92 TARGET_debug_install_V = install
    93 TARGET_profile_install_V = install
    9490
    9591TARGET_VA = $(TARGET_$@_V)
     
    108104LIBSUFFIX_VA = $(LIB_VARIANT).a
    109105
    110 get: $(SRCS) $(GET_ADDITIONS)
    111 
    112106#
    113 # Builtin clean and clobber rules
     107# Builtin clean and distclean rules
    114108# Individual makefiles can add stuff via CLEAN_ADDITIONS and CLOBBER_ADDITIONS
    115109# If desperate to save something, they can override CLEAN_OS, CLEAN_CC, etc.
    116110#
    117111
    118 clean:
    119         $(RM) -r a.out core mon.out gmon.out $(CLEAN_OS) $(CLEAN_CC)
    120         $(RM) -r $(CLEAN_PROTO) $(CLEAN_DEPEND) a.out
    121         $(RM) -r $(VARIANTS) $(CLEAN_ADDITIONS) $(IMPORT_SOURCE)
     112clean-am: clean-generic
     113        -$(RM) -r $(CLEAN_OS) $(CLEAN_CC) $(CLEAN_DEPEND)
     114        -$(RM) -r $(VARIANTS)
     115#       -$(RM) -r $(IMPORT_SOURCE)
    122116
    123 clobber: clean
    124         -$(RCS_CLEAN)
    125         $(RM) .#*
    126         $(RM) -r $(CLOBBER_OS) $(CLOBBER_CC) $(CLOBBER_DEPEND)
    127         $(RM) -r $(CLOBBER_ADDITIONS) a.out
     117distclean-am: distclean-generic clean-am
     118        -$(RM) -r $(CLOBBER_OS) $(CLOBBER_CC) $(CLOBBER_DEPEND)
    128119
    129120preinstall-am:
    130121preinstall: preinstall-am
     122
     123distclean: distclean-am
     124        -$(RM) config.status
     125clean: clean-am
     126
     127.PHONY: distclean distclean-am
     128.PHONY: clean clean-am
Note: See TracChangeset for help on using the changeset viewer.