1 $!========================================================================
3 $! Xpdf compile script for VMS.
5 $! Written by Patrick Moreau, Martin P.J. Zinser.
7 $! Copyright 1996 Derek B. Noonburg
9 $!========================================================================
13 $ APPS = "XPDF,PDFTOPS,PDFTOTEXT,PDFINFO,PDFTOPBM,PDFIMAGES"
14 $ if f$search("COMMON.OLB").eqs."" then lib/create common.olb
16 $ COMMON_OBJS = "Array.obj,Catalog.obj,Decrypt.obj,Dict.obj,Error.obj," + -
17 "FontEncoding.obj,FontFile.obj,FormWidget.obj,Gfx.obj," + -
18 "GfxFont.obj,GfxState.obj,Lexer.obj,Link.obj,Object.obj," + -
19 "OutputDev.obj,Page.obj,Params.obj,Parser.obj,PDFdoc.obj," + -
21 $ COMMON_LIBS = "[]common.olb/lib,[-.goo]libgoo.olb/lib"
23 $ XPDF_OBJS = "xpdf.obj,LTKOutputDev.obj,PSOutputDev.obj,SFont.obj," + -
24 "T1Font.obj,TextOutputDev.obj,TTFont.obj,XOutputDev.obj"
25 $ XPDF_LIBS = "[-.ltk]libltk.olb/lib"
27 $ PDFTOPS_OBJS = "pdftops.obj,PSOutputDev.obj"
30 $ PDFTOTEXT_OBJS = "pdftotext.obj,TextOutputDev.obj"
33 $ PDFINFO_OBJS = "pdfinfo.obj"
36 $ PDFTOPBM_OBJS = "pdftopbm.obj,PBMOutputDev.obj,SFont.obj,T1Font.obj," + -
37 "TextOutputDev.obj,TTFont.obj,XOutputDev.obj"
40 $ PDFIMAGES_OBJS = "pdfimages.obj,ImageOutputDev.obj"
44 $ def/user sys$input xpdf.ltk
45 $ def/user sys$output xpdf-ltk.h
49 $ file = f$element(i, ",",COMMON_OBJS)
50 $ if file .eqs. "," then goto BUILD_APPS
52 $ name = f$parse(file,,,"NAME")
53 $ call make 'file "CXXCOMP ''name'.cc" -
55 $ call make common.olb "lib/replace common.olb ''name'.obj" -
57 $ goto COMPILE_CXX_LOOP
60 $ curr_app = f$element(j,",",APPS)
61 $ if curr_app .eqs. "," then exit
65 $ file = f$element(i,",",'curr_app'_OBJS)
66 $ if file .eqs. "," then goto LINK_APP
68 $ name = f$parse(file,,,"NAME")
69 $ call make 'file "CXXCOMP ''name'.cc" -
73 $ if 'curr_app'_LIBS .nes. ""
75 $ LIBS = 'curr_app'_LIBS + "," + COMMON_LIBS
79 $ OBJS = 'curr_app'_OBJS
80 $ xpdf_link/exe='curr_app'.exe 'OBJS','libs',[-]xpdf.opt/opt
85 $MAKE: SUBROUTINE !SUBROUTINE TO CHECK DEPENDENCIES
87 $! P1 = What we are trying to make
88 $! P2 = Command to make it
89 $! P3 - P8 What it depends on
91 $ If F$Search(P1) .Eqs. "" Then Goto Makeit
92 $ Time = F$CvTime(F$File(P1,"RDT"))
96 $ If Argument .Eqs. "" Then Goto Exit
99 $ File = F$Element(El," ",Argument)
100 $ If File .Eqs. " " Then Goto Endl
104 $ AFile = F$Search(File)
105 $ If AFile .Eqs. "" .Or. AFile .Eqs. OFile Then Goto NextEl
106 $ If F$CvTime(F$File(AFile,"RDT")) .Ges. Time Then Goto Makeit
113 $ If arg .Le. 8 Then Goto Loop
118 $ write sys$output P2
122 $ If V Then Set Verify