1 $!========================================================================
3 $! Xpdf compile script for VMS.
5 $! Written by Patrick Moreau, Martin P.J. Zinser.
7 $! Copyright 1996-2003 Glyph & Cog, LLC
9 $!========================================================================
13 $ APPS = "XPDF,PDFTOPS,PDFTOTEXT,PDFINFO,PDFTOPBM,PDFIMAGES,PDFFONTS"
14 $ if f$search("COMMON.OLB").eqs."" then lib/create common.olb
16 $ COMMON_OBJS = "Annot.obj,Array.obj,BuiltinFont.obj," + -
17 "BuiltinFontTables.obj,Catalog.obj,CharCodeToUnicode.obj," + -
18 "CMap.obj,Decrypt.obj,Dict.obj,Error.obj," + -
19 "FontEncodingTables.obj,FontFile.obj," + -
20 "Function.obj,Gfx.obj,GfxFont.obj,GfxState.obj,"+ -
21 "GlobalParams.obj,JBIG2Stream.obj,Lexer.obj," + -
22 "Link.obj,NameToCharCode.obj,Object.obj,Outline.obj,"+ -
23 "OutputDev.obj,Page.obj,Parser.obj,PDFdoc.obj," + -
24 "PDFDocEncoding.obj,PSTokenizer.obj,Stream.obj," + -
25 "UnicodeMap.obj,XRef.obj"
26 $ COMMON_LIBS = "[]common.olb/lib,[-.goo]libgoo.olb/lib"
28 $ XPDF_OBJS = "xpdf.obj,FTFont.obj,PSOutputDev.obj," + -
29 "SFont.obj,T1Font.obj,TextOutputDev.obj,TTFont.obj," + -
30 "XOutputDev.obj,XPDFApp.obj,XPDFCore.obj,XPDFTree.obj," + -
31 "XPDFViewer.obj,XPixmapOutputDev.obj"
34 $ PDFTOPS_OBJS = "pdftops.obj,PSOutputDev.obj"
37 $ PDFTOTEXT_OBJS = "pdftotext.obj,TextOutputDev.obj"
40 $ PDFINFO_OBJS = "pdfinfo.obj"
43 $ PDFTOPBM_OBJS = "pdftopbm.obj,FTFont.obj,PBMOutputDev.obj,SFont.obj," + -
44 "T1Font.obj,TextOutputDev.obj,TTFont.obj,XOutputDev.obj"
47 $ PDFIMAGES_OBJS = "pdfimages.obj,ImageOutputDev.obj"
50 $ PDFFONTS_OBJS = "pdffonts.obj"
54 $ file = f$element(i, ",",COMMON_OBJS)
55 $ if file .eqs. "," then goto BUILD_APPS
57 $ name = f$parse(file,,,"NAME")
58 $ call make 'file "CXXCOMP ''name'.cc" -
60 $ call make common.olb "lib/replace common.olb ''name'.obj" -
62 $ goto COMPILE_CXX_LOOP
65 $ curr_app = f$element(j,",",APPS)
66 $ if curr_app .eqs. "," then exit
70 $ file = f$element(i,",",'curr_app'_OBJS)
71 $ if file .eqs. "," then goto LINK_APP
73 $ name = f$parse(file,,,"NAME")
74 $ call make 'file "CXXCOMP ''name'.cc" -
78 $ if 'curr_app'_LIBS .nes. ""
80 $ LIBS = 'curr_app'_LIBS + "," + COMMON_LIBS
84 $ OBJS = 'curr_app'_OBJS
85 $ write sys$output "Linking ''curr_app'..."
86 $ xpdf_link/exe='curr_app'.exe 'OBJS','libs',[-]xpdf.opt/opt
91 $MAKE: SUBROUTINE !SUBROUTINE TO CHECK DEPENDENCIES
93 $! P1 = What we are trying to make
94 $! P2 = Command to make it
95 $! P3 - P8 What it depends on
97 $ If F$Search(P1) .Eqs. "" Then Goto Makeit
98 $ Time = F$CvTime(F$File(P1,"RDT"))
102 $ If Argument .Eqs. "" Then Goto Exit
105 $ File = F$Element(El," ",Argument)
106 $ If File .Eqs. " " Then Goto Endl
110 $ AFile = F$Search(File)
111 $ If AFile .Eqs. "" .Or. AFile .Eqs. OFile Then Goto NextEl
112 $ If F$CvTime(F$File(AFile,"RDT")) .Ges. Time Then Goto Makeit
119 $ If arg .Le. 8 Then Goto Loop
124 $ write sys$output P2
128 $ If V Then Set Verify