TARGET_PASSTHRU can go now; generic targets now work correctly

This commit is contained in:
Albert Cahalan 2008-05-24 07:10:01 +00:00
parent bcc689cc2b
commit 900fdb1911
2 changed files with 31 additions and 32 deletions

View file

@ -295,8 +295,7 @@ beos:
ARCH_LINKS:="-lintl -lpng -lz -lbe -liconv" \
ARCH_HEADERS:="src/BeOS_print.h" \
ARCH_LIBS:="obj/BeOS_print.o" \
MAGIC_PREFIX:=./lib/tuxpaint/plugins \
TARGET_PASSTHRU:=beos
MAGIC_PREFIX:=./lib/tuxpaint/plugins
# "make win32" builds the program for Windows 2K/XP/Vista using MinGW/MSYS.
# The DATA_, DOC_ and LOCALE_ prefixes are absolute paths.
@ -325,7 +324,6 @@ win32:
SVG_CFLAGS:="-I/usr/local/include/librsvg-2/librsvg -I/usr/local/include/gtk-2.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/cairo" \
INCLUDE_PREFIX:=$(PREFIX)/include \
MAGIC_PREFIX:=$(PREFIX)/lib/tuxpaint/plugins \
TARGET_PASSTHRU:=win32 \
PAPER_LIB:=
# "make win9x" builds the program for Windows 9x/ME using MinGW/MSYS.
@ -357,7 +355,6 @@ win9x:
NOPANGOFLAG:=NO_SDLPANGO SDL_PANGO_LIB:= \
INCLUDE_PREFIX:=$(PREFIX)/include \
MAGIC_PREFIX:=$(PREFIX)/lib/tuxpaint/plugins \
TARGET_PASSTHRU:=win32 \
PAPER_LIB:=
# "make nokia770" builds the program for the Nokia 770.
@ -606,7 +603,6 @@ bdist-win32:
SVG_CFLAGS:="-I/usr/local/include/librsvg-2/librsvg -I/usr/local/include/gtk-2.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/cairo" \
INCLUDE_PREFIX:=plugins/include \
MAGIC_PREFIX:=plugins \
TARGET_PASSTHRU:=win32 \
PAPER_LIB:=
strip -s tuxpaint.exe
make bdist-private-win32 \
@ -620,8 +616,7 @@ bdist-win32:
IM_PREFIX:=./win32/bdist/im \
CONFDIR:=./win32/bdist \
INCLUDE_PREFIX:=./win32/bdist/plugins/include \
MAGIC_PREFIX:=./win32/bdist/plugins \
TARGET_PASSTHRU:=win32
MAGIC_PREFIX:=./win32/bdist/plugins
# "make bdist-clean" deletes the 'bdist' directory
.PHONY: bdist-clean
@ -644,13 +639,12 @@ clean:
@-rm -f src/tp_magic_api.h
@-rm -f tp-magic-config
@if [ -d trans ]; then rmdir trans; fi
@cd magic && make buildmagic-clean$(TARGET_PASSTHRU)
@cd magic && make buildmagic-clean
@echo
.PHONY: clean-win32
clean-win32:
@make clean\
TARGET_PASSTHRU:=win32
@make clean
# "make uninstall" should remove the various parts from their
# installation locations. BE SURE the *PREFIX variables at the top
@ -1106,7 +1100,7 @@ obj/resource.o: win32/resources.rc win32/resource.h
# Go into 'magic' subdirectory and buld magic plug-ins
.PHONY: magic-plugins
magic-plugins: src/tp_magic_api.h
@cd magic && make buildmagic-$(TARGET_PASSTHRU)
@cd magic && make buildmagic
src/tp_magic_api.h: src/tp_magic_api.h.in

View file

@ -8,8 +8,33 @@
# July 2007 - December 29, 2007
ifneq ($(SystemDrive),)
OS:=windows
else
SYSNAME:=$(shell uname -s)
ifeq ($(SYSNAME),Darwin)
OS:=osx
else ifeq ($(SYSNAME),BeOS)
OS:=beos
else ifeq ($(SYSNAME),Haiku)
OS:=beos
else
OS:=linux
endif
endif
windows_SO_TYPE:=dll
osx_SO_TYPE:=bundle
beos_SO_TYPE:=so
linux_SO_TYPE:=so
SO_TYPE:=$($(OS)_SO_TYPE)
windows_PLUGIN_LIBS:="$(SDL_LIBS) $(ARCH_LINKS)"
osx_PLUGIN_LIBS:=
beos_PLUGIN_LIBS:="$(SDL_LIBS) $(ARCH_LINKS) $(SDL_CFLAGS) $(TP_MAGIC_CFLAGS)"
linux_PLUGIN_LIBS:=
PLUGIN_LIBS:=$($(OS)_PLUGIN_LIBS)
SO_TYPE:=so
# Places to pick up Tux Paint Magic Plugin Dev header and SDL headers
# (can't assume plugin dev stuff has been installed yet, since we're
@ -45,23 +70,3 @@ buildmagic-clean:
@echo
@echo "Cleaning up the Magic plug-ins directory ($(PWD))"
@-rm -f *.$(SO_TYPE)
# beos versions of the targets
.PHONY: buildmagic-beos
buildmagic-beos:
make buildmagic-all \
SO_TYPE:=so \
PLUGIN_LIBS:="$(SDL_LIBS) $(ARCH_LINKS) $(SDL_CFLAGS) $(TP_MAGIC_CFLAGS)"
# win32 versions of the targets
.PHONY: buildmagic-cleanwin32
buildmagic-cleanwin32:
make buildmagic-clean \
SO_TYPE:=dll
.PHONY: buildmagic-win32
buildmagic-win32:
make buildmagic-all \
SO_TYPE:=dll \
PLUGIN_LIBS:="$(SDL_LIBS) $(ARCH_LINKS)" \