minor game_def.cfg update
[picodrive.git] / platform / win32 / GenaDrive / Makefile.vc
CommitLineData
4b2b67eb 1# Makefile for MS Visual C\r
2\r
3R=..\..\..\ \r
4\r
8f7ed1b8 5CFLAGS=/nologo /W2 /O2 /D "_CRT_SECURE_NO_WARNINGS" -I. -I$(R) -I$(R)zlib\\r
4b2b67eb 6\r
7LDFLAGS=/nologo /machine:I386 /opt:nowin98 /out:PicoDrive.exe\r
8\r
9CFLAGS=$(CFLAGS) /DEMU_F68K\r
10\r
11CFLAGS=$(CFLAGS) /D_USE_CZ80\r
12\r
1b0ac8ad 13# debug\r
14#CFLAGS=$(CFLAGS) /Gi\r
15\r
16#LDFLAGS=$(LDFLAGS) /DEBUG\r
17\r
4b2b67eb 18# emu\r
1b0ac8ad 19OBJ = Emu.obj Input.obj Main.obj Direct.obj DSound.obj Loop.obj\r
4b2b67eb 20\r
1b0ac8ad 21# TexScreen.obj\r
4b2b67eb 22\r
23# common\r
24#OBJS += platform\common\emu.obj platform\common\menu.obj platform\common\fonts.obj \r
8f7ed1b8 25# platform\common\mp3_helix.obj\r
4609d0cd 26OBJ = $(OBJ) $(R)platform\common\readpng.obj $(R)platform\common\config.obj\r
4b2b67eb 27\r
28# Pico\r
29OBJ = $(OBJ) $(R)Pico\Area.obj $(R)Pico\Cart.obj $(R)Pico\Memory.obj $(R)Pico\Misc.obj $(R)Pico\Pico.obj $(R)Pico\Sek.obj \\r
30 $(R)Pico\VideoPort.obj $(R)Pico\Draw2.obj $(R)Pico\Draw.obj $(R)Pico\Patch.obj\r
31# Pico - CD\r
32OBJ = $(OBJ) $(R)Pico\cd\Pico.obj $(R)Pico\cd\Memory.obj $(R)Pico\cd\Sek.obj $(R)Pico\cd\LC89510.obj \\r
33 $(R)Pico\cd\cd_sys.obj $(R)Pico\cd\cd_file.obj $(R)Pico\cd\gfx_cd.obj \\r
67c81ee2 34 $(R)Pico\cd\Area.obj $(R)Pico\cd\Misc.obj $(R)Pico\cd\pcm.obj $(R)Pico\cd\buffering.obj \\r
35 $(R)Pico\cd\cue.obj\r
36# Pico - Pico\r
37OBJ = $(OBJ) $(R)Pico\Pico\Pico.obj $(R)Pico\Pico\Memory.obj $(R)Pico\Pico\xpcm.obj\r
4b2b67eb 38# Pico - sound\r
39OBJ = $(OBJ) $(R)Pico\sound\sound.obj $(R)Pico\sound\sn76496.obj $(R)Pico\sound\ym2612.obj $(R)Pico\sound\mix.obj\r
40# Pico - carthw\r
67c81ee2 41OBJ = $(OBJ) $(R)Pico\carthw\carthw.obj $(R)Pico\carthw\svp\svp.obj $(R)Pico\carthw\svp\Memory.obj \\r
42 $(R)Pico\carthw\svp\ssp16.obj $(R)Pico\carthw\svp\compiler.obj\r
4b2b67eb 43# zlib\r
44OBJ = $(OBJ) $(R)zlib\gzio.obj $(R)zlib\inffast.obj $(R)zlib\inflate.obj $(R)zlib\inftrees.obj $(R)zlib\trees.obj \\r
45 $(R)zlib\deflate.obj $(R)zlib\crc32.obj $(R)zlib\adler32.obj $(R)zlib\zutil.obj $(R)zlib\compress.obj $(R)zlib\uncompr.obj\r
46# unzip\r
47OBJ = $(OBJ) $(R)unzip\unzip.obj $(R)unzip\unzip_stream.obj\r
48# CPU cores\r
49OBJ = $(OBJ) $(R)cpu\fame\famec.obj\r
50# z80\r
51OBJ = $(OBJ) $(R)cpu\cz80\cz80.obj\r
52\r
53\r
54.c.obj:\r
55 cl $(CFLAGS) /c $< /Fo$@\r
56\r
57.cpp.obj:\r
58 cl $(CFLAGS) /c $< /Fo$@\r
59\r
60\r
61ALL : PicoDrive.exe\r
62\r
63PicoDrive.exe : $(OBJ)\r
8f7ed1b8 64 link.exe $(LDFLAGS) $(OBJ) libpng.lib gdi32.lib user32.lib advapi32.lib dsound.lib comdlg32.lib ddraw.lib dxguid.lib\r
1b0ac8ad 65\r
66# d3d8.lib d3dx8.lib \r
4b2b67eb 67\r
68clean:\r
69 -del $(OBJ) PicoDrive.exe\r
03a265e5 70\r
71\r
72test.exe : test.cpp\r
73 cl $(CFLAGS) test.cpp user32.lib d3dx8.lib d3d8.lib\r
74\r
75dxtut1.exe : dxtut1.cpp\r
76 cl $(CFLAGS) dxtut1.cpp user32.lib d3d8.lib\r
77\r
78# d3dx8.lib\r
79\r