forked from Imagelibrary/rtems
The patch contains:
* build variants support
* Reworked make-exe custom/*.cfg for all targets (Should be
self-explanatory, may still be incomplete)
* Several fixes to custom/*.cfgs related to setting debug flags
* Fixes to some bsp_specs for BSPs which apparently have never been
build with debugging before ;)
* pc386.cfg fix attempts (cf. my mail from earlier today)
* Updated ampolish (No need to run it, the patch contains the result
from having applied it)
Known bugs/deficiencies related to this work:
* "make [clean|distclean]" support is still incomplete (e.g. "make
clean" does not delete all Depends-o-*)
* Completely untested for linux/posix and hppa.
* Build failures of i960 BSPs (make VARIANT=DEBUG) - I guess, they are
not related to this patch.
* Successfully tested for all sh, sparc, i386, ppc, m68k BSPs (make
VARIANT=DEBUG)
* make VARIANT=PROFILE not supported by all BSPs (I don't care :)
* make VARIANT=DEBUG failures below tests/ for some BSPs (e.g. gensh1),
because of the tests's binaries being too large to fit into the target
memory layout.
46 lines
848 B
Plaintext
46 lines
848 B
Plaintext
## $Id$
|
|
|
|
## NOTE: This is a temporary work-around to keep
|
|
## RTEMS's non automake standard make targets working.
|
|
## Once automake is fully integrated these make targets
|
|
## and this file will probably be removed
|
|
|
|
VARIANT = OPTIMIZE
|
|
|
|
VARIANT_OPTIMIZE_V = optimize
|
|
VARIANT_DEBUG_V = debug
|
|
VARIANT_PROFILE_V = profile
|
|
|
|
ARCH = o-$(VARIANT_$(VARIANT)_V)
|
|
AM_CFLAGS += $(CFLAGS_$(VARIANT)_V)
|
|
|
|
debug:
|
|
@echo
|
|
@echo "\"make debug\" is obsolete, instead use:"
|
|
@echo " make VARIANT=DEBUG"
|
|
@echo
|
|
|
|
.PHONY: debug
|
|
|
|
profile:
|
|
@echo
|
|
@echo "\"make profile\" is obsolete, instead use:"
|
|
@echo " make VARIANT=PROFILE"
|
|
@echo
|
|
|
|
.PHONY: profile
|
|
|
|
preinstall-am: $(PREINSTALL_FILES)
|
|
preinstall: preinstall-am
|
|
.PHONY: preinstall preinstall-am
|
|
|
|
depend-am:
|
|
depend: depend-am
|
|
.PHONY: depend depend-am
|
|
|
|
${ARCH}:
|
|
mkdir ${ARCH}
|
|
|
|
clean:
|
|
$(RM) -r o-optimize o-debug o-profile
|