diff --git a/Makefile.am b/Makefile.am index da1d607d..1af090df 100644 --- a/Makefile.am +++ b/Makefile.am @@ -9,5 +9,6 @@ SUBDIRS = \ configs \ docs \ examples \ + pkg \ Source \ toolsrc diff --git a/configure.ac b/configure.ac index ccbb428f..fa5cc544 100644 --- a/configure.ac +++ b/configure.ac @@ -54,8 +54,6 @@ AC_CHECK_TYPES([ptrdiff_t]) # Checks for library functions. AC_FUNC_ALLOCA AC_FUNC_ERROR_AT_LINE -AC_FUNC_MALLOC -AC_FUNC_REALLOC AC_CHECK_FUNCS([atexit memmove memset mkdir pow putenv strcasecmp strchr strdup strerror strncasecmp strrchr strstr strtol]) AC_ARG_ENABLE([dogs], AS_HELP_STRING([--disable-dogs], [Disable support for helper dogs])) @@ -84,6 +82,7 @@ examples/Makefile Source/Makefile Source/resource.rc toolsrc/Makefile +pkg/Makefile pkg/config.make ]) AC_OUTPUT diff --git a/pkg/Makefile.am b/pkg/Makefile.am index aa543028..b2349a8d 100644 --- a/pkg/Makefile.am +++ b/pkg/Makefile.am @@ -1,8 +1,7 @@ WIN32_FILES= \ win32/GNUmakefile \ -win32/cp-with-libs \ -win32/README +win32/cp-with-libs EXTRA_DIST=$(WIN32_FILES) diff --git a/pkg/config.make.in b/pkg/config.make.in index 8ec0fda9..fe515307 100644 --- a/pkg/config.make.in +++ b/pkg/config.make.in @@ -6,9 +6,8 @@ # Tools needed: CC = @CC@ -OBJDUMP = @OBJDUMP@ STRIP = @STRIP@ -LDFLAGS = @LDFLAGS@ +LDFLAGS = @SDL_LIBS@ # Package name and version number: diff --git a/pkg/win32/GNUmakefile b/pkg/win32/GNUmakefile index ac5ba257..f8343fba 100644 --- a/pkg/win32/GNUmakefile +++ b/pkg/win32/GNUmakefile @@ -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