1 $!========================================================================
3 $! Xpdf compile script for VMS.
5 $! Written by Patrick Moreau, Martin P.J. Zinser.
7 $! Copyright 1996-2002 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,Lexer.obj," + -
22 "Link.obj,NameToCharCode.obj,Object.obj,OutputDev.obj," + -
23 "Page.obj,Parser.obj,PDFdoc.obj,PSTokenizer.obj," + -
24 "Stream.obj,UnicodeMap.obj,XRef.obj"
25 $ COMMON_LIBS = "[]common.olb/lib,[-.goo]libgoo.olb/lib"
27 $ XPDF_OBJS = "xpdf.obj,FTFont.obj,LTKOutputDev.obj,PSOutputDev.obj," + -
28 "SFont.obj,T1Font.obj,TextOutputDev.obj,TTFont.obj," + -
30 $ XPDF_LIBS = "[-.ltk]libltk.olb/lib"
32 $ PDFTOPS_OBJS = "pdftops.obj,PSOutputDev.obj"
35 $ PDFTOTEXT_OBJS = "pdftotext.obj,TextOutputDev.obj"
38 $ PDFINFO_OBJS = "pdfinfo.obj"
41 $ PDFTOPBM_OBJS = "pdftopbm.obj,FTFont.obj,PBMOutputDev.obj,SFont.obj," + -
42 "T1Font.obj,TextOutputDev.obj,TTFont.obj,XOutputDev.obj"
45 $ PDFIMAGES_OBJS = "pdfimages.obj,ImageOutputDev.obj"
48 $ PDFFONTS_OBJS = "pdffonts.obj"
52 $ define/user sys$input xpdf.ltk
53 $ define/user sys$output xpdf-ltk.h
57 $ file = f$element(i, ",",COMMON_OBJS)
58 $ if file .eqs. "," then goto BUILD_APPS
60 $ name = f$parse(file,,,"NAME")
61 $ call make 'file "CXXCOMP ''name'.cc" -
63 $ call make common.olb "lib/replace common.olb ''name'.obj" -
65 $ goto COMPILE_CXX_LOOP
68 $ curr_app = f$element(j,",",APPS)
69 $ if curr_app .eqs. "," then exit
73 $ file = f$element(i,",",'curr_app'_OBJS)
74 $ if file .eqs. "," then goto LINK_APP
76 $ name = f$parse(file,,,"NAME")
77 $ call make 'file "CXXCOMP ''name'.cc" -
81 $ if 'curr_app'_LIBS .nes. ""
83 $ LIBS = 'curr_app'_LIBS + "," + COMMON_LIBS
87 $ OBJS = 'curr_app'_OBJS
88 $ write sys$output "Linking ''curr_app'..."
89 $ xpdf_link/exe='curr_app'.exe 'OBJS','libs',[-]xpdf.opt/opt
94 $MAKE: SUBROUTINE !SUBROUTINE TO CHECK DEPENDENCIES
96 $! P1 = What we are trying to make
97 $! P2 = Command to make it
98 $! P3 - P8 What it depends on
100 $ If F$Search(P1) .Eqs. "" Then Goto Makeit
101 $ Time = F$CvTime(F$File(P1,"RDT"))
105 $ If Argument .Eqs. "" Then Goto Exit
108 $ File = F$Element(El," ",Argument)
109 $ If File .Eqs. " " Then Goto Endl
113 $ AFile = F$Search(File)
114 $ If AFile .Eqs. "" .Or. AFile .Eqs. OFile Then Goto NextEl
115 $ If F$CvTime(F$File(AFile,"RDT")) .Ges. Time Then Goto Makeit
122 $ If arg .Le. 8 Then Goto Loop
127 $ write sys$output P2
131 $ If V Then Set Verify