update dev300-m58
[ooovba.git] / solenv / inc / startup / startup.mk
blob96b6378db11f0fdd0302296caaf3785a94d21f06
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
6 # make variables:
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
15 .SILENT !:= yes
16 .NOTABS !:= yes
17 .ERROR :
18 @echo '---* $(MKFILENAME) *---'
20 # Define the directory separator string.
21 / *= $(DIRSEPSTR)
23 .IMPORT .IGNORE : .EVERYTHING
25 .IF "$(TNR)" == ""
27 CALLMACROS:=$(MAKEMACROS)
28 .EXPORT : CALLMACROS
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!
40 OS_variable_needed
41 .ENDIF
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)
50 TMPDIR *:= $/tmp
51 DIVFILE *= $(TMPFILE)
53 MAXLINELENGTH = 65530
55 # Recipe execution configuration
56 SHELL *:= $/bin$/sh
57 SHELLFLAGS *:= -fc
58 GROUPSHELL *:= $(SHELL)
59 GROUPFLAGS *:=
60 SHELLMETAS *:= |();&<>?*][$$:\\#`'"
61 GROUPSUFFIX *:=
63 # Intermediate target removal configuration
64 RM *:= $/bin$/rm
65 RMFLAGS *= -f
66 RMTARGET *= $<
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.
73 .DIRCACHE *:= yes
74 .DIRCACHERESPCASE *:= yes
76 # Define the special NULL Prerequisite
77 NULLPRQ *:= __.NULLPRQ
79 # Primary suffixes in common use
80 E *:= # Executables
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.
91 $(NULLPRQ) .PHONY :;
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
101 LANG=C
102 .EXPORT : LANG