1 # title generic variables
2 # file make/Variables.make
4 # do not change this file for site-wide extensions; please use
5 # make/$(outdir)/Site.make;
7 # Any change in files in this directory (make/) would be distributed, if
12 # depth from group-dir
13 # not eh, normally used
14 DEPTH = $(depth)/$(package-depth)
16 # topdir := $(shell cd $(depth); pwd)
18 topdir := $(shell cd $(depth); pwd)
24 # distdir = $(depth)/$(outdir)/$(DIST_NAME)
25 # must be absolute for 'make dist' with installed stepmake
26 distdir = $(topdir)/$(outdir)/$(DIST_NAME)
27 DIST_NAME = $(package)-$(TOPLEVEL_VERSION)
29 distname = $(package)-$(TOPLEVEL_VERSION)
32 makeout = $(depth)/make/$(outdir)
33 docout = $(depth)/Documentation/$(outdir)
34 binout = $(depth)/bin/$(outdir)
36 doc-dir = $(depth)/Documentation
39 # sort-out which of these are still needed
41 $(package)_bindir = $(depth)/bin
42 step-bindir = $(stepmake)/bin
44 # abs-step-bindir = $(topdir)/$(stepmake)/bin
46 group-dir = $(shell cd $(DEPTH)/..; pwd)
47 release-dir = $(group-dir)/releases
48 patch-dir = $(group-dir)/patches
50 # i have in $HOME/.rpmrc
51 # topdir: /home/fred/usr/src/Redhat
53 rpm-sources = $(release-dir)
54 rpm-build = $(group-dir)/RedHat/BUILD
58 # need to be defined in local Makefiles:
63 ifneq ($(MY_PATCH_LEVEL),$(FOOBAR))
64 VERSION=$(MAJOR_VERSION).$(MINOR_VERSION).$(PATCH_LEVEL).$(MY_PATCH_LEVEL)
66 VERSION=$(MAJOR_VERSION).$(MINOR_VERSION).$(PATCH_LEVEL)
69 ifneq ($(TOPLEVEL_MY_PATCH_LEVEL),$(FOOBAR))
70 TOPLEVEL_VERSION=$(TOPLEVEL_MAJOR_VERSION).$(TOPLEVEL_MINOR_VERSION).$(TOPLEVEL_PATCH_LEVEL).$(TOPLEVEL_MY_PATCH_LEVEL)
72 TOPLEVEL_VERSION=$(TOPLEVEL_MAJOR_VERSION).$(TOPLEVEL_MINOR_VERSION).$(TOPLEVEL_PATCH_LEVEL)
79 ERROR_LOG = 2> /dev/null
80 SILENT_LOG = 2>&1 > /dev/null
81 date := $(shell date +%x) #duplicated?
83 # compile and link options:
87 INCLUDES = include $(outdir) $($(PACKAGE)_INCLUDES) $(MODULE_INCLUDES)
90 # LOADLIBES = $(MODULE_LIBES) $($(PACKAGE)_LIBES) $(EXTRA_LIBES) -lstdc++
99 LD_COMMAND = $(LD) $(LDFLAGS) -o $@
104 depfile = $(outdir)/$(subst .o,.dep,$(notdir $@))#
105 DODEP=rm -f $(depfile); DEPENDENCIES_OUTPUT="$(depfile) $(outdir)/$(notdir $@)"
109 # generic target names:
112 EXECUTABLE = $(outdir)/$(NAME)$(EXE)
117 EXECUTABLES = $(notdir $(EXECUTABLE))
122 #replace to do stripping of certain objects
125 DIST_FILES=$(EXTRA_DIST_FILES) GNUmakefile $(ALL_SOURCES)
126 DOCDIR=$(depth)/$(outdir)
129 STRIP=strip --strip-debug
131 STABLEOBS=$(addprefix $(outdir)/,$(stablecc:.cc=.o))
134 # substitute $(STRIP) in Site.make if you want stripping
136 LOOP=$(foreach i, $(SUBDIRS), $(MAKE) PACKAGE=$(PACKAGE) -C $(i) $@ &&) true
139 include $(stepdir)/files.make