git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
removed one wrong SWAP16
[swftools.git]
/
lib
/
example
/
Makefile
diff --git
a/lib/example/Makefile
b/lib/example/Makefile
index
085b352
..
a8c85eb
100644
(file)
--- a/
lib/example/Makefile
+++ b/
lib/example/Makefile
@@
-1,25
+1,36
@@
# Makefile
RFXSWF = ../rfxswf.o
# Makefile
RFXSWF = ../rfxswf.o
-LDLIBS = -ljpeg -lm -lz
+LDLIBS = -ljpeg -lm -lz
CFLAGS = -funsigned-char
CC = gcc
CFLAGS = -funsigned-char
CC = gcc
+CXX = g++
DBFLAGS = -g2
DBFLAGS = -g2
-.c.o:
+%.o: %.c
$(CC) -c $(CFLAGS) $(DBFLAGS) -o $@ $<
$(CC) -c $(CFLAGS) $(DBFLAGS) -o $@ $<
+%.o: %.cc
+ $(CXX) -c $(CFLAGS) $(DBFLAGS) -o $@ $<
-all: jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text
+all: jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text makefonts glyphshape avi2swf
-movies: jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text
+movies: jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text glyphshape
./jpegtest
./box
./jpegtest
./box
+ ./glyphshape
./shape1
./transtest
./zlibtest
./sprites
./buttontest
./text
./shape1
./transtest
./zlibtest
./sprites
./buttontest
./text
+ ./makefonts
+
+avi2swf.o: avi2swf.cc
+ $(CXX) -o avi2swf.o -c avi2swf.cc `avifile-config --cflags`
+
+avi2swf: $(RFXSWF) avi2swf.o
+ $(CXX) -o avi2swf avi2swf.o $(RFXSWF) $(LDLIBS) `avifile-config --libs`
box: $(RFXSWF) box.o
$(CC) -o box box.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
box: $(RFXSWF) box.o
$(CC) -o box box.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
@@
-30,6
+41,9
@@
buttontest: $(RFXSWF) buttontest.o
dumpfont: $(RFXSWF) dumpfont.o
$(CC) -o dumpfont dumpfont.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
dumpfont: $(RFXSWF) dumpfont.o
$(CC) -o dumpfont dumpfont.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
+glyphshape: $(RFXSWF) glyphshape.o
+ $(CC) -o glyphshape glyphshape.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
+
jpegtest: $(RFXSWF) jpegtest.o
$(CC) -o jpegtest jpegtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
jpegtest: $(RFXSWF) jpegtest.o
$(CC) -o jpegtest jpegtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
@@
-48,10
+62,16
@@
text: $(RFXSWF) text.o
zlibtest: $(RFXSWF) zlibtest.o
$(CC) -o zlibtest zlibtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
zlibtest: $(RFXSWF) zlibtest.o
$(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 ../rfxswf.o ../log.o -lt1 $(LDLIBS) \
+ ../../pdf2swf/xpdf/libpdf.a $(DBFLAGS)
+
clean:
clean:
- rm -f jpegtest.o box.o shape1.o trastest.o zlibtest.o sprites.o\
- buttontest.o dumpfont.o text.o\
+ 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 \
jpegtest.swf box.swf shape1.swf trastest.swf zlibtest.swf \
- sprites.swf buttontest.swf text.swf
+ sprites.swf buttontest.swf text.swf glyphshape.swf