2 CROSS=i586-mingw32msvc-
10 -include Makefile.local
18 DEFINES = _UNZIP_SUPPORT IN_VK
19 CFLAGS += -O2 -Wall -falign-functions=2 -ffast-math
20 CFLAGS += -I../.. -I. -I../../zlib/ -Idirectx/include/
21 LDFLAGS += -mwindows -L. -Ldirectx/lib/ -lgdi32 -lcomdlg32 -lddraw -ldsound -ldxguid
24 OBJS += main.o plat.o direct.o dsnd.o in_vk.o
27 OBJS += platform/common/emu.o platform/common/menu.o \
28 platform/common/config.o platform/common/fonts.o platform/common/readpng.o \
29 platform/common/input.o
31 OBJS += pico/carthw/svp/compiler.o
32 OBJS += pico/sound/mix.o
34 OBJS += zlib/gzio.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/trees.o \
35 zlib/deflate.o zlib/crc32.o zlib/adler32.o zlib/zutil.o zlib/compress.o zlib/uncompr.o
37 OBJS += unzip/unzip.o unzip/unzip_stream.o
39 CFLAGS += $(addprefix -D,$(DEFINES))
46 TARGET = PicoDrive.exe
49 include ../common/common.mak
50 include ../common/revision.mak
55 $(RM) $(OBJS) $(TARGET).map
60 $(CC) $(CFLAGS) $^ $(LDFLAGS) -lm -lpng -Wl,-Map=$(TARGET).map -o $@
63 # ----------- release -----------
64 ifneq ($(findstring rel,$(MAKECMDGOALS)),)
70 rel: $(TARGET) readme.txt carthw.cfg
71 zip -9 -j ../../PicoDrive_win32_$(VER).zip $^