1 | # $Id: setup.tools.mk,v 1.10 2002-08-20 03:58:08 bird Exp $
|
---|
2 |
|
---|
3 |
|
---|
4 | #
|
---|
5 | # Colorful output.
|
---|
6 | # Define BUILD_NOCOLORS if you don't like it.. :-)
|
---|
7 | #
|
---|
8 | !ifdef SLKRUNS
|
---|
9 | BUILD_NOCOLORS = 1
|
---|
10 | !endif
|
---|
11 | !ifndef BUILD_NOCOLORS
|
---|
12 | CLRTXT=[32;1m
|
---|
13 | CLRERR=[31;1m
|
---|
14 | CLRFIL=[33;1m
|
---|
15 | CLRMAK=[35;1m
|
---|
16 | CLRRST=[0m
|
---|
17 | !else
|
---|
18 | CLRTXT=
|
---|
19 | CLRERR=
|
---|
20 | CLRFIL=
|
---|
21 | CLRMAK=
|
---|
22 | CLRRST=
|
---|
23 | !endif
|
---|
24 |
|
---|
25 |
|
---|
26 | #
|
---|
27 | # Standard tools - may be overridden by compiler specific setupfiles.
|
---|
28 | #
|
---|
29 | TOOL_ECHO = @echo $(CLRTXT)
|
---|
30 | !ifdef MAKEVER
|
---|
31 | ECHO = %echo $(CLRTXT)
|
---|
32 | !else
|
---|
33 | ECHO = $(TOOL_ECHO)
|
---|
34 | !endif
|
---|
35 | TOOL_BLDLEVEL = $(PATH_TOOLS)\BldLevelInf.cmd
|
---|
36 | TOOL_BUILDENV = $(PATH_TOOLS)\BuildEnv.cmd
|
---|
37 | TOOL_CMP = $(PATH_TOOLS)\cmp.exe
|
---|
38 | TOOL_CMDQD = $(PATH_TOOLS)\cmdqd.exe
|
---|
39 | !if "$(BUILD_SHELL)" != "4OS2"
|
---|
40 | TOOL_COPY = copy
|
---|
41 | !else
|
---|
42 | TOOL_COPY = copy /Q
|
---|
43 | !endif
|
---|
44 | TOOL_CREATEPATH = $(PATH_TOOLS)\CreatePath.cmd
|
---|
45 | TOOL_DEP = $(PATH_TOOLS)\fastdep.exe
|
---|
46 | TOOL_DEP_FILES = *.c *.cpp *.asm *.h *.rc *.dlg *.orc *.inc *.ipf
|
---|
47 | TOOL_DEP_FLAGS = $(CC_INCLUDES) $(CXX_INCLUDES) $(AS_INCLUDES) $(ALL_INCLUDES) -i$(PATH_INCLUDES:;= -i)
|
---|
48 | TOOL_DLLRNAME = dllrname /q
|
---|
49 | TOOL_DODIRS = $(PATH_TOOLS)\dodirs.cmd
|
---|
50 | TOOL_DOMAKES = $(PATH_TOOLS)\domakes.cmd
|
---|
51 | TOOL_DOWITHDIRS = $(PATH_TOOLS)\dowithdirs.cmd
|
---|
52 | TOOL_EXISTS = $(PATH_TOOLS)\Exists.cmd
|
---|
53 | !if "$(BUILD_MULTIJOBS)" != ""
|
---|
54 | TOOL_JOB_SUB = $(TOOL_CMDQD) submit
|
---|
55 | TOOL_JOB_WAIT = $(TOOL_CMDQD) wait
|
---|
56 | TOOL_JOB_UP = $(TOOL_CMDQD) queryrunning
|
---|
57 | TOOL_JOB_INIT = $(TOOL_CMDQD) init
|
---|
58 | TOOL_JOB_WORKERS= 5
|
---|
59 | TOOL_JOB_SUB_MSG= (submitting job)
|
---|
60 | !endif
|
---|
61 | TOOL_MAKE = $(MAKE:.exe=).exe -nologo
|
---|
62 | TOOL_MAPSYM = $(PATH_TOOLS)\MapSym.cmd $(BUILD_ENV)
|
---|
63 | TOOL_RM = rm.exe -f
|
---|
64 | TOOL_RMDIR = rmdir
|
---|
65 | TOOL_TYPE = type
|
---|
66 |
|
---|
67 |
|
---|
68 | #
|
---|
69 | # Check for all mode and modify some tool flags
|
---|
70 | #
|
---|
71 | !ifdef MAKEFLAGS
|
---|
72 | !if "$(MAKEVER)" != "5.0"
|
---|
73 | !if "$(MAKEFLAGS:A=z)" != "$(MAKEFLAGS)"
|
---|
74 | TOOL_DEP_FLAGS = $(TOOL_DEP_FLAGS) -F+
|
---|
75 | !endif
|
---|
76 | !else
|
---|
77 | !if "$(MAKEFLAGS:a=z)" != "$(MAKEFLAGS)"
|
---|
78 | TOOL_DEP_FLAGS += -F+
|
---|
79 | !endif
|
---|
80 | !endif
|
---|
81 | !endif
|
---|
82 |
|
---|
83 |
|
---|
84 | #
|
---|
85 | # Default Extensions.
|
---|
86 | #
|
---|
87 | EXT_DLL = dll
|
---|
88 | EXT_EXE = exe
|
---|
89 | EXT_IFS = ifs
|
---|
90 | EXT_ILIB= lib
|
---|
91 | EXT_LIB = lib
|
---|
92 | EXT_MAP = map
|
---|
93 | EXT_OBJ = obj
|
---|
94 | EXT_RES = res
|
---|
95 | EXT_RES = res
|
---|
96 | EXT_SYM = sym
|
---|
97 | EXT_SYS = sys
|
---|
98 | EXT_VDD = sys
|
---|
99 |
|
---|
100 |
|
---|