-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile
37 lines (30 loc) · 939 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
!IF "$(CFG)" == ""
CFG=Release32
!MESSAGE No configuration specified. Defaulting to Release32.
!ENDIF
!IF "$(USE_DETOURS)" == "1"
CFLAGS=/DUSE_DETOURS /IDetours-4.0.1\include
X86_LIBS=Detours-4.0.1\lib.X86\detours.lib
X64_LIBS=Detours-4.0.1\lib.X64\detours.lib
!ELSE
CFLAGS=/DUSE_DEVIARE /Ideviare
X86_LIBS=deviare\NktHookLib.lib
X64_LIBS=deviare\NktHookLib64.lib
!ENDIF
!IF "$(CFG)" == "Release32"
CFLAGS=/nologo /D_X86_ /EHsc /MT /Ox $(CFLAGS)
LIBS=advapi32.lib secur32.lib user32.lib ws2_32.lib $(X86_LIBS) legacy_stdio_definitions.lib
!ENDIF
!IF "$(CFG)" == "Release64"
CFLAGS=/nologo /D_AMD64_ /EHsc /MT /Ox $(CFLAGS)
LIBS=advapi32.lib secur32.lib user32.lib ws2_32.lib $(X64_LIBS)
!ENDIF
all: mstscdump.exe mstschook.dll
mstscdump.exe: mstscdump.cpp
cl $(CFLAGS) mstscdump.cpp $(LIBS)
mstschook.dll: mstschook.cpp
cl $(CFLAGS) /LD /Femstschook.dll mstschook.cpp $(LIBS)
clean:
del /q *.obj
del /q *.exe
del /q *.dll