This repository has been archived by the owner on May 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 255
/
MAKEFILE.RUL
130 lines (89 loc) · 2.96 KB
/
MAKEFILE.RUL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# Use this file to automatically declare rules for a group of targets.
# Set the "SRC_DIR" variable to the appropriate directory, set OBJ_DIR
# to the appropriate target directory and then include this file.
# If the "LOCAL_BUILD" variable is defined and set to "1", this indicates that
# we're already cd'd to the target directory. This allows nmake to use a much
# simpler set of make rules.
#-Compile rules-------------------------------------------------------------
!IF "$(LOCAL_BUILD)" != "1"
!IF "$(LOCAL_BUILD)" != "0"
{$(SRC_DIR)}.cpp.obj:
@nmake /NOLOGO $(OBJ_DIR)\%|fF.obj
{$(SRC_DIR)}.cpp.exe:
@nmake /NOLOGO $(OBJ_DIR)\%|fF.exe
{$(SRC_DIR)}.asm.obj:
@nmake /NOLOGO $(OBJ_DIR)\%|fF.obj
{$(SRC_DIR)}.rc.res:
@nmake /NOLOGO $(OBJ_DIR)\%|fF.res
{$(SRC_DIR)}.cht.chk:
@nmake /NOLOGO $(OBJ_DIR)\%|fF.chk
{$(SRC_DIR)}.cht.thd:
@nmake /NOLOGO $(OBJ_DIR)\%|fF.chk
{$(SRC_DIR)}.cpp.i:
@nmake /NOLOGO $(OBJ_DIR)\%|fF.i
{$(SRC_DIR)}.cpp.cod:
@nmake /NOLOGO $(OBJ_DIR)\%|fF.cod
!ENDIF # LOCAL_BUILD != 0
{$(SRC_DIR)}.cpp{$(OBJ_DIR)}.obj:
!@echo Compiling $(TGT_NAME) Src... $<
$(CPP) $(CPPFLAGS) /Zi /Fd$(SOC_OBJ_DIR)\soc.pdb /Fp$(SOC_OBJ_DIR)\soc.pch /Fo$@ $(DEFS) $<
$(CHKERR)
{$(SRC_DIR)}.c{$(OBJ_DIR)}.obj:
!@echo Compiling $(TGT_NAME) Src... $<
$(CPP) $(CPPFLAGS) /Zi /Fd$(SOC_OBJ_DIR)\soc.pdb /Fp$(SOC_OBJ_DIR)\soc.pch /Fo$@ $(DEFS) $<
$(CHKERR)
{$(SRC_DIR)}.asm{$(OBJ_DIR)}.obj:
!@echo Compiling $(TGT_NAME) Assembly Src... $<
$(ASM) $(ASMFLAGS) /Fo$@ $(DEFS) $<
$(CHKERR)
{$(SRC_DIR)}.rc{$(OBJ_DIR)}.res:
!@echo Compiling $(TGT_NAME) Resource... $<
$(RC) $(DEFS) /Fo$@ $<
$(CHKERR)
{$(SRC_DIR)}.cht{$(OBJ_DIR)}.chk:
cl /E -I%|pF -I$(@D) $(DEFS) /Tp$< > $*.i
$(CHKERR)
$(CHOMP) $*.i $@
$(CHKERR)
{$(SRC_DIR)}.cht{$(OBJ_DIR)}.thd:
cl /E -I%|pF -I$(@D) $(DEFS) /Tp$< > $*.i
$(CHKERR)
$(CHOMP) $*.i $@
$(CHKERR)
{$(SRC_DIR)}.cpp{$(OBJ_DIR)}.i:
!@echo Compiling $(TGT_NAME) Src... $<
$(CPP) /E $(DEFS) $< > $@
$(CHKERR)
{$(SRC_DIR)}.cpp{$(OBJ_DIR)}.cod:
!@echo Compiling $(TGT_NAME) Src... $<
$(CPP) /FAcs $(CPPFLAGS) /Zi /Fd$(SOC_OBJ_DIR)\soc.pdb /Fp$(SOC_OBJ_DIR)\soc.pch $(DEFS) /Fa$@ $<
$(CHKERR)
!ELSE # !LOCAL_BUILD
{$(SRC_DIR)}.cpp.obj:
$(CPP) $(CPPFLAGS) /Zi /Fdsoc.pdb /Fpsoc.pch $(DEFS) $<
$(CHKERR)
{$(SRC_DIR)}.c.obj:
$(CPP) $(CPPFLAGS) /Zi /Fdsoc.pdb /Fpsoc.pch $(DEFS) $<
$(CHKERR)
{$(SRC_DIR)}.asm.obj:
$(ASM) $(ASMFLAGS) /Fo$@ $(DEFS) $<
{$(SRC_DIR)}.rc.res:
$(RC) $(DEFS) /Fo$@ $<
$(CHKERR)
{$(SRC_DIR)}.cht.chk:
cl /P -I%|pF -I. $(DEFS) /Tp$<
$(CHKERR)
$(CHOMP) $(@B).i $@
$(CHKERR)
{$(SRC_DIR)}.cht.thd:
cl /P -I%|pF -I. $(DEFS) /Tp$<
$(CHKERR)
$(CHOMP) $(@B).i $@
$(CHKERR)
{$(SRC_DIR)}.cpp.i:
$(CPP) /P $(DEFS) $<
$(CHKERR)
{$(SRC_DIR)}.cpp.cod:
$(CPP) /FAcs $(CPPFLAGS) /Zi /Fdsoc.pdb /Fpsoc.pch $(DEFS) /Fa$@ $<
$(CHKERR)
!ENDIF # LOCAL_BUILD