-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmake-test.bat
64 lines (58 loc) · 1.36 KB
/
make-test.bat
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
@echo off
REM make-test.bat - pokgame
REM This batch file takes one argument, the test .c file
REM to use. It will be linked against the pokgame code
REM base. The POKGAME_TEST flag will be turned on which
REM will disable the program's "main" function in favor
REM of the one supplied in the test module.
if '%1'=='' echo Specify a test .c file on command line
if '%1'=='' goto end
if not exist Release md Release
set POK="%CD%"
set SRC="%CD%"\src
cd Release
cl /Fepokgame-test.exe ^
/D POKGAME_WIN32 /D POKGAME_OPENGL /D POKGAME_TEST /D inline="" ^
^ /I %SRC% ^
%POK%\%1 ^
%SRC%\character-context.c ^
%SRC%\character.c ^
%SRC%\config-win32.c ^
%SRC%\default.c ^
%SRC%\effect.c ^
%SRC%\error.c ^
%SRC%\gamelock.c ^
%SRC%\graphics.c ^
%SRC%\image.c ^
%SRC%\io-proc.c ^
%SRC%\map-context.c ^
%SRC%\map.c ^
%SRC%\menu.c ^
%SRC%\net.c ^
%SRC%\netobj.c ^
%SRC%\parser.c ^
%SRC%\pok-util.c ^
%SRC%\pokgame.c ^
%SRC%\primatives.c ^
%SRC%\spriteman.c ^
%SRC%\standard1.c ^
%SRC%\tile.c ^
%SRC%\tileman.c ^
%SRC%\types.c ^
%SRC%\update-proc.c ^
%SRC%\user.c ^
Kernel32.lib ^
User32.lib ^
GDI32.lib ^
OpenGL32.lib ^
WS2_32.lib ^
dstructs.lib ^
png.lib ^
/link ^
/SUBSYSTEM:WINDOWS ^
/ENTRY:main ^
/NODEFAULTLIB
set SRC=
set POK=
cd ..
:end