Adding -fpic and using a $(SHARED_FLAGS) variable for it, and -shared.
This commit is contained in:
parent
c22b47d75c
commit
c9a732462e
1 changed files with 26 additions and 25 deletions
|
|
@ -6,7 +6,7 @@
|
|||
# bill@newbreedsoftware.com
|
||||
# http://www.tuxpaint.org/
|
||||
|
||||
# July 2007 - December 6, 2007
|
||||
# July 2007 - December 29, 2007
|
||||
|
||||
|
||||
SO_TYPE=so
|
||||
|
|
@ -20,6 +20,7 @@ TP_MAGIC_CFLAGS=$(shell if [ -x tp-magic-config ] ; then tp-magic-config --cflag
|
|||
|
||||
SDL_CFLAGS=$(shell sdl-config --cflags)
|
||||
CFLAGS=-g -Wall $(SDL_CFLAGS) $(TP_MAGIC_CFLAGS)
|
||||
SHARED_FLAGS=-shared -fpic
|
||||
|
||||
SDL_LIBS=-L/usr/local/lib -lmingw32 -lSDL -lSDL_image -lSDL_ttf $(SDL_MIXER_LIB)
|
||||
SDL_MIXER_LIB=-lSDL_mixer
|
||||
|
|
@ -84,97 +85,97 @@ win32:
|
|||
|
||||
negative.$(SO_TYPE): src/negative.c
|
||||
@echo "Building Negative magic tool"
|
||||
@$(CC) $(CFLAGS) -shared -o $@ $< $(PLUGIN_LIBS)
|
||||
@$(CC) $(CFLAGS) $(SHARED_FLAGS) -o $@ $< $(PLUGIN_LIBS)
|
||||
|
||||
fade_darken.$(SO_TYPE): src/fade_darken.c
|
||||
@echo "Building Fade and Darken magic tools"
|
||||
@$(CC) $(CFLAGS) -shared -o $@ $< $(PLUGIN_LIBS)
|
||||
@$(CC) $(CFLAGS) $(SHARED_FLAGS) -o $@ $< $(PLUGIN_LIBS)
|
||||
|
||||
mirror_flip.$(SO_TYPE): src/mirror_flip.c
|
||||
@echo "Building Mirror and Flip magic tools"
|
||||
@$(CC) $(CFLAGS) -shared -o $@ $< $(PLUGIN_LIBS)
|
||||
@$(CC) $(CFLAGS) $(SHARED_FLAGS) -o $@ $< $(PLUGIN_LIBS)
|
||||
|
||||
rainbow.$(SO_TYPE): src/rainbow.c
|
||||
@echo "Building Rainbow magic tool"
|
||||
@$(CC) $(CFLAGS) -shared -o $@ $< $(PLUGIN_LIBS)
|
||||
@$(CC) $(CFLAGS) $(SHARED_FLAGS) -o $@ $< $(PLUGIN_LIBS)
|
||||
|
||||
blocks_chalk_drip.$(SO_TYPE): src/blocks_chalk_drip.c
|
||||
@echo "Building Blocks, Chalk and Drip magic tools"
|
||||
@$(CC) $(CFLAGS) -shared -o $@ $< $(PLUGIN_LIBS)
|
||||
@$(CC) $(CFLAGS) $(SHARED_FLAGS) -o $@ $< $(PLUGIN_LIBS)
|
||||
|
||||
fill.$(SO_TYPE): src/fill.c
|
||||
@echo "Building Fill magic tool"
|
||||
@$(CC) $(CFLAGS) -shared -o $@ $< $(PLUGIN_LIBS)
|
||||
@$(CC) $(CFLAGS) $(SHARED_FLAGS) -o $@ $< $(PLUGIN_LIBS)
|
||||
|
||||
blur.$(SO_TYPE): src/blur.c
|
||||
@echo "Building Blur magic tool"
|
||||
@$(CC) $(CFLAGS) -shared -o $@ $< $(PLUGIN_LIBS)
|
||||
@$(CC) $(CFLAGS) $(SHARED_FLAGS) -o $@ $< $(PLUGIN_LIBS)
|
||||
|
||||
grass.$(SO_TYPE): src/grass.c
|
||||
@echo "Building Grass magic tool"
|
||||
@$(CC) $(CFLAGS) -shared -o $@ $< $(PLUGIN_LIBS)
|
||||
@$(CC) $(CFLAGS) $(SHARED_FLAGS) -o $@ $< $(PLUGIN_LIBS)
|
||||
|
||||
tint.$(SO_TYPE): src/tint.c
|
||||
@echo "Building Tint magic tool"
|
||||
@$(CC) $(CFLAGS) -shared -o $@ $< $(PLUGIN_LIBS)
|
||||
@$(CC) $(CFLAGS) $(SHARED_FLAGS) -o $@ $< $(PLUGIN_LIBS)
|
||||
|
||||
smudge.$(SO_TYPE): src/smudge.c
|
||||
@echo "Building Smudge magic tool"
|
||||
@$(CC) $(CFLAGS) -shared -o $@ $< $(PLUGIN_LIBS)
|
||||
@$(CC) $(CFLAGS) $(SHARED_FLAGS) -o $@ $< $(PLUGIN_LIBS)
|
||||
|
||||
cartoon.$(SO_TYPE): src/cartoon.c
|
||||
@echo "Building Cartoon magic tool"
|
||||
@$(CC) $(CFLAGS) -shared -o $@ $< $(PLUGIN_LIBS)
|
||||
@$(CC) $(CFLAGS) $(SHARED_FLAGS) -o $@ $< $(PLUGIN_LIBS)
|
||||
|
||||
bricks.$(SO_TYPE): src/bricks.c
|
||||
@echo "Building Large Bricks and Small Bricks magic tools"
|
||||
@$(CC) $(CFLAGS) -shared -o $@ $< $(PLUGIN_LIBS)
|
||||
@$(CC) $(CFLAGS) $(SHARED_FLAGS) -o $@ $< $(PLUGIN_LIBS)
|
||||
|
||||
kalidescope.$(SO_TYPE): src/kalidescope.c
|
||||
@echo "Building Kaleidoscope magic tool"
|
||||
@$(CC) $(CFLAGS) -shared -o $@ $< $(PLUGIN_LIBS)
|
||||
@$(CC) $(CFLAGS) $(SHARED_FLAGS) -o $@ $< $(PLUGIN_LIBS)
|
||||
|
||||
glasstile.$(SO_TYPE): src/glasstile.c
|
||||
@echo "Building Glass Tile magic tool"
|
||||
@$(CC) $(CFLAGS) -shared -o $@ $< $(PLUGIN_LIBS)
|
||||
@$(CC) $(CFLAGS) $(SHARED_FLAGS) -o $@ $< $(PLUGIN_LIBS)
|
||||
|
||||
emboss.$(SO_TYPE): src/emboss.c
|
||||
@echo "Building Emboss magic tool"
|
||||
@$(CC) $(CFLAGS) -shared -o $@ $< $(PLUGIN_LIBS)
|
||||
@$(CC) $(CFLAGS) $(SHARED_FLAGS) -o $@ $< $(PLUGIN_LIBS)
|
||||
|
||||
metalpaint.$(SO_TYPE): src/metalpaint.c
|
||||
@echo "Building Metal Paint magic tool"
|
||||
@$(CC) $(CFLAGS) -shared -o $@ $< $(PLUGIN_LIBS)
|
||||
@$(CC) $(CFLAGS) $(SHARED_FLAGS) -o $@ $< $(PLUGIN_LIBS)
|
||||
|
||||
waves.$(SO_TYPE): src/waves.c
|
||||
@echo "Building Waves magic tool"
|
||||
@$(CC) $(CFLAGS) -shared -o $@ $< $(PLUGIN_LIBS)
|
||||
@$(CC) $(CFLAGS) $(SHARED_FLAGS) -o $@ $< $(PLUGIN_LIBS)
|
||||
|
||||
flower.$(SO_TYPE): src/flower.c
|
||||
@echo "Building Flower magic tool"
|
||||
@$(CC) $(CFLAGS) -shared -o $@ $< $(PLUGIN_LIBS)
|
||||
@$(CC) $(CFLAGS) $(SHARED_FLAGS) -o $@ $< $(PLUGIN_LIBS)
|
||||
|
||||
foam.$(SO_TYPE): src/foam.c
|
||||
@echo "Building Foam magic tool"
|
||||
@$(CC) $(CFLAGS) -shared -o $@ $< $(PLUGIN_LIBS)
|
||||
@$(CC) $(CFLAGS) $(SHARED_FLAGS) -o $@ $< $(PLUGIN_LIBS)
|
||||
|
||||
ripples.$(SO_TYPE): src/ripples.c
|
||||
@echo "Building Ripples magic tool"
|
||||
@$(CC) $(CFLAGS) -shared -o $@ $< $(PLUGIN_LIBS)
|
||||
@$(CC) $(CFLAGS) $(SHARED_FLAGS) -o $@ $< $(PLUGIN_LIBS)
|
||||
|
||||
light.$(SO_TYPE): src/light.c
|
||||
@echo "Building Light magic tool"
|
||||
@$(CC) $(CFLAGS) -shared -o $@ $< $(PLUGIN_LIBS)
|
||||
@$(CC) $(CFLAGS) $(SHARED_FLAGS) -o $@ $< $(PLUGIN_LIBS)
|
||||
|
||||
shift.$(SO_TYPE): src/shift.c
|
||||
@echo "Building Shift magic tool"
|
||||
@$(CC) $(CFLAGS) -shared -o $@ $< $(PLUGIN_LIBS)
|
||||
@$(CC) $(CFLAGS) $(SHARED_FLAGS) -o $@ $< $(PLUGIN_LIBS)
|
||||
|
||||
calligraphy.$(SO_TYPE): src/calligraphy.c
|
||||
@echo "Building Calligraphy magic tool"
|
||||
@$(CC) $(CFLAGS) -shared -o $@ $< $(PLUGIN_LIBS)
|
||||
@$(CC) $(CFLAGS) $(SHARED_FLAGS) -o $@ $< $(PLUGIN_LIBS)
|
||||
|
||||
distortion.$(SO_TYPE): src/distortion.c
|
||||
@echo "Building Distortion magic tool"
|
||||
@$(CC) $(CFLAGS) -shared -o $@ $< $(PLUGIN_LIBS)
|
||||
@$(CC) $(CFLAGS) $(SHARED_FLAGS) -o $@ $< $(PLUGIN_LIBS)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue