-
Notifications
You must be signed in to change notification settings - Fork 43
/
NtTrace.mak
104 lines (85 loc) · 2.78 KB
/
NtTrace.mak
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
# $Id: NtTrace.mak 2455 2024-09-05 22:37:56Z roger $
#
# This makefile requires Microsoft Visual Studio 2010 and above,
#
# COPYRIGHT
# Copyright (C) 2007,2021 by Roger Orr <[email protected]>
#
# This software is distributed in the hope that it will be useful, but
# without WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# Permission is granted to anyone to make or distribute verbatim
# copies of this software provided that the copyright notice and
# this permission notice are preserved, and that the distributor
# grants the recipient permission for further distribution as permitted
# by this notice.
#
# Comments and suggestions are always welcome.
# Please report bugs to [email protected].
!if ("$(PLATFORM)" == "X64" || "$(PLATFORM)" == "x64")
BUILD=build64
!else
BUILD=build32
!endif
all : $(BUILD) NtTrace.exe
$(BUILD) :
mkdir $(BUILD)
clean :
@-del NtTrace.exe NtTrace.res *.pdb
@-rd /q /s $(BUILD)
CCFLAGS = /nologo /MD /W3 /WX /Zi /Iinclude /D_CRT_SECURE_NO_WARNINGS /I "$(VSINSTALLDIR)\DIA SDK\include"
LINKFLAGS = /link /opt:ref,icf
{src}.cpp{$(BUILD)}.obj::
cl $(CCFLAGS) /Fo$(BUILD)\ /c /EHsc /I. $<
.rc.res:
rc -r /Iinclude $(*B)
NtTrace.exe : $(BUILD)\$(*B).obj $(*B).res
cl $(CCFLAGS) /Fe$@ $** $(LINKFLAGS)
# Dependencies
$(BUILD)\NtTrace.obj : "include\DebugPriv.h" \
"include\AdjustPriv.h" \
"include\displayError.h" \
"include\displayError.inl" \
"include\MsvcExceptions.h" \
"include\NtDllStruct.h" \
"include\Options.h" \
"include\Options.inl" \
"include\ProcessHelper.h" \
"include\ProcessInfo.h" \
"include\SimpleTokenizer.h" \
include\DebugDriver.h \
include\EntryPoint.h \
include\ShowData.h \
include\TrapNtOpcodes.h
NtTrace.res: $(*B).rc "version.rc"
NtTrace.exe : $(BUILD)\DebugDriver.obj $(BUILD)\EntryPoint.obj $(BUILD)\Enumerations.obj $(BUILD)\ShowData.obj \
$(BUILD)\GetFileNameFromHandle.obj $(BUILD)\GetModuleBase.obj $(BUILD)\SymbolEngine.obj
$(BUILD)\DebugDriver.obj : \
"include\displayError.h" \
"include\displayError.inl" \
"include\DebugDriver.h"
$(BUILD)\EntryPoint.obj : \
"include\displayError.h" \
"include\displayError.inl" \
"include\DbgHelper.h" \
"include\DbgHelper.inl" \
"include\NtDllStruct.h" \
"include\ProcessInfo.h" \
"include\SymbolEngine.h" \
"include\TrapNtOpcodes.h" \
"include\ShowData.h"
$(BUILD)\ShowData.obj: \
"include\Enumerations.h" \
"include\NtDllStruct.h" \
"include\MsvcExceptions.h" \
"include\ProcessInfo.h" \
"include\ReadPartialMemory.h" \
"include\ShowData.h"
$(BUILD)\GetModuleBase.obj: include\GetModuleBase.h
$(BUILD)\SymbolEngine.obj: \
"include/SymbolEngine.h" \
"include/DbgHelper.h" \
"include/DbgHelper.inl" \
"include/StrFromWchar.h" \
"include/MSvcExceptions.h"