all Makefiles rewritten.
[swftools.git] / pdf2swf / Makefile.in
1 top_builddir = ..
2 srcdir = @srcdir@
3 top_srcdir = @top_srcdir@
4 include ../Makefile.common
5 @SET_MAKE@
6
7 all: pdf2swf
8
9 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
11 %.o: %.cc
12         $(CC) -DDATADIR=\"$(pkgdatadir)\" -I../lib -Ittf2pt1 -Ixpdf $< -o $@
13
14 pdf2swf.o: pdf2swf.cc SWFOutputDev.h
15 SWFOutputDev.o: swfoutput.h SWFOutputDev.cc
16 spline.o: spline.cc spline.h
17 swfoutput.o: swfoutput.cc swfoutput.h spline.h
18
19 pdf2swf: pdf2swf.o SWFOutputDev.o swfoutput.o encodings.o spline.o xpdf/pdflib.a ttf2pt1/ttf2pt1.a
20         $(LL) pdf2swf.o SWFOutputDev.o swfoutput.o encodings.o spline.o -o pdf2swf ../lib/librfxswf.a ttf2pt1/ttf2pt1.a xpdf/libpdf.a $(LIBS) 
21
22 xpdf/pdflib.a:
23         cd xpdf;$(MAKE);cd ..
24
25 ttf2pt1/ttf2pt1.a:
26         cd ttf2pt1;$(MAKE);cd ..
27
28 install:
29         $(mkinstalldirs) $(bindir)
30         $(mkinstalldirs) $(man1dir)
31         @file=pdf2swf;$(INSTALL_BIN);$(INSTALL_MAN1)
32         $(mkinstalldirs) $(pkgdatadir)/fonts
33         @for file in $(fonts);do $(INSTALL_DATA) fonts/$$file $(pkgdatadir)/fonts/$$file;done
34         
35 uninstall:
36         @file=pdf2swf;$(UNINSTALL_BIN);$(UNINSTALL_MAN1)
37
38 clean: 
39         rm -f *.o *.lo *.a *.la pdf2swf
40         cd xpdf;$(MAKE) clean;cd ..
41         cd ttf2pt1;$(MAKE) clean;cd ..
42