X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fpdf%2FMakefile.in;h=bebd6309e0b2a7948c0067b6f6988e00f0580a93;hb=22511439a7bf3da5e557c146b1c80be3130913fc;hp=d4b37a801c0b62f0acbf11340cff72516a875e26;hpb=c10fb05b68fa1c717ef7d62d84bfb29008d41c33;p=swftools.git diff --git a/lib/pdf/Makefile.in b/lib/pdf/Makefile.in index d4b37a8..bebd630 100644 --- a/lib/pdf/Makefile.in +++ b/lib/pdf/Makefile.in @@ -4,7 +4,7 @@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ include ../../Makefile.common -all: ../libgfxpdf$(A) pdf2swf$(E) +all: ../libgfxpdf$(A) pdf2swf$(E) pdf2jpeg$(E) libgfxpdf: ../libgfxpdf$(A) @@ -53,9 +53,11 @@ pdf.$(O): pdf.cc GFXOutputDev.h InfoOutputDev.h CommonOutputDev.h BitmapOutputDe $(CC) -I ./ -I xpdf pdf.cc -o $@ XPDFOK = xpdf/Gfx.cc +ifeq ($(shell echo inject*xpdf.pl),inject-xpdf.pl) $(XPDFOK): Makefile.in inject-xpdf.pl xpdf-*tar.gz xpdf*patch @if test xpdf-changes.patch -nt $(XPDFOK);then perl inject-xpdf.pl xpdf-3.02.tar.gz;fi @if test '!' -d xpdf;then perl inject-xpdf.pl xpdf-3.02.tar.gz;fi +endif xpdf/UnicodeMap.$(O): xpdf/UnicodeMap.cc $(CC) -I ./ -I xpdf xpdf/UnicodeMap.cc -o $@ @@ -153,6 +155,7 @@ xpdf/%.$(O): xpdf/%.cc ../libgfxpdf$(A): $(XPDFOK) $(libgfxpdf_objects) $(xpdf_in_source) $(splash_in_source) + rm -f ../libgfxpdf$(A) $(AR) r ../libgfxpdf$(A) $(libgfxpdf_objects) $(xpdf_in_source) $(splash_in_source) $(RANLIB) ../libgfxpdf$(A) @@ -180,8 +183,12 @@ pdfinfo$(E): $(XPDFOK) xpdf/pdfinfo.$(O) xpdf/parseargs.$(O) $(xpdf_objects) gfx_objects = ../libgfxswf$(A) ../libgfx$(A) ../librfxswf$(A) ../libbase$(A) gfx_objects2 = $(gfx_objects) ../devices/lrf.$(O) ../libocr$(A) +pdf2jpeg$(E): $(XPDFOK) pdf2jpeg.c ../libbase$(A) xpdf/parseargs.$(O) $(xpdf_objects) $(splash_objects) + $(LL) $(CPPFLAGS) -DXPDFEXE -Ixpdf -I. -g pdf2jpeg.c xpdf/parseargs.$(O) ../libbase$(A) $(xpdf_objects) $(splash_objects) -o pdf2jpeg$(E) $(LIBS) pdf2swf$(E): $(XPDFOK) ../../src/pdf2swf.c $(libgfxpdf_objects) $(xpdf_in_source) $(splash_in_source) $(gfx_objects) $(LL) $(CPPFLAGS) -g ../../src/pdf2swf.c $(libgfxpdf_objects) $(xpdf_in_source) $(splash_in_source) $(gfx_objects) -o pdf2swf$(E) $(LIBS) +pdf2pdf$(E): $(XPDFOK) ../../src/pdf2pdf.c $(libgfxpdf_objects) $(xpdf_in_source) $(splash_in_source) $(gfx_objects) + $(LL) $(CPPFLAGS) -g ../../src/pdf2pdf.c $(libgfxpdf_objects) $(xpdf_in_source) $(splash_in_source) $(gfx_objects) -o pdf2pdf$(E) $(LIBS) gfx2gfx$(E): $(XPDFOK) ../../src/gfx2gfx.c $(libgfxpdf_objects) $(xpdf_in_source) $(splash_in_source) $(gfx_objects2) $(LL) $(CPPFLAGS) -g ../../src/gfx2gfx.c $(libgfxpdf_objects) $(xpdf_in_source) $(splash_in_source) $(gfx_objects2) -o gfx2gfx$(E) $(LIBS)