From 3f07d39e0e2b5c9bdd3178cdfb02141469110871 Mon Sep 17 00:00:00 2001 From: John Popplewell Date: Tue, 19 Jul 2005 04:38:58 +0000 Subject: [PATCH] Now links with 'shlwapi.dll' so that it works on Windows 98. Changed DATA_PREFIX, DOC_PREFIX, LOCALE_PREFIX to be relative to the executable for the compilation phase. Changed DATA_PREFIX, DOC_PREFIX, LOCALE_PREFIX to be in the $(PREFIX)/bin directory for the installation phase. Very non-standard, but until these paths are configurable at runtime I can't think of a better solution. --- Makefile | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index fdf3dd6f4..1be0d0eb9 100644 --- a/Makefile +++ b/Makefile @@ -146,19 +146,20 @@ beos: ARCH_LIBS="obj/BeOS_print.o" # "make win32" builds the program for Windows using MinGW/MSYS +# The DATA_, DOC_ and LOCALE_ prefixes are relative to the executable. win32: make \ PREFIX=/usr/local \ BIN_PREFIX=$(PREFIX)/bin \ EXE_EXT=.exe \ - DATA_PREFIX=$(PREFIX)/share/tuxpaint \ - DOC_PREFIX=$(PREFIX)/share/doc/tuxpaint \ + DATA_PREFIX=data \ + DOC_PREFIX=docs \ MAN_PREFIX=$(PREFIX)/share/man \ ICON_PREFIX=. \ X11_ICON_PREFIX=. \ - LOCALE_PREFIX=$(PREFIX)/share/locale \ + LOCALE_PREFIX=locale \ CONFDIR=$(PREFIX)/etc/tuxpaint \ - ARCH_LINKS="-lintl-3 -lpng12 -lwinspool" \ + ARCH_LINKS="-lintl-3 -lpng12 -lwinspool -lshlwapi" \ ARCH_HEADERS="src/win32_print.h" \ ARCH_LIBS="obj/win32_print.o obj/resource.o" @@ -234,20 +235,21 @@ install-beos: ARCH_LIBS="obj/BeOS_print.o" # "make install-win32" installs Tux Paint, but using MinGW/MSYS settings +# Install the data, docs and locale files in a VERY non-standard place. install-win32: strip -s tuxpaint.exe make install-private-win32 \ PREFIX=/usr/local \ BIN_PREFIX=$(PREFIX)/bin \ EXE_EXT=.exe \ - DATA_PREFIX=$(PREFIX)/share/tuxpaint \ - DOC_PREFIX=$(PREFIX)/share/doc/tuxpaint \ + DATA_PREFIX=$(PREFIX)/bin/data \ + DOC_PREFIX=$(PREFIX)/bin/docs \ MAN_PREFIX=$(PREFIX)/share/man \ ICON_PREFIX=. \ X11_ICON_PREFIX=. \ - LOCALE_PREFIX=$(PREFIX)/share/locale \ + LOCALE_PREFIX=$(PREFIX)/bin/locale \ CONFDIR=$(PREFIX)/etc/tuxpaint \ - ARCH_LINKS="-lintl-3 -lpng12 -lwinspool" \ + ARCH_LINKS="-lintl-3 -lpng12 -lwinspool -lshlwapi" \ ARCH_HEADERS="src/win32_print.h" \ ARCH_LIBS="obj/win32_print.o obj/resource.o"