-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
59 lines (48 loc) · 2.08 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
CC=cl
CFLAGS=/nologo /GX $(EXTRA_CFLAGS)
LINK=link
LFLAGS=/NOLOGO /NODEFAULTLIB:libci.lib
LIBS=user32.lib gdi32.lib advapi32.lib
all: kserv.dll kctrl.exe setup.exe afstest.exe afswalk.exe
release:
$(MAKE) EXTRA_CFLAGS=/DMYDLL_RELEASE_BUILD
setup: setup.exe
afstest: afstest.exe
afswalk: afswalk.exe
win32gui.obj: win32gui.cpp win32gui.h
config.obj: config.cpp config.h
kdb.obj: kdb.cpp kdb.h
imageutil.obj: imageutil.cpp imageutil.h
d3dfont.obj: d3dfont.cpp d3dfont.h dxutil.h
dxutil.obj: dxutil.cpp dxutil.h
regtools.obj: regtools.cpp regtools.h
log.obj: log.cpp log.h
crc32.obj: crc32.cpp crc32.h
afsreader.obj: afsreader.cpp afsreader.h
apihijack.obj: apihijack.cpp apihijack.h
kserv.lib: mydll.obj detect.obj kdb.obj log.obj config.obj imageutil.obj d3dfont.obj dxutil.obj crc32.obj afsreader.obj apihijack.obj
kserv.dll: kserv.lib mydll.res
$(LINK) $(LFLAGS) /out:kserv.dll /DLL mydll.obj detect.obj kdb.obj log.obj config.obj crc32.obj afsreader.obj imageutil.obj d3dfont.obj dxutil.obj apihijack.obj mydll.res $(LIBS) d3dx8.lib winmm.lib /LIBPATH:\DXSDK\lib
mydll.obj: mydll.cpp mydll.h shared.h config.h kdb.h
detect.obj: detect.cpp
mydll.res:
rc -r -fo mydll.res mydll.rc
kctrl.exe: kctrl.obj config.obj log.obj win32gui.obj
$(LINK) $(LFLAGS) /out:kctrl.exe kctrl.obj config.obj log.obj win32gui.obj $(LIBS)
kctrl.obj: kctrl.cpp kctrl.h config.h win32gui.h
setupgui.obj: setupgui.cpp setupgui.h
setup.exe: setup.obj detect.obj setupgui.obj imageutil.obj
$(LINK) $(LFLAGS) /out:setup.exe setup.obj detect.obj setupgui.obj imageutil.obj $(LIBS)
setup.obj: setup.cpp setup.h setupgui.h
afstest.obj: afstest.cpp afsreader.h
afstest.exe: afstest.obj afsreader.obj crc32.obj log.obj config.obj
$(LINK) $(LFLAGS) /out:afstest.exe afstest.obj afsreader.obj crc32.obj log.obj config.obj
afswalk.obj: afswalk.cpp afsreader.h
afswalk.exe: afswalk.obj afsreader.obj crc32.obj log.obj config.obj
$(LINK) $(LFLAGS) /out:afswalk.exe afswalk.obj afsreader.obj crc32.obj log.obj config.obj
.cpp.obj:
$(CC) $(CFLAGS) -c $<
clean:
del /Q /F *.exp *.lib *.obj *.res
clean-all:
del /Q /F *.exp *.lib *.obj *.res *.log *~