X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fwin32%2FMakefile;h=c090e7568bc174456b6ce08443f61b0806f2fe7f;hb=71f68165b6e50f58ddbc6e98a38c7dd4968ccca2;hp=5885235ae7f9d433eda99f613e49a9fa06083bef;hpb=823b9004c44f2123da164a80d2644b34e3d1997b;p=picodrive.git diff --git a/platform/win32/Makefile b/platform/win32/Makefile index 5885235..c090e75 100644 --- a/platform/win32/Makefile +++ b/platform/win32/Makefile @@ -15,7 +15,7 @@ STRIP = $(CROSS)strip DEFINES = _UNZIP_SUPPORT IN_VK CFLAGS += -O2 -Wall -falign-functions=2 -ffast-math CFLAGS += -I../.. -I. -I../../zlib/ -Idirectx/include/ -LDFLAGS += -L. -Ldirectx/lib/ -lgdi32 -lcomdlg32 -lddraw -ldsound -ldxguid +LDFLAGS += -mwindows -L. -Ldirectx/lib/ -lgdi32 -lcomdlg32 -lddraw -ldsound -ldxguid # frontend OBJS += main.o plat.o direct.o dsnd.o in_vk.o @@ -127,3 +127,13 @@ cpu/fame/famec.o : ../../cpu/fame/famec.c ../../cpu/fame/famec_opcodes.h @echo ">>>" $< $(CC) $(CFLAGS) -Wno-unused -c $< -o $@ +# ----------- release ----------- +ifneq ($(findstring rel,$(MAKECMDGOALS)),) +ifeq ($(VER),) +$(error need VER) +endif +endif + +rel: $(TARGET) readme.txt carthw.cfg + zip -9 -j ../../PicoDrive_win32_$(VER).zip $^ +