/
makefile
56 lines (42 loc) · 930 Bytes
/
makefile
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
# To add new extensions to the inference rules uncomment and redefine this:
#.SUFFIXES:
#
#.SUFFIXES: \
# .C .obj .rc .res
# compiler, linker, resource compiler, resource binder MACRO
CC = icc.exe
CL = ilink.exe
RC = rc.exe
RB = rc.exe
# compiler and linker flags
# Debug version
!ifdef DEBUG
# CFLAGS = /I..\..\headers /I..\..\lvm_tk /Ss /Ti /Rn /G5 /C
CFLAGS = /Ss /Ti /Rn /G5 /C
LFLAGS = /DE /E:2 /PM:PM /PACKD /A:4 /OPTF /NOL /M /L
!else
# RELEASE version
CFLAGS = /Ss /O /Oc /Ol /Rn /G5 /C
LFLAGS = /E:2 /PM:PM /PACKD /A:4 /OPTF /NOL /M /L
!endif
# RCFLAGS = -r -i ..\..\headers
RCFLAGS = -r
RBFLAGS = -x2
.rc.res:
$(RC) $(RCFLAGS) $<
.C.obj:
$(CC) $(CFLAGS) $<
all: classmgr.exe
classmgr.exe: \
classmgr.obj \
classmgr.res
$(CL) @<<
$(LFLAGS)
/O:classmgr.exe
classmgr.obj
<<
$(RB) $(RBFLAGS) classmgr.res classmgr.exe
classmgr.res: \
classmgr.rc \
classmgr.h