1 # This is the root DMAKE startup file.
3 # Definitions common to all environments are given at the root.
4 # Definitions parameterized at the root have their parameters specified
5 # in sub-makefiles which are included based on the values of the three
8 # OS - core operating system flavour
10 # See the file 'summary', found in this directory for a list of
11 # environments supported by this release.
13 # Disable warnings for macros given on the command line but redefined here.
14 __.silent
!:= $(.SILENT
) # Preserve user's .SILENT flag
18 @echo
'---* $(MKFILENAME) *---'
20 # Define the directory separator string.
23 .IMPORT .IGNORE
: .EVERYTHING
27 CALLMACROS
:=$(MAKEMACROS
)
30 CALLTARGETS
=$(MAKETARGETS
)
31 .ENDIF
# "$(TNR)" == ""
33 .INCLUDEDIRS
: $(DMAKE_INC
) $(SOLARVERSION
)$/$(INPATH
)$/inc
$(UPDMINOREXT
) $(SOLARENV
)$/inc
35 # Grab key definitions from the environment
36 # .IMPORT .IGNORE : OS TMPDIR SHELL 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
38 .IF
"$(OS)" == "" ||
"$(OS)" == "Windows_NT"
39 .ERROR
: ; @echo Forced error
: Environment variable OS has to be set for OOo build
!
43 # Customize macro definitions based on seting of OS.
44 # This must come before the default macro definitions which follow.
45 .INCLUDE .NOINFER
: $(INCFILENAME
:d
)$(OS
)$/macros.mk
47 # ----------------- Default Control Macro definitions -----------------------
48 # Select appropriate defaults for basic macros
49 MAKE
*= $(MAKECMD
) $(MFLAGS
)
55 # Recipe execution configuration
58 GROUPSHELL
*:= $(SHELL
)
60 SHELLMETAS
*:= |
();&<>?
*][$$:\\#`'"
63 # Intermediate target removal configuration
68 # Default recipe that is used to remove intermediate targets.
69 .REMOVE
:; #echo dummy remove #$(RM) $(RMFLAGS) $(RMTARGET)
70 #.REMOVE :; echo $(RM) $(RMFLAGS) $(RMTARGET)
72 # Directory caching configuration.
74 .DIRCACHERESPCASE
*:= yes
76 # Define the special NULL Prerequisite
77 NULLPRQ
*:= __.NULLPRQ
79 # Primary suffixes in common use
82 # Other Compilers, Tools and their flags
83 MV
*:= $/bin
$/mv
# File rename command
86 # Finally, define the default construction strategy
87 .ROOT .PHONY .NOSTATE .SEQUENTIAL
:- .INIT .TARGETS .DONE
;
88 .INIT .DONE .PHONY
: $(NULLPRQ
);
90 # Define the NULL Prerequisite as having no recipe.
93 # Reset warnings back to previous setting.
94 .SILENT
!:= $(__.silent
)
96 # Check for a Local project file, gets parsed before user makefile.
97 .INCLUDE .IGNORE .NOINFER
: "project.mk"
99 .MAKEFILES
:- makefile.mk MAKEFILE.MK
$(CONFIG_PROJECT
)$/makefile.rc
$(SOLARENV
)$/inc
$/found_no.mk