From ac556388135e5bf0578cb24bc958870ff3a0f00c Mon Sep 17 00:00:00 2001 From: Greg McGary Date: Wed, 26 Jul 2000 18:18:43 +0000 Subject: * Makeconfig (+link-bounded, link-libc-bounded, link-extra-libs-bounded): New variables. (built-program-cmd): Omit $(run-program-prefix) for static BP tests. * Makerules (do-tests-clean, common-mostlyclean): Remove BP test files. * Rules (tests-bp.out): New variable. (tests): Conditionally add BP tests. (binaries-bounded): Add variable and associated rule. * csu/Makefile [build-bounded] (extra-objs, install-lib): Move conditional stuff after place where condition is defined. --- Rules | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'Rules') diff --git a/Rules b/Rules index f3d8bdd746..9881848646 100644 --- a/Rules +++ b/Rules @@ -88,7 +88,10 @@ endif ifeq ($(cross-compiling),yes) tests: $(addprefix $(objpfx),$(tests) $(test-srcs)) else -tests: $(tests:%=$(objpfx)%.out) +ifeq ($(build-bounded),yes) +tests-bp.out = $(tests:%=$(objpfx)%-bp.out) +endif +tests: $(tests:%=$(objpfx)%.out) $(tests-bp.out) endif ifeq ($(build-programs),yes) @@ -115,6 +118,14 @@ $(addprefix $(objpfx),$(binaries-static)): %: %.o \ $(+link-static) endif +ifeq ($(build-bounded),yes) +binaries-bounded = $(addsuffix -bp,$(tests) $(test-srcs)) +$(addprefix $(objpfx),$(binaries-bounded)): %-bp: %.ob \ + $(sort $(filter $(common-objpfx)lib%,$(link-libc-bounded))) \ + $(addprefix $(csu-objpfx),start.ob) $(+preinit) $(+postinit) + $(+link-bounded) +endif + ifneq "$(strip $(tests) $(test-srcs))" "" # These are the implicit rules for making test outputs # from the test programs and whatever input files are present. -- cgit v1.2.3