2000-09-20 08:43:26 -05:00
|
|
|
# This is the root DMAKE startup file.
|
|
|
|
#
|
|
|
|
# Definitions common to all environments are given at the root.
|
|
|
|
# Definitions parameterized at the root have their parameters specified
|
|
|
|
# in sub-makefiles which are included based on the values of the three
|
|
|
|
# make variables:
|
|
|
|
#
|
|
|
|
# OS - core operating system flavour
|
|
|
|
#
|
|
|
|
# See the file 'summary', found in this directory for a list of
|
|
|
|
# environments supported by this release.
|
|
|
|
|
|
|
|
# Disable warnings for macros given on the command line but redefined here.
|
|
|
|
__.silent !:= $(.SILENT) # Preserve user's .SILENT flag
|
|
|
|
.SILENT !:= yes
|
|
|
|
.NOTABS !:= yes
|
|
|
|
.ERROR :
|
2004-09-08 08:54:23 -05:00
|
|
|
@echo '---* $(MKFILENAME) *---'
|
2000-09-20 08:43:26 -05:00
|
|
|
|
|
|
|
# Define the directory separator string.
|
|
|
|
/ *= $(DIRSEPSTR)
|
|
|
|
|
|
|
|
.IMPORT .IGNORE : .EVERYTHING
|
|
|
|
|
|
|
|
.IF "$(TNR)" == ""
|
|
|
|
|
|
|
|
CALLMACROS:=$(MAKEMACROS)
|
|
|
|
.EXPORT : CALLMACROS
|
|
|
|
|
|
|
|
CALLTARGETS=$(MAKETARGETS)
|
|
|
|
.ENDIF # "$(TNR)" == ""
|
|
|
|
|
2006-10-30 01:55:08 -06:00
|
|
|
.INCLUDEDIRS : $(DMAKE_INC) $(SOLARVERSION)$/$(INPATH)$/inc$(UPDMINOREXT) $(SOLARENV)$/inc
|
2000-09-20 08:43:26 -05:00
|
|
|
|
|
|
|
# Grab key definitions from the environment
|
2010-01-12 11:49:59 -06:00
|
|
|
# .IMPORT .IGNORE : OS TMPDIR UPD INPATH OUTPATH GUI COM EX CLASSPATH PRODUCT GUIBASE SOLARENV SOLARVER GUIENV CPU CPUNAME CVER GVER COMPATH LIB INCLUDE TR SORT UNIQ ROOTDIR SED AWK TOUCH IENV ILIB PRODUCT_ENV COMEX UPD BUILD DEVROOT VCL SO3 ENVCFLAGS
|
2000-09-20 08:43:26 -05:00
|
|
|
|
2005-04-11 02:59:12 -05:00
|
|
|
.IF "$(OS)" == "" || "$(OS)" == "Windows_NT"
|
|
|
|
.ERROR : ; @echo Forced error: Environment variable OS has to be set for OOo build!
|
|
|
|
OS_variable_needed
|
|
|
|
.ENDIF
|
2000-09-20 08:43:26 -05:00
|
|
|
|
2005-04-11 02:59:12 -05:00
|
|
|
# Customize macro definitions based on seting of OS.
|
|
|
|
# This must come before the default macro definitions which follow.
|
2010-01-12 11:49:59 -06:00
|
|
|
.IF "$(OS)" == "OS2"
|
|
|
|
.INCLUDE: $(INCFILENAME:d)OS2/macros.mk
|
|
|
|
.ELIF "$(OS)" == "WNT"
|
|
|
|
.INCLUDE: $(INCFILENAME:d)wnt/macros.mk
|
|
|
|
.END
|
2000-09-20 08:43:26 -05:00
|
|
|
|
|
|
|
# ----------------- Default Control Macro definitions -----------------------
|
|
|
|
# Select appropriate defaults for basic macros
|
2010-01-12 16:44:34 -06:00
|
|
|
MAKE *= $(MAKECMD) $(MFLAGS)
|
|
|
|
TMPDIR *:= $/tmp
|
|
|
|
DIVFILE *= $(TMPFILE)
|
2000-09-20 08:43:26 -05:00
|
|
|
|
|
|
|
MAXLINELENGTH = 65530
|
|
|
|
|
|
|
|
# Recipe execution configuration
|
2010-01-12 16:44:34 -06:00
|
|
|
SHELL := $(OOO_SHELL)
|
|
|
|
SHELLFLAGS := -c
|
|
|
|
SHELLMETAS := !"\#$$%&'()*;<=>?[\]`{{|}}~
|
2010-01-12 11:49:59 -06:00
|
|
|
# the colon (":") utility is typically only available as a shell built-in,
|
|
|
|
# so it should be included in SHELLMETAS; however, this would result in very
|
|
|
|
# many false positives on Windows where ":" is used in drive letter notation
|
2010-01-12 16:44:34 -06:00
|
|
|
GROUPSHELL := $(SHELL)
|
|
|
|
GROUPFLAGS :=
|
|
|
|
GROUPSUFFIX :=
|
2000-09-20 08:43:26 -05:00
|
|
|
|
|
|
|
# Intermediate target removal configuration
|
2010-01-12 16:44:34 -06:00
|
|
|
RM *:= rm
|
|
|
|
RMFLAGS *= -f
|
|
|
|
RMTARGET *= $<
|
2000-09-20 08:43:26 -05:00
|
|
|
|
|
|
|
# Default recipe that is used to remove intermediate targets.
|
2007-01-25 05:58:49 -06:00
|
|
|
.REMOVE :; #echo dummy remove #$(RM) $(RMFLAGS) $(RMTARGET)
|
2002-04-26 04:31:19 -05:00
|
|
|
#.REMOVE :; echo $(RM) $(RMFLAGS) $(RMTARGET)
|
2000-09-20 08:43:26 -05:00
|
|
|
|
|
|
|
# Directory caching configuration.
|
2007-01-25 05:58:49 -06:00
|
|
|
.DIRCACHE *:= yes
|
|
|
|
.DIRCACHERESPCASE *:= yes
|
2000-09-20 08:43:26 -05:00
|
|
|
|
|
|
|
# Define the special NULL Prerequisite
|
|
|
|
NULLPRQ *:= __.NULLPRQ
|
|
|
|
|
2005-04-11 02:59:12 -05:00
|
|
|
# Primary suffixes in common use
|
|
|
|
E *:= # Executables
|
|
|
|
|
|
|
|
# Other Compilers, Tools and their flags
|
2010-01-12 11:49:59 -06:00
|
|
|
MV *:= mv # File rename command
|
2000-09-20 08:43:26 -05:00
|
|
|
|
|
|
|
|
|
|
|
# Finally, define the default construction strategy
|
|
|
|
.ROOT .PHONY .NOSTATE .SEQUENTIAL :- .INIT .TARGETS .DONE;
|
|
|
|
.INIT .DONE .PHONY: $(NULLPRQ);
|
|
|
|
|
|
|
|
# Define the NULL Prerequisite as having no recipe.
|
|
|
|
$(NULLPRQ) .PHONY :;
|
|
|
|
|
|
|
|
# Reset warnings back to previous setting.
|
|
|
|
.SILENT !:= $(__.silent)
|
|
|
|
|
|
|
|
# Check for a Local project file, gets parsed before user makefile.
|
|
|
|
.INCLUDE .IGNORE .NOINFER: "project.mk"
|
|
|
|
|
2001-08-07 01:52:42 -05:00
|
|
|
.MAKEFILES :- makefile.mk MAKEFILE.MK $(CONFIG_PROJECT)$/makefile.rc $(SOLARENV)$/inc$/found_no.mk
|
2000-09-20 08:43:26 -05:00
|
|
|
|
2007-01-03 04:32:51 -06:00
|
|
|
LANG=C
|
|
|
|
.EXPORT : LANG
|