3 top_srcdir = @top_srcdir@
4 include ../Makefile.common
6 all: pdf2swf$(E) font2swf$(E)
8 fonts = n021003l.pfb n021023l.pfb n021004l.pfb n021024l.pfb n019003l.pfb n019023l.pfb n019004l.pfb n019024l.pfb n022003l.pfb n022023l.pfb n022004l.pfb n022024l.pfb s050000l.pfb d050000l.pfb n021003l.afm n021023l.afm n021004l.afm n021024l.afm n019003l.afm n019023l.afm n019004l.afm n019024l.afm n022003l.afm n022023l.afm n022004l.afm n022024l.afm s050000l.afm d050000l.afm
10 SWFOutputDev.o: swfoutput.h SWFOutputDev.cc
11 $(CC) -DSWFTOOLS_DATADIR=\"$(pkgdatadir)\" -I../lib -Ittf2pt1 -Ixpdf SWFOutputDev.cc -o $@
12 spline.o: spline.cc spline.h
13 $(CC) -DSWFTOOLS_DATADIR=\"$(pkgdatadir)\" -I../lib -Ittf2pt1 -Ixpdf spline.cc -o $@
14 encodings.o: encodings.cc
15 $(CC) -DSWFTOOLS_DATADIR=\"$(pkgdatadir)\" -I../lib -Ittf2pt1 -Ixpdf encodings.cc -o $@
16 swfoutput.o: swfoutput.cc swfoutput.h spline.h
17 $(CC) -DSWFTOOLS_DATADIR=\"$(pkgdatadir)\" -I../lib -Ittf2pt1 -Ixpdf swfoutput.cc -o $@
18 pdf2swf.o: pdf2swf.cc SWFOutputDev.h
19 $(CC) -DSWFTOOLS_DATADIR=\"$(pkgdatadir)\" -I../lib -Ittf2pt1 -Ixpdf pdf2swf.cc -o $@
20 font2swf.o: font2swf.cc swfoutput.h spline.h
21 $(CC) -DSWFTOOLS_DATADIR=\"$(pkgdatadir)\" -I../lib -Ittf2pt1 -Ixpdf font2swf.cc -o $@
23 pdf2swf$(E): pdf2swf.o SWFOutputDev.o swfoutput.o encodings.o spline.o xpdf/libpdf.a ttf2pt1/ttf2pt1.a ../lib/librfxswf.a
24 $(LL) pdf2swf.o SWFOutputDev.o swfoutput.o encodings.o spline.o -o pdf2swf$(E) ../lib/librfxswf.a ttf2pt1/ttf2pt1.a xpdf/libpdf.a $(LIBS)
27 font2swf$(E): font2swf.o swfoutput.o spline.o encodings.o xpdf/libpdf.a ../lib/librfxswf.a
28 $(LL) font2swf.o swfoutput.o spline.o encodings.o ../lib/librfxswf.a xpdf/libpdf.a -o font2swf$(E) $(LIBS)
38 $(mkinstalldirs) $(bindir)
39 $(mkinstalldirs) $(man1dir)
40 @file=pdf2swf;$(INSTALL_BIN);$(INSTALL_MAN1)
41 @file=font2swf;$(INSTALL_BIN);$(INSTALL_MAN1)
42 $(mkinstalldirs) $(pkgdatadir)/fonts
43 @echo installing fonts in $(pkgdatadir)/fonts;for file in $(fonts);do $(INSTALL_DATA) fonts/$$file $(pkgdatadir)/fonts/$$file;done
46 @file=pdf2swf;$(UNINSTALL_BIN);$(UNINSTALL_MAN1)
47 @file=font2swf;$(UNINSTALL_BIN);$(UNINSTALL_MAN1)
48 @for file in $(fonts);do $(UNINSTALL_DATA) $(pkgdatadir)/fonts/$$file;done
51 rm -f *.o *.lo *.a *.la pdf2swf font2swf gmon.out
52 @rm -f pdf2swf.exe font2swf.exe
53 @rm -f pdf2swf$(E) font2swf.exe$(E)
54 cd xpdf;$(MAKE) clean;cd ..
55 cd ttf2pt1;$(MAKE) clean;cd ..