forked from prash-wghats/Dtrace-ETW
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.vc
82 lines (68 loc) · 1.56 KB
/
default.vc
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
!ifndef _MSVC_OPTS_
_MSVC_OPTS_ = 1
!ifndef RELEASE
DEBUG=1
!else
DEBUG=0
!endif
!if $(DEBUG) > 0
BASE=$(ROOT)\debug
!else
BASE=$(ROOT)\rel
!endif
!IF "$(PROCESSOR_ARCHITECTURE)" == "x86"
!IFNDEF PROCESSOR_ARCHITEW6432
ETW_FLAGS= /D__i386_etw__
!ELSE
ETW_FLAGS= /D__amd64_etw__
!ENDIF
ARCH=/D__i386__ /D__i386
INST_LIB_DIR=$(BASE)\i386\lib
CMN_LIB_DIR=$(ROOT)\libs\i386
INST_EXE_DIR=$(BASE)\i386\bin
ODIR = $(BASE)\i386\obj
CSCFLAGS = -platform:x86
!ELSE
INST_LIB_DIR=$(BASE)\amd64\lib
CMN_LIB_DIR=$(ROOT)\libs\amd64
INST_EXE_DIR=$(BASE)\amd64\bin
ARCH=/D__amd64__ /D__amd64 /D_LP64
ETW_FLAGS= /D__amd64_etw__
ODIR = $(BASE)\amd64\obj
!ENDIF
INST_EXE_DIR64=$(BASE)\amd64\bin
ARCH = $(ARCH) $(ETW_FLAGS)
CC = cl
AS = ml
LD = link
AR = lib
RC = rc
INCLUDES = -I$(ROOT)\inc\include -I$(ROOT)\inc -I$(ROOT)\libs\common -I$(ROOT)\drivers\etw -I.
!ifdef STATIC
!if $(DEBUG) > 0
MSVCRT = /MTd
!else
MSVCRT = /MT
!endif
INCLUDES = $(INCLUDES) /DSTATIC
!else
!if $(DEBUG) > 0
MSVCRT = /MDd
!else
MSVCRT = /MD
!endif
!endif
OPTS = -O3
DEFS = -D_CRT_SECURE_NO_DEPRECATE -DD_CRT_SECURE_NO_WARNINGS -Dwindows
ARFLAGS = -nologo
!if $(DEBUG) > 0
CFLAGS = $(INCLUDES) $(DEFS) $(ARCH) -nologo -W3 -Od -Zi $(MSVCRT)
ASFLAGS = -coff -Zi
LDFLAGS = -nologo -debug -incremental:no /fixed:no /LIBPATH:$(CMN_LIB_DIR) /LIBPATH:$(INST_LIB_DIR) /ignore:4099
!else
CFLAGS = $(INCLUDES) $(DEFS) $(ARCH) -nologo -W3 -O2 -Zi $(MSVCRT)
ASFLAGS = -coff -Zi
LDFLAGS = -nologo -incremental:no /fixed:no /LIBPATH:$(CMN_LIB_DIR) /LIBPATH:$(INST_LIB_DIR) /ignore:4099
!endif
CFLAGS = $(CFLAGS) /Fd$(ODIR)\
!endif