3 include $(depth)/make/toplevel-version.make
5 # Don't try to outsmart us, you puny computer!
7 MAKE:=$(MAKE) --no-builtin-rules
11 # Use alternate configurations alongside eachother:
13 # ./configure --enable-configsuffix=debug
16 # uses config-debug.make and config-debug.h; output goes to out-debug.
22 # Use same configuration, but different output directory:
26 # uses config.make and config.h; output goes to out-WWW.
31 outbase=out$(CONFIGSUFFIX)
35 configuration=$(config)
38 configuration=$(depth)/config$(CONFIGSUFFIX).make
41 # configuration=$(depth)/$(builddir)/config$(CONFIGSUFFIX).make
43 configuration=$(depth)/../$(builddir)/stepmake/config$(CONFIGSUFFIX).make
47 include $(configuration)
52 outroot=$(depth)/$(builddir)/$(patsubst $(shell cd $(depth); pwd)%,%,$(shell cd .; pwd))
55 outdir=$(outroot)/$(outbase)
56 config_h=$(depth)/$(builddir)/config$(CONFIGSUFFIX).h
59 # stepdir = $(stepmake)/stepmake
60 # for stepmake package
61 stepdir = $(depth)/stepmake
63 STEPMAKE_TEMPLATES := generic $(STEPMAKE_TEMPLATES)
64 LOCALSTEPMAKE_TEMPLATES:= generic $(LOCALSTEPMAKE_TEMPLATES)
69 -include $(addprefix $(depth)/make/,$(addsuffix -inclusions.make, $(LOCALSTEPMAKE_TEMPLATES)))
71 -include $(addprefix $(stepdir)/,$(addsuffix -inclusions.make, $(STEPMAKE_TEMPLATES)))
74 include $(addprefix $(stepdir)/,$(addsuffix -vars.make, $(STEPMAKE_TEMPLATES)))
76 # ugh. need to do this because of PATH :=$(topdir)/..:$(PATH)
77 include $(addprefix $(depth)/make/,$(addsuffix -vars.make, $(LOCALSTEPMAKE_TEMPLATES)))
80 include $(addprefix $(depth)/make/,$(addsuffix -rules.make, $(LOCALSTEPMAKE_TEMPLATES)))
81 include $(addprefix $(stepdir)/,$(addsuffix -rules.make, $(STEPMAKE_TEMPLATES)))
82 include $(addprefix $(depth)/make/,$(addsuffix -targets.make, $(LOCALSTEPMAKE_TEMPLATES)))
83 include $(addprefix $(stepdir)/,$(addsuffix -targets.make, $(STEPMAKE_TEMPLATES)))