PLATFORM := ansi DELETE := $(RM) COPY := cp CAT := cat SEP := /
BUILD_CONFIG := $(TOP_DIR)/builds
BUILD_DIR = $(BUILD_CONFIG)/$(PLATFORM) CONFIG_RULES = $(BUILD_DIR)/$(CONFIG_FILE)
\' on Unix, and
\' on Dos and Windows!BACKSLASH := $(strip \ )
PLATFORMS := $(notdir $(subst /detect.mk,,$(wildcard $(BUILD_CONFIG)/*/detect.mk))) .PHONY: $(PLATFORMS) ansi
PLATFORM := $(firstword $(filter $(MAKECMDGOALS),$(PLATFORMS)))
ifeq ($(PLATFORM),) PLATFORM := ansi endif
ifeq ($(findstring ansi,$(MAKECMDGOALS)),)
# Now, include all detection rule files found in the builds/<system>'
# directories. Note that the calling order of the various
detect.mk'
# files isn't predictable.
#
include $(wildcard $(BUILD_CONFIG)/*/detect.mk)
endif
ifndef CONFIG_FILE CONFIG_FILE := ansi.mk setup: std_setup .PHONY: setup endif
.PHONY: std_setup dos_setup
std_setup: @echo "" @echo "$(PROJECT_TITLE) build system -- automatic system detection" @echo "" @echo "The following settings are used:" @echo "" @echo " platform $(PLATFORM)" @echo " compiler $(CC)" @echo " configuration directory $(BUILD_DIR)" @echo " configuration rules $(CONFIG_RULES)" @echo "" @echo "If this does not correspond to your system or settings please remove the file" @echo "`$(CONFIG_MK)' from this directory then read the INSTALL file for help." @echo "" @echo "Otherwise, simply type `$(MAKE)' again to build the library," @echo "or `$(MAKE) refdoc' to build the API reference (this needs python >= 2.6)." @echo "" @$(COPY) $(CONFIG_RULES) $(CONFIG_MK)
dos_setup: @type builds$(SEP)newline @echo $(PROJECT_TITLE) build system -- automatic system detection @type builds$(SEP)newline @echo The following settings are used: @type builds$(SEP)newline @echo platformÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ$(PLATFORM) @echo compilerÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ$(CC) @echo configuration directoryÿÿÿÿÿÿ$(subst /,$(SEP),$(BUILD_DIR)) @echo configuration rulesÿÿÿÿÿÿÿÿÿÿ$(subst /,$(SEP),$(CONFIG_RULES)) @type builds$(SEP)newline @echo If this does not correspond to your system or settings please remove the file @echo '$(CONFIG_MK)' from this directory then read the INSTALL file for help. @type builds$(SEP)newline @echo Otherwise, simply type 'make' again to build the library. @echo or 'make refdoc' to build the API reference (this needs python >= 2.6). @type builds$(SEP)newline @$(COPY) $(subst /,$(SEP),$(CONFIG_RULES) $(CONFIG_MK)) > nul