use := operator for Makefile clarity and performance

This commit is contained in:
Albert Cahalan 2008-04-26 22:47:30 +00:00
parent 556f695bbe
commit 5244e175e8
8 changed files with 21 additions and 21 deletions

View file

@ -10,7 +10,7 @@
# Sept. 4, 2005 - March 8, 2006 # Sept. 4, 2005 - March 8, 2006
# $Id$ # $Id$
LINKS=links -dump -no-numbering -no-references LINKS:=links -dump -no-numbering -no-references
all: README.txt OPTIONS.txt FAQ.txt EXTENDING.txt ADVANCED-STAMPS-HOWTO.txt all: README.txt OPTIONS.txt FAQ.txt EXTENDING.txt ADVANCED-STAMPS-HOWTO.txt

View file

@ -9,7 +9,7 @@
# #
# Sept. 4, 2005 - October 24, 2005 # Sept. 4, 2005 - October 24, 2005
LINKS=links -dump -no-numbering -no-references LINKS:=links -dump -no-numbering -no-references
all: README1.txt README2.txt OPTIONS.txt FAQ.txt PNG.txt all: README1.txt README2.txt OPTIONS.txt FAQ.txt PNG.txt

View file

@ -10,7 +10,7 @@
# Sept. 4, 2005 - March 8, 2006 # Sept. 4, 2005 - March 8, 2006
# $Id$ # $Id$
LINKS=links -dump -no-numbering -no-references LINKS:=links -dump -no-numbering -no-references
all: README.txt OPTIONS.txt EXTENDING.txt FAQ.txt all: README.txt OPTIONS.txt EXTENDING.txt FAQ.txt
# ADVANCED-STAMPS-HOWTO.txt # ADVANCED-STAMPS-HOWTO.txt

View file

@ -9,7 +9,7 @@
# #
# $Id$ # $Id$
LINKS=links -dump -no-numbering -no-references LINKS:=links -dump -no-numbering -no-references
all: README.txt FAQ.txt all: README.txt FAQ.txt
# OPTIONS.txt # OPTIONS.txt

View file

@ -9,7 +9,7 @@
# #
# $Id$ # $Id$
LINKS=links -dump -no-numbering -no-references LINKS:=links -dump -no-numbering -no-references
all: README.txt \ all: README.txt \
OPTIONS.txt OPTIONS.txt

View file

@ -9,22 +9,22 @@
# July 2007 - December 29, 2007 # July 2007 - December 29, 2007
SO_TYPE=so SO_TYPE:=so
# Places to pick up Tux Paint Magic Plugin Dev header and SDL headers # 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 # (can't assume plugin dev stuff has been installed yet, since we're
# part of Tux Paint base, so "install-plugin-dev" probably hasn't # part of Tux Paint base, so "install-plugin-dev" probably hasn't
# been run yet; hence "-I../src/" to find 'tp_magic_api.h') # been run yet; hence "-I../src/" to find 'tp_magic_api.h')
TP_MAGIC_CFLAGS=$(shell if [ -x tp-magic-config ] ; then tp-magic-config --cflags ; else echo -I../src/ ; fi) TP_MAGIC_CFLAGS:=$(shell if [ -x tp-magic-config ] ; then tp-magic-config --cflags ; else echo -I../src/ ; fi)
SDL_CFLAGS=$(shell sdl-config --cflags) SDL_CFLAGS:=$(shell sdl-config --cflags)
CFLAGS=-g -Wall $(SDL_CFLAGS) $(TP_MAGIC_CFLAGS) CFLAGS:=-g -Wall $(SDL_CFLAGS) $(TP_MAGIC_CFLAGS)
SHARED_FLAGS=-shared -fpic SHARED_FLAGS:=-shared -fpic
SDL_LIBS=-L/usr/local/lib -lmingw32 -lSDL -lSDL_image -lSDL_ttf $(SDL_MIXER_LIB) SDL_MIXER_LIB:=-lSDL_mixer
SDL_MIXER_LIB=-lSDL_mixer ARCH_LINKS:=-lintl -lpng12
ARCH_LINKS=-lintl -lpng12 SDL_LIBS:=-L/usr/local/lib -lmingw32 -lSDL -lSDL_image -lSDL_ttf $(SDL_MIXER_LIB)
all: negative.$(SO_TYPE) \ all: negative.$(SO_TYPE) \
fade_darken.$(SO_TYPE) \ fade_darken.$(SO_TYPE) \
@ -65,20 +65,20 @@ clean:
beos: beos:
make \ make \
SO_TYPE=so \ SO_TYPE:=so \
PLUGIN_LIBS="$(SDL_LIBS) $(ARCH_LINKS) $(SDL_CFLAGS) $(TP_MAGIC_CFLAGS)" PLUGIN_LIBS:="$(SDL_LIBS) $(ARCH_LINKS) $(SDL_CFLAGS) $(TP_MAGIC_CFLAGS)"
# win32 versions of the targets # win32 versions of the targets
cleanwin32: cleanwin32:
make clean \ make clean \
SO_TYPE=dll SO_TYPE:=dll
win32: win32:
make \ make \
SO_TYPE=dll \ SO_TYPE:=dll \
PLUGIN_LIBS="$(SDL_LIBS) $(ARCH_LINKS)" \ PLUGIN_LIBS:="$(SDL_LIBS) $(ARCH_LINKS)" \
# Shared objects: # Shared objects:
# --------------- # ---------------

View file

@ -10,7 +10,7 @@
# July 6, 2007 - July 6, 2007 # July 6, 2007 - July 6, 2007
# $Id$ # $Id$
LINKS=links -dump -no-numbering -no-references LINKS:=links -dump -no-numbering -no-references
all: README.txt all: README.txt

View file

@ -10,9 +10,9 @@
# August 2, 2007 - August 9, 2007 # August 2, 2007 - August 9, 2007
# $Id$ # $Id$
LINKS=links -dump -no-numbering -no-references LINKS:=links -dump -no-numbering -no-references
TXT_FILES= \ TXT_FILES:= \
blocks.txt \ blocks.txt \
blur.txt \ blur.txt \
bricks.txt \ bricks.txt \