pkg: get needed ldflags and copy woof.exe to staging (#53)

* pkg: get needed ldflags and copy woof.exe to staging

Repairs actual operation of the win32 packaging script

* Include the pkg subdirectory so it gets included in `make dist`
This commit is contained in:
Mike Swanson 2020-01-22 03:45:10 -08:00 committed by Fabian Greffrath
parent 452970d0b2
commit 775594c469
5 changed files with 6 additions and 6 deletions

View File

@ -9,5 +9,6 @@ SUBDIRS = \
configs \
docs \
examples \
pkg \
Source \
toolsrc

View File

@ -82,6 +82,7 @@ examples/Makefile
Source/Makefile
Source/resource.rc
toolsrc/Makefile
pkg/Makefile
pkg/config.make
])
AC_OUTPUT

View File

@ -1,8 +1,7 @@
WIN32_FILES= \
win32/GNUmakefile \
win32/cp-with-libs \
win32/README
win32/cp-with-libs
EXTRA_DIST=$(WIN32_FILES)

View File

@ -6,9 +6,8 @@
# Tools needed:
CC = @CC@
OBJDUMP = @OBJDUMP@
STRIP = @STRIP@
LDFLAGS = @LDFLAGS@
LDFLAGS = @SDL_LIBS@
# Package name and version number:

View File

@ -3,7 +3,7 @@ include ../config.make
TOPLEVEL=../..
ZIP=$(PACKAGE)$(PACKAGE_VERSION)-win32.zip
ZIP=$(PACKAGE)-$(PACKAGE_VERSION)-win32.zip
all: $(ZIP)
@ -12,7 +12,7 @@ $(ZIP): staging
staging:
mkdir $@
LC_ALL=C ./cp-with-libs --ldflags="$(LDFLAGS)" "$(TOPLEVEL)/Source/woof.exe"
LC_ALL=C ./cp-with-libs --ldflags="$(LDFLAGS)" "$(TOPLEVEL)/Source/woof.exe" $@
$(STRIP) $@/*.exe $@/*.dll