forked from nogginware/mstscdump
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (32 loc) · 1.05 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
!IF "$(CFG)" == ""
CFG=Release32
!MESSAGE No configuration specified. Defaulting to Release32.
!ENDIF
!IF "$(USE_DETOURS)" == "1"
CFLAGS=/DUSE_DETOURS
X86_LIBS=detours15\detours.lib
X64_LIBS=detours21\x64\detours.lib detours21\x64\detoured.lib
!ELSE
CFLAGS=/DUSE_DEVIARE
X86_LIBS=deviare\NktHookLib.lib
X64_LIBS=deviare\NktHookLib64.lib
!ENDIF
!IF "$(CFG)" == "Release32"
CFLAGS=/nologo /D_X86_ /DWIN32_LEAN_AND_MEAN /DSECURITY_WIN32 /EHsc /MT /Ox $(CFLAGS)
LIBS=advapi32.lib secur32.lib user32.lib ws2_32.lib $(X86_LIBS)
!ENDIF
!IF "$(CFG)" == "Release64"
CFLAGS=/nologo /D_AMD64_ /DWIN32_LEAN_AND_MEAN /DSECURITY_WIN32 /EHsc /MT /Ox $(CFLAGS)
LIBS=advapi32.lib secur32.lib user32.lib ws2_32.lib $(X64_LIBS)
!ENDIF
all: mstscdump.exe mstschook.dll test.exe
mstscdump.exe: mstscdump.cpp
cl $(CFLAGS) mstscdump.cpp $(LIBS)
mstschook.dll: mstschook.cpp nwhookapi.cpp
cl $(CFLAGS) /LD /Femstschook.dll mstschook.cpp nwhookapi.cpp $(LIBS)
test.exe: test.cpp nwhookapi.cpp
cl $(CFLAGS) test.cpp nwhookapi.cpp $(LIBS)
clean:
del /q *.obj
del /q *.exe
del /q *.dll