git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added && and ||
[swftools.git]
/
lib
/
example
/
Makefile
diff --git
a/lib/example/Makefile
b/lib/example/Makefile
index
6b80deb
..
4f73cb0
100644
(file)
--- a/
lib/example/Makefile
+++ b/
lib/example/Makefile
@@
-1,7
+1,7
@@
# Makefile
# Makefile
-RFXSWF = ../librfxswf.a
-LDLIBS = -L/usr/X11R6/lib -ljpeg -lm -lz -lX11
+RFXSWF = ../librfxswf.a ../libbase.a
+LDLIBS = -L/usr/X11R6/lib -ljpeg -lm -lz -lX11 -lfreetype -lt1
#CFLAGS = -funsigned-char
CC = gcc
CXX = g++
#CFLAGS = -funsigned-char
CC = gcc
CXX = g++
@@
-11,70
+11,62
@@
DBFLAGS = -g2
$(CC) -c $(CFLAGS) $(DBFLAGS) -o $@ $<
%.o: %.cc
$(CXX) -c $(CFLAGS) $(DBFLAGS) -o $@ $<
$(CC) -c $(CFLAGS) $(DBFLAGS) -o $@ $<
%.o: %.cc
$(CXX) -c $(CFLAGS) $(DBFLAGS) -o $@ $<
+%.swf: %
+ ./$<
-all: sound jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text makefonts glyphshape edittext
-
-movies: sound jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text glyphshape edittext
- ./sound
- ./jpegtest
- ./box
- ./glyphshape
- ./shape1
- ./transtest
- ./zlibtest
- ./sprites
- ./buttontest
- ./text
- ./makefonts
- ./edittext
-
-sound: $(RFXSWF) sound.o
+all: sound jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text glyphshape edittext protect hexfont
+
+movies: sound.swf jpegtest.swf box.swf shape1.swf transtest.swf zlibtest.swf sprites.swf buttontest.swf dumpfont.swf text.swf glyphshape.swf edittext.swf
+
+sound: $(RFXSWF) sound.o $(RFXSWF)
$(CC) -o sound sound.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
$(CC) -o sound sound.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
-box: $(RFXSWF) box.o
+box: $(RFXSWF) box.o $(RFXSWF)
$(CC) -o box box.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
$(CC) -o box box.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
-buttontest: $(RFXSWF) buttontest.o
+protect: $(RFXSWF) protect.o $(RFXSWF)
+ $(CC) -o protect protect.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
+
+buttontest: $(RFXSWF) buttontest.o $(RFXSWF)
$(CC) -o buttontest buttontest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
$(CC) -o buttontest buttontest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
-dumpfont: $(RFXSWF) dumpfont.o
+dumpfont: $(RFXSWF) dumpfont.o $(RFXSWF)
$(CC) -o dumpfont dumpfont.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
$(CC) -o dumpfont dumpfont.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
-glyphshape: $(RFXSWF) glyphshape.o
+glyphshape: $(RFXSWF) glyphshape.o $(RFXSWF)
$(CC) -o glyphshape glyphshape.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
$(CC) -o glyphshape glyphshape.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
-jpegtest: $(RFXSWF) jpegtest.o
+jpegtest: $(RFXSWF) jpegtest.o $(RFXSWF)
$(CC) -o jpegtest jpegtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
$(CC) -o jpegtest jpegtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
-shape1: $(RFXSWF) shape1.o
+shape1: $(RFXSWF) shape1.o $(RFXSWF)
$(CC) -o shape1 shape1.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
$(CC) -o shape1 shape1.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
-sprites: $(RFXSWF) sprites.o
+sprites: $(RFXSWF) sprites.o $(RFXSWF)
$(CC) -o sprites sprites.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
$(CC) -o sprites sprites.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
-transtest: $(RFXSWF) transtest.o
+transtest: $(RFXSWF) transtest.o $(RFXSWF)
$(CC) -o transtest transtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
$(CC) -o transtest transtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
-text: $(RFXSWF) text.o
+hexfont: $(RFXSWF) hexfont.o $(RFXSWF)
+ $(CC) -o hexfont hexfont.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
+
+text.o: demofont.c
+text: $(RFXSWF) text.o $(RFXSWF)
$(CC) -o text text.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
$(CC) -o text text.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
-edittext: $(RFXSWF) edittext.o
+edittext: $(RFXSWF) edittext.o $(RFXSWF)
$(CC) -o edittext edittext.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
$(CC) -o edittext edittext.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
-zlibtest: $(RFXSWF) zlibtest.o
+zlibtest: $(RFXSWF) zlibtest.o $(RFXSWF)
$(CC) -o zlibtest zlibtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
$(CC) -o zlibtest zlibtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
-makefonts: $(RFXSWF) makefonts.o ../../pdf2swf/swfoutput.o
- $(CXX) -o makefonts makefonts.o ../../pdf2swf/swfoutput.o \
- ../../pdf2swf/spline.o ../../pdf2swf/encodings.o ../librfxswf.a -lt1 $(LDLIBS) \
- ../../pdf2swf/xpdf/libpdf.a $(DBFLAGS)
-
clean:
rm -f jpegtest.o box.o shape1.o transtest.o zlibtest.o \
clean:
rm -f jpegtest.o box.o shape1.o transtest.o zlibtest.o \
- sprites.o glyphshape.o \
- buttontest.o dumpfont.o text.o makefonts.o\
- jpegtest.swf box.swf shape1.swf trastest.swf zlibtest.swf \
+ sprites.o glyphshape.o edittext.o \
+ buttontest.o dumpfont.o text.o edittext.swf \
+ jpegtest.swf box.swf shape1.swf transtest.swf zlibtest.swf \
sprites.swf buttontest.swf text.swf glyphshape.swf sound.swf \
transtest.swf
sprites.swf buttontest.swf text.swf glyphshape.swf sound.swf \
transtest.swf
-
+.SUFFIXES: