-
Notifications
You must be signed in to change notification settings - Fork 0
/
MAKEFILE
61 lines (50 loc) · 1.56 KB
/
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
57
58
59
60
61
!IF "$(PLATFORM)"=="ARM"
TargetPlatform=ARM
!ELSE
!IF "$(PLATFORM)"=="X64"
TargetPlatform=x64
!ELSE
TargetPlatform=x86
!ENDIF
!ENDIF
BinDir=bin.$(TargetPlatform)
WtraceBins=bin.$(TargetPlatform)\wtrace.exe
CppSources=..\src\Main.cpp \
..\src\debugger.cpp \
..\src\wow64.cpp \
..\src\Output.cpp \
..\src\Utils.cpp \
..\src\plugins\html.cpp \
..\src\plugins\interactive.cpp \
..\src\plugins\Tracer.cpp \
HeaderFiles=..\src\inc\
PluginHeaderFiles=..\src\plugins\
all: clean $(WtraceBins)
echo done!
$(WtraceBins): src\debugger.cpp src\wow64.cpp src\output.cpp src\plugins\html.cpp src\plugins\interactive.cpp src\main.cpp src\plugins\tracer.cpp
IF NOT EXIST $(BinDir) mkdir $(BinDir)
cd $(BinDir)
cl /Zi \
/EHsc \
$(CppSources) \
/Fewtrace \
/I"C:\Program Files (x86)\Windows Kits\8.1\Include\um" \
/I"$(HeaderFiles)" \
/I"$(PluginHeaderFiles)" \
/DEBUG \
/W4 \
/RTCs \
"ntdll.lib" \
"Dbghelp.lib"
cd ..\..
clean:
IF EXIST bin.$(TargetPlatform) del /q bin.$(TargetPlatform)\*
####################################################333
# PUBLISH A NEW VERSION TO LATEST
publish: latest\$(TargetPlatform) $(BinDir)\wtrace.exe $(BinDir)\wtrace.pdb $(BinDir)\vc120.pdb
copy $(BinDir)\*.exe latest\$(TargetPlatform)
copy $(BinDir)\*.pdb latest\$(TargetPlatform)
echo Built by : > latest\$(TargetPlatform)\readme.txt
whoami >> latest\$(TargetPlatform)\readme.txt
time /t >> latest\$(TargetPlatform)\readme.txt
date /t >> latest\$(TargetPlatform)\readme.txt