summaryrefslogtreecommitdiff
path: root/pkg/win32/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/win32/GNUmakefile')
-rw-r--r--pkg/win32/GNUmakefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkg/win32/GNUmakefile b/pkg/win32/GNUmakefile
new file mode 100644
index 00000000..93c6abe1
--- /dev/null
+++ b/pkg/win32/GNUmakefile
@@ -0,0 +1,26 @@
+
+include ../config.make
+
+TOPLEVEL=../..
+
+EXE_FILES=$(TOPLEVEL)/src/$(PACKAGE_TARNAME).exe \
+ $(TOPLEVEL)/src/chocolate-server.exe \
+ $(TOPLEVEL)/setup/chocolate-setup.exe
+
+DLL_FILES=$(TOPLEVEL)/src/SDL.dll \
+ $(TOPLEVEL)/src/SDL_mixer.dll \
+ $(TOPLEVEL)/src/SDL_net.dll
+
+$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-win32.zip : staging
+ zip -j -r $@ staging/
+
+staging: $(EXE_FILES) $(DLL_FILES) $(patsubst %,../../%,$(DOC_FILES))
+ rm -rf staging
+ mkdir staging
+ cp $(EXE_FILES) $(DLL_FILES) staging/
+ $(STRIP) staging/*.exe
+ for f in $(DOC_FILES); do \
+ cp $(TOPLEVEL)/$$f staging/$$f.txt; \
+ unix2dos staging/$$f.txt; \
+ done
+