Add Makefile to build Win32 packages.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1736
This commit is contained in:
Simon Howard 2009-11-21 03:56:59 +00:00
parent 944a39e9d1
commit 2c6e7b2f10
4 changed files with 41 additions and 1 deletions

View file

@ -74,6 +74,7 @@ AC_SDL_MAIN_WORKAROUND([
])
AC_CHECK_TOOL(WINDRES, windres, )
AC_CHECK_TOOL(STRIP, strip, )
# Windows CE build?
@ -123,6 +124,7 @@ src/Makefile
pcsound/Makefile
pkg/Makefile
pkg/wince/GNUmakefile
pkg/win32/GNUmakefile
src/resource.rc
src/doom-screensaver.desktop
setup/setup-res.rc

View file

@ -1,3 +1,3 @@
DIST_SUBDIRS=wince
DIST_SUBDIRS=wince win32

34
pkg/win32/GNUmakefile.am Normal file
View file

@ -0,0 +1,34 @@
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
DOC_FILES=README \
COPYING \
ChangeLog \
NEWS \
BUGS \
CMDLINE \
TODO
noinst_DATA=@PACKAGE_TARNAME@-@PACKAGE_VERSION@-win32.zip
@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

4
pkg/win32/README Normal file
View file

@ -0,0 +1,4 @@
Makefile to build Windows packages. Requires zip and unix2dos cygwin
packages to be installed.