2
0

configure.com 35 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345
  1. $! $Id: configure.com,v 1.2 2007-11-23 10:01:34 dron Exp $
  2. $!
  3. $! OpenVMS configure procedure for libtiff
  4. $! (c) Alexey Chupahin 22-NOV-2007
  5. $! elvis_75@mail.ru
  6. $!
  7. $! Permission to use, copy, modify, distribute, and sell this software and
  8. $! its documentation for any purpose is hereby granted without fee, provided
  9. $! that (i) the above copyright notices and this permission notice appear in
  10. $! all copies of the software and related documentation, and (ii) the names of
  11. $! Sam Leffler and Silicon Graphics may not be used in any advertising or
  12. $! publicity relating to the software without the specific, prior written
  13. $! permission of Sam Leffler and Silicon Graphics.
  14. $!
  15. $! THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
  16. $! EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
  17. $! WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
  18. $!
  19. $! IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  20. $! ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  21. $! OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  22. $! WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
  23. $! LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
  24. $! OF THIS SOFTWARE.
  25. $!
  26. $!
  27. $ SET NOON
  28. $WRITE SYS$OUTPUT " "
  29. $WRITE SYS$OUTPUT "Configuring libTIFF library"
  30. $WRITE SYS$OUTPUT " "
  31. $! Checking architecture
  32. $DECC = F$SEARCH("SYS$SYSTEM:DECC$COMPILER.EXE") .NES. ""
  33. $IF (.NOT. DECC) THEN $WRITE SYS$OUTPUT "BAD compiler" GOTO EXIT
  34. $ IF F$GETSYI("ARCH_TYPE").EQ.1 THEN CPU = "VAX"
  35. $ IF F$GETSYI("ARCH_TYPE").EQ.2 THEN CPU = "Alpha"
  36. $ IF F$GETSYI("ARCH_TYPE").EQ.3 THEN CPU = "I64"
  37. $ OS = F$GETSYI("VERSION")
  38. $WRITE SYS$OUTPUT "Checking architecture ... ", CPU
  39. $WRITE SYS$OUTPUT "Checking OS ... OpenVMS ",OS
  40. $SHARED=0
  41. $IF ( (CPU.EQS."Alpha").OR.(CPU.EQS."I64") )
  42. $ THEN
  43. $ SHARED=64
  44. $ ELSE
  45. $ SHARED=32
  46. $ENDIF
  47. $MMS = F$SEARCH("SYS$SYSTEM:MMS.EXE") .NES. ""
  48. $MMK = F$TYPE(MMK)
  49. $IF (MMS .OR. MMK.NES."") THEN GOTO TEST_LIBRARIES
  50. $! I cant find any make tool
  51. $GOTO EXIT
  52. $!
  53. $!
  54. $TEST_LIBRARIES:
  55. $! Setting as MAKE utility one of MMS or MMK. I prefer MMS.
  56. $IF (MMK.NES."") THEN MAKE="MMK"
  57. $IF (MMS) THEN MAKE="MMS"
  58. $WRITE SYS$OUTPUT "Checking build utility ... ''MAKE'"
  59. $WRITE SYS$OUTPUT " "
  60. $!
  61. $!
  62. $IF (P1.EQS."STATIC").OR.(P1.EQS."static") THEN SHARED=0
  63. $!
  64. $!
  65. $!"Checking for strcasecmp "
  66. $ DEFINE SYS$ERROR _NLA0:
  67. $ DEFINE SYS$OUTPUT _NLA0:
  68. $ CC/OBJECT=TEST.OBJ/INCLUDE=(ZLIB) SYS$INPUT
  69. #include <strings.h>
  70. #include <stdlib.h>
  71. int main()
  72. {
  73. if (strcasecmp("bla", "Bla")==0) exit(0);
  74. else exit(2);
  75. }
  76. $!
  77. $TMP = $STATUS
  78. $DEASS SYS$ERROR
  79. $DEAS SYS$OUTPUT
  80. $IF (TMP .NE. %X10B90001)
  81. $ THEN
  82. $ HAVE_STRCASECMP=0
  83. $ GOTO NEXT1
  84. $ENDIF
  85. $DEFINE SYS$ERROR _NLA0:
  86. $DEFINE SYS$OUTPUT _NLA0:
  87. $LINK/EXE=TEST TEST
  88. $TMP = $STATUS
  89. $DEAS SYS$ERROR
  90. $DEAS SYS$OUTPUT
  91. $!WRITE SYS$OUTPUT TMP
  92. $IF (TMP .NE. %X10000001)
  93. $ THEN
  94. $ HAVE_STRCASECMP=0
  95. $ GOTO NEXT1
  96. $ENDIF
  97. $!
  98. $DEFINE SYS$ERROR _NLA0:
  99. $DEFINE SYS$OUTPUT _NLA0:
  100. $RUN TEST
  101. $IF ($STATUS .NE. %X00000001)
  102. $ THEN
  103. $ HAVE_STRCASECMP=0
  104. $ ELSE
  105. $ HAVE_STRCASECMP=1
  106. $ENDIF
  107. $DEAS SYS$ERROR
  108. $DEAS SYS$OUTPUT
  109. $NEXT1:
  110. $IF (HAVE_STRCASECMP.EQ.1)
  111. $ THEN
  112. $ WRITE SYS$OUTPUT "Checking for strcasecmp ... Yes"
  113. $ ELSE
  114. $ WRITE SYS$OUTPUT "Checking for strcasecmp ... No"
  115. $ENDIF
  116. $!
  117. $!
  118. $!"Checking for lfind "
  119. $ DEFINE SYS$ERROR _NLA0:
  120. $ DEFINE SYS$OUTPUT _NLA0:
  121. $ CC/OBJECT=TEST.OBJ/INCLUDE=(ZLIB) SYS$INPUT
  122. #include <search.h>
  123. int main()
  124. {
  125. lfind((const void *)key, (const void *)NULL, (size_t *)NULL,
  126. (size_t) 0, NULL);
  127. }
  128. $!
  129. $TMP = $STATUS
  130. $DEASS SYS$ERROR
  131. $DEAS SYS$OUTPUT
  132. $IF (TMP .NE. %X10B90001)
  133. $ THEN
  134. $ HAVE_LFIND=0
  135. $ GOTO NEXT2
  136. $ENDIF
  137. $DEFINE SYS$ERROR _NLA0:
  138. $DEFINE SYS$OUTPUT _NLA0:
  139. $LINK/EXE=TEST TEST
  140. $TMP = $STATUS
  141. $DEAS SYS$ERROR
  142. $DEAS SYS$OUTPUT
  143. $!WRITE SYS$OUTPUT TMP
  144. $IF (TMP .NE. %X10000001)
  145. $ THEN
  146. $ HAVE_LFIND=0
  147. $ GOTO NEXT2
  148. $ ELSE
  149. $ HAVE_LFIND=1
  150. $ENDIF
  151. $!
  152. $NEXT2:
  153. $IF (HAVE_LFIND.EQ.1)
  154. $ THEN
  155. $ WRITE SYS$OUTPUT "Checking for lfind ... Yes"
  156. $ ELSE
  157. $ WRITE SYS$OUTPUT "Checking for lfind ... No"
  158. $ENDIF
  159. $!
  160. $!
  161. $!"Checking for correct zlib library "
  162. $ DEFINE SYS$ERROR _NLA0:
  163. $ DEFINE SYS$OUTPUT _NLA0:
  164. $ CC/OBJECT=TEST.OBJ/INCLUDE=(ZLIB) SYS$INPUT
  165. #include <stdlib.h>
  166. #include <stdio.h>
  167. #include <zlib.h>
  168. int main()
  169. {
  170. printf("checking version zlib: %s\n",zlibVersion());
  171. }
  172. $TMP = $STATUS
  173. $DEASS SYS$ERROR
  174. $DEAS SYS$OUTPUT
  175. $!WRITE SYS$OUTPUT TMP
  176. $IF (TMP .NE. %X10B90001)
  177. $ THEN
  178. $ HAVE_ZLIB=0
  179. $ GOTO EXIT
  180. $ENDIF
  181. $DEFINE SYS$ERROR _NLA0:
  182. $DEFINE SYS$OUTPUT _NLA0:
  183. $LINK/EXE=TEST TEST,ZLIB:LIBZ/LIB
  184. $TMP = $STATUS
  185. $DEAS SYS$ERROR
  186. $DEAS SYS$OUTPUT
  187. $!WRITE SYS$OUTPUT TMP
  188. $IF (TMP .NE. %X10000001)
  189. $ THEN
  190. $ HAVE_ZLIB=0
  191. $ GOTO EXIT
  192. $ ELSE
  193. $ HAVE_ZLIB=1
  194. $ENDIF
  195. $IF (HAVE_ZLIB.EQ.1)
  196. $ THEN
  197. $ WRITE SYS$OUTPUT "Checking for correct zlib library ... Yes"
  198. $ ELSE
  199. $ WRITE SYS$OUTPUT "Checking for correct zlib library ... No"
  200. $ WRITE SYS$OUTPUT "This is fatal. Please download and install good library from fafner.dyndns.org/~alexey/libsdl/public.html"
  201. $ENDIF
  202. $RUN TEST
  203. $!
  204. $DEL TEST.OBJ;*
  205. $! Checking for JPEG ...
  206. $ DEFINE SYS$ERROR _NLA0:
  207. $ DEFINE SYS$OUTPUT _NLA0:
  208. $ CC/OBJECT=TEST.OBJ/INCLUDE=(JPEG) SYS$INPUT
  209. #include <stdlib.h>
  210. #include <stdio.h>
  211. #include <jpeglib.h>
  212. #include <jversion.h>
  213. int main()
  214. {
  215. printf("checking version jpeg: %s\n",JVERSION);
  216. jpeg_quality_scaling(0);
  217. return 0;
  218. }
  219. $TMP = $STATUS
  220. $DEASS SYS$ERROR
  221. $DEAS SYS$OUTPUT
  222. $!WRITE SYS$OUTPUT TMP
  223. $IF (TMP .NE. %X10B90001)
  224. $ THEN
  225. $ WRITE SYS$OUTPUT "Checking for static jpeg library ... No"
  226. $ HAVE_JPEG=0
  227. $ENDIF
  228. $DEFINE SYS$ERROR _NLA0:
  229. $DEFINE SYS$OUTPUT _NLA0:
  230. $LINK/EXE=TEST TEST,JPEG:LIBJPEG/LIB
  231. $TMP = $STATUS
  232. $DEAS SYS$ERROR
  233. $DEAS SYS$OUTPUT
  234. $!WRITE SYS$OUTPUT TMP
  235. $IF (TMP .NE. %X10000001)
  236. $ THEN
  237. $ HAVE_JPEG=0
  238. $ ELSE
  239. $ HAVE_JPEG=1
  240. $ENDIF
  241. $IF (HAVE_JPEG.EQ.1)
  242. $ THEN
  243. $ WRITE SYS$OUTPUT "Checking for static jpeg library ... Yes"
  244. $ JPEG_LIBRARY_PATH="JPEG:LIBJPEG/LIB"
  245. $ RUN TEST
  246. $ ELSE
  247. $ WRITE SYS$OUTPUT "Checking for static jpeg library ... No"
  248. $ENDIF
  249. $!
  250. $!"Checking for SHARED JPEG library "
  251. $OPEN/WRITE OUT TEST.OPT
  252. $WRITE OUT "SYS$SHARE:LIBJPEG$SHR/SHARE"
  253. $WRITE OUT "ZLIB:LIBZ/LIB"
  254. $CLOSE OUT
  255. $DEFINE SYS$ERROR _NLA0:
  256. $DEFINE SYS$OUTPUT _NLA0:
  257. $LINK/EXE=TEST TEST,TEST/OPT
  258. $TMP = $STATUS
  259. $DEAS SYS$ERROR
  260. $DEAS SYS$OUTPUT
  261. $!WRITE SYS$OUTPUT TMP
  262. $IF (TMP .NE. %X10000001)
  263. $ THEN
  264. $ HAVE_JPEG_SHARED=0
  265. $ ELSE
  266. $ HAVE_JPEG_SHARED=1
  267. $ENDIF
  268. $IF (HAVE_JPEG_SHARED.EQ.1)
  269. $ THEN
  270. $ WRITE SYS$OUTPUT "Checking for shared jpeg library ... Yes"
  271. $ JPEG_LIBRARY_PATH="SYS$SHARE:LIBJPEG$SHR/SHARE"
  272. $ ELSE
  273. $ WRITE SYS$OUTPUT "Checking for shared jpeg library ... No"
  274. $ENDIF
  275. $!
  276. $ IF ( (HAVE_JPEG_SHARED.EQ.0).AND.(HAVE_JPEG.EQ.0) )
  277. $ THEN
  278. $ WRITE SYS$OUTPUT "No JPEG library installed. This is fatal. Please download and install good library from fafner.dyndns.org/~alexey/libsdl/public.html"
  279. $ GOTO EXIT
  280. $ ENDIF
  281. $!
  282. $!
  283. $!
  284. $! Checking for X11 ...
  285. $IF F$TRNLNM("DECW$INCLUDE") .NES. ""
  286. $ THEN
  287. $ WRITE SYS$OUTPUT "Checking for X11 ... Yes"
  288. $ ELSE
  289. $ WRITE SYS$OUTPUT "Checking for X11 ... No"
  290. $ WRITE SYS$OUTPUT "This is fatal. Please install X11 software"
  291. $ GOTO EXIT
  292. $ENDIF
  293. $!
  294. $!WRITING BUILD FILES
  295. $OPEN/WRITE OUT BUILD.COM
  296. $ WRITE OUT "$set def [.port]"
  297. $ WRITE OUT "$",MAKE
  298. $ WRITE OUT "$set def [-.libtiff]"
  299. $ WRITE OUT "$",MAKE
  300. $ WRITE OUT "$set def [-.tools]"
  301. $ WRITE OUT "$",MAKE
  302. $ WRITE OUT "$set def [-]"
  303. $ WRITE OUT "$cop [.PORT]LIBPORT.OLB [.LIBTIFF]LIBPORT.OLB"
  304. $ WRITE OUT "$ CURRENT = F$ENVIRONMENT (""DEFAULT"") "
  305. $ WRITE OUT "$TIFF=CURRENT"
  306. $ WRITE OUT "$OPEN/WRITE OUTT LIBTIFF$STARTUP.COM"
  307. $ WRITE OUT "$TIFF[F$LOCATE(""]"",TIFF),9]:="".LIBTIFF]"""
  308. $ WRITE OUT "$WRITE OUTT ""DEFINE TIFF ","'","'","TIFF'"" "
  309. $ WRITE OUT "$TIFF=CURRENT"
  310. $ WRITE OUT "$TIFF[F$LOCATE(""]"",TIFF),7]:="".TOOLS]"""
  311. $ WRITE OUT "$WRITE OUTT ""BMP2TIFF:==$", "'","'","TIFF'BMP2TIFF"""
  312. $ WRITE OUT "$WRITE OUTT ""FAX2PS:==$", "'","'","TIFF'FAX2PS"""
  313. $ WRITE OUT "$WRITE OUTT ""FAX2TIFF:==$", "'","'","TIFF'FAX2TIFF"""
  314. $ WRITE OUT "$WRITE OUTT ""GIF2TIFF:==$", "'","'","TIFF'GIF2TIFF"""
  315. $ WRITE OUT "$WRITE OUTT ""PAL2RGB:==$", "'","'","TIFF'PAL2RGB"""
  316. $ WRITE OUT "$WRITE OUTT ""PPM2TIFF:==$", "'","'","TIFF'PPM2TIFF"""
  317. $ WRITE OUT "$WRITE OUTT ""RAS2TIFF:==$", "'","'","TIFF'RAS2TIFF"""
  318. $ WRITE OUT "$WRITE OUTT ""RAW2TIFF:==$", "'","'","TIFF'RAW2TIFF"""
  319. $ WRITE OUT "$WRITE OUTT ""RGB2YCBCR:==$", "'","'","TIFF'RGB2YCBCR"""
  320. $ WRITE OUT "$WRITE OUTT ""THUMBNAIL:==$", "'","'","TIFF'THUMBNAIL"""
  321. $ WRITE OUT "$WRITE OUTT ""TIFF2BW:==$", "'","'","TIFF'TIFF2BW"""
  322. $ WRITE OUT "$WRITE OUTT ""TIFF2PDF:==$", "'","'","TIFF'TIFF2PDF"""
  323. $ WRITE OUT "$WRITE OUTT ""TIFF2PS:==$", "'","'","TIFF'TIFF2PS"""
  324. $ WRITE OUT "$WRITE OUTT ""TIFF2RGBA:==$", "'","'","TIFF'TIFF2RGBA"""
  325. $ WRITE OUT "$WRITE OUTT ""TIFFCMP:==$", "'","'","TIFF'TIFFCMP"""
  326. $ WRITE OUT "$WRITE OUTT ""TIFFCP:==$", "'","'","TIFF'TIFFCP"""
  327. $ WRITE OUT "$WRITE OUTT ""TIFFDITHER:==$", "'","'","TIFF'TIFFDITHER"""
  328. $ WRITE OUT "$WRITE OUTT ""TIFFDUMP:==$", "'","'","TIFF'TIFFDUMP"""
  329. $ WRITE OUT "$WRITE OUTT ""TIFFINFO:==$", "'","'","TIFF'TIFFINFO"""
  330. $ WRITE OUT "$WRITE OUTT ""TIFFMEDIAN:==$", "'","'","TIFF'TIFFMEDIAN"""
  331. $ WRITE OUT "$WRITE OUTT ""TIFFCROP:==$", "'","'","TIFF'TIFFCROP"""
  332. $ WRITE OUT "$WRITE OUTT ""TIFFSET:==$", "'","'","TIFF'TIFFSET"""
  333. $ WRITE OUT "$CLOSE OUTT"
  334. $ WRITE OUT "$OPEN/WRITE OUTT [.LIBTIFF]LIBTIFF.OPT"
  335. $ WRITE OUT "$WRITE OUTT ""TIFF:TIFF/LIB""
  336. $ WRITE OUT "$WRITE OUTT ""TIFF:LIBPORT/LIB""
  337. $ WRITE OUT "$WRITE OUTT ""JPEG:LIBJPEG/LIB""
  338. $ WRITE OUT "$WRITE OUTT ""ZLIB:LIBZ/LIB""
  339. $ WRITE OUT "$CLOSE OUTT"
  340. $!
  341. $ WRITE OUT "$WRITE SYS$OUTPUT "" "" "
  342. $ WRITE OUT "$WRITE SYS$OUTPUT ""***************************************************************************** "" "
  343. $ WRITE OUT "$WRITE SYS$OUTPUT ""LIBTIFF$STARTUP.COM has been created. "" "
  344. $ WRITE OUT "$WRITE SYS$OUTPUT ""This file setups all logicals needed. It should be execute before using LibTIFF "" "
  345. $ WRITE OUT "$WRITE SYS$OUTPUT ""Nice place to call it - LOGIN.COM "" "
  346. $ WRITE OUT "$WRITE SYS$OUTPUT """" "
  347. $ WRITE OUT "$WRITE SYS$OUTPUT ""Using the library:"" "
  348. $ WRITE OUT "$WRITE SYS$OUTPUT ""CC/INC=TIFF ASCII_TAG.C"" "
  349. $ WRITE OUT "$WRITE SYS$OUTPUT ""LINK ASCII_TAG,TIFF:LIBTIFF/OPT"" "
  350. $ WRITE OUT "$WRITE SYS$OUTPUT ""***************************************************************************** "" "
  351. $CLOSE OUT
  352. $!
  353. $! DESCRIP.MMS in [.PORT]
  354. $OBJ="dummy.obj"
  355. $IF HAVE_STRCASECMP.NE.1
  356. $ THEN
  357. $ OBJ=OBJ+",strcasecmp.obj"
  358. $ENDIF
  359. $IF HAVE_LFIND.NE.1
  360. $ THEN
  361. $ OBJ=OBJ+",lfind.obj"
  362. $ENDIF
  363. $OPEN/WRITE OUT [.PORT]DESCRIP.MMS
  364. $WRITE OUT "OBJ=",OBJ
  365. $WRITE OUT ""
  366. $WRITE OUT "LIBPORT.OLB : $(OBJ)"
  367. $WRITE OUT " LIB/CREA LIBPORT $(OBJ)"
  368. $WRITE OUT ""
  369. $WRITE OUT ""
  370. $WRITE OUT "dummy.obj : dummy.c"
  371. $WRITE OUT " $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)"
  372. $WRITE OUT ""
  373. $WRITE OUT ""
  374. $WRITE OUT "strcasecmp.obj : strcasecmp.c"
  375. $WRITE OUT " $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)"
  376. $WRITE OUT ""
  377. $WRITE OUT ""
  378. $WRITE OUT "lfind.obj : lfind.c"
  379. $WRITE OUT " $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)"
  380. $WRITE OUT ""
  381. $WRITE OUT ""
  382. $CLOSE OUT
  383. $!
  384. $!
  385. $WRITE SYS$OUTPUT "Creating LIBTIFF$DEF.OPT"
  386. $IF (SHARED.EQ.64)
  387. $ THEN
  388. $ COPY SYS$INPUT TIFF$DEF.OPT
  389. SYMBOL_VECTOR= (-
  390. TIFFOpen=PROCEDURE,-
  391. TIFFGetVersion=PROCEDURE,-
  392. TIFFCleanup=PROCEDURE,-
  393. TIFFClose=PROCEDURE,-
  394. TIFFFlush=PROCEDURE,-
  395. TIFFFlushData=PROCEDURE,-
  396. TIFFGetField=PROCEDURE,-
  397. TIFFVGetField=PROCEDURE,-
  398. TIFFGetFieldDefaulted=PROCEDURE,-
  399. TIFFVGetFieldDefaulted=PROCEDURE,-
  400. TIFFGetTagListEntry=PROCEDURE,-
  401. TIFFGetTagListCount=PROCEDURE,-
  402. TIFFReadDirectory=PROCEDURE,-
  403. TIFFScanlineSize=PROCEDURE,-
  404. TIFFStripSize=PROCEDURE,-
  405. TIFFVStripSize=PROCEDURE,-
  406. TIFFRawStripSize=PROCEDURE,-
  407. TIFFTileRowSize=PROCEDURE,-
  408. TIFFTileSize=PROCEDURE,-
  409. TIFFVTileSize=PROCEDURE,-
  410. TIFFFileno=PROCEDURE,-
  411. TIFFSetFileno=PROCEDURE,-
  412. TIFFGetMode=PROCEDURE,-
  413. TIFFIsTiled=PROCEDURE,-
  414. TIFFIsByteSwapped=PROCEDURE,-
  415. TIFFIsBigEndian=PROCEDURE,-
  416. TIFFIsMSB2LSB=PROCEDURE,-
  417. TIFFIsUpSampled=PROCEDURE,-
  418. TIFFCIELabToRGBInit=PROCEDURE,-
  419. TIFFCIELabToXYZ=PROCEDURE,-
  420. TIFFXYZToRGB=PROCEDURE,-
  421. TIFFYCbCrToRGBInit=PROCEDURE,-
  422. TIFFYCbCrtoRGB=PROCEDURE,-
  423. TIFFCurrentRow=PROCEDURE,-
  424. TIFFCurrentDirectory=PROCEDURE,-
  425. TIFFCurrentStrip=PROCEDURE,-
  426. TIFFCurrentTile=PROCEDURE,-
  427. TIFFDataWidth=PROCEDURE,-
  428. TIFFReadBufferSetup=PROCEDURE,-
  429. TIFFWriteBufferSetup=PROCEDURE,-
  430. TIFFSetupStrips=PROCEDURE,-
  431. TIFFLastDirectory=PROCEDURE,-
  432. TIFFSetDirectory=PROCEDURE,-
  433. TIFFSetSubDirectory=PROCEDURE,-
  434. TIFFUnlinkDirectory=PROCEDURE,-
  435. TIFFSetField=PROCEDURE,-
  436. TIFFVSetField=PROCEDURE,-
  437. TIFFCheckpointDirectory=PROCEDURE,-
  438. TIFFWriteDirectory=PROCEDURE,-
  439. TIFFRewriteDirectory=PROCEDURE,-
  440. TIFFPrintDirectory=PROCEDURE,-
  441. TIFFReadScanline=PROCEDURE,-
  442. TIFFWriteScanline=PROCEDURE,-
  443. TIFFReadRGBAImage=PROCEDURE,-
  444. TIFFReadRGBAImageOriented=PROCEDURE,-
  445. TIFFFdOpen=PROCEDURE,-
  446. TIFFClientOpen=PROCEDURE,-
  447. TIFFFileName=PROCEDURE,-
  448. TIFFError=PROCEDURE,-
  449. TIFFErrorExt=PROCEDURE,-
  450. TIFFWarning=PROCEDURE,-
  451. TIFFWarningExt=PROCEDURE,-
  452. TIFFSetErrorHandler=PROCEDURE,-
  453. TIFFSetErrorHandlerExt=PROCEDURE,-
  454. TIFFSetWarningHandler=PROCEDURE,-
  455. TIFFSetWarningHandlerExt=PROCEDURE,-
  456. TIFFComputeTile=PROCEDURE,-
  457. TIFFCheckTile=PROCEDURE,-
  458. TIFFNumberOfTiles=PROCEDURE,-
  459. TIFFReadTile=PROCEDURE,-
  460. TIFFWriteTile=PROCEDURE,-
  461. TIFFComputeStrip=PROCEDURE,-
  462. TIFFNumberOfStrips=PROCEDURE,-
  463. TIFFRGBAImageBegin=PROCEDURE,-
  464. TIFFRGBAImageGet=PROCEDURE,-
  465. TIFFRGBAImageEnd=PROCEDURE,-
  466. TIFFReadEncodedStrip=PROCEDURE,-
  467. TIFFReadRawStrip=PROCEDURE,-
  468. TIFFReadEncodedTile=PROCEDURE,-
  469. TIFFReadRawTile=PROCEDURE,-
  470. TIFFReadRGBATile=PROCEDURE,-
  471. TIFFReadRGBAStrip=PROCEDURE,-
  472. TIFFWriteEncodedStrip=PROCEDURE,-
  473. TIFFWriteRawStrip=PROCEDURE,-
  474. TIFFWriteEncodedTile=PROCEDURE,-
  475. TIFFWriteRawTile=PROCEDURE,-
  476. TIFFSetWriteOffset=PROCEDURE,-
  477. TIFFSwabDouble=PROCEDURE,-
  478. TIFFSwabShort=PROCEDURE,-
  479. TIFFSwabLong=PROCEDURE,-
  480. TIFFSwabArrayOfShort=PROCEDURE,-
  481. TIFFSwabArrayOfLong=PROCEDURE,-
  482. TIFFSwabArrayOfDouble=PROCEDURE,-
  483. TIFFSwabArrayOfTriples=PROCEDURE,-
  484. TIFFReverseBits=PROCEDURE,-
  485. TIFFGetBitRevTable=PROCEDURE,-
  486. TIFFDefaultStripSize=PROCEDURE,-
  487. TIFFDefaultTileSize=PROCEDURE,-
  488. TIFFRasterScanlineSize=PROCEDURE,-
  489. _TIFFmalloc=PROCEDURE,-
  490. _TIFFrealloc=PROCEDURE,-
  491. _TIFFfree=PROCEDURE,-
  492. _TIFFmemset=PROCEDURE,-
  493. _TIFFmemcpy=PROCEDURE,-
  494. _TIFFmemcmp=PROCEDURE,-
  495. TIFFCreateDirectory=PROCEDURE,-
  496. TIFFSetTagExtender=PROCEDURE,-
  497. TIFFMergeFieldInfo=PROCEDURE,-
  498. TIFFFindFieldInfo=PROCEDURE,-
  499. TIFFFindFieldInfoByName=PROCEDURE,-
  500. TIFFFieldWithName=PROCEDURE,-
  501. TIFFFieldWithTag=PROCEDURE,-
  502. TIFFCurrentDirOffset=PROCEDURE,-
  503. TIFFWriteCheck=PROCEDURE,-
  504. TIFFRGBAImageOK=PROCEDURE,-
  505. TIFFNumberOfDirectories=PROCEDURE,-
  506. TIFFSetFileName=PROCEDURE,-
  507. TIFFSetClientdata=PROCEDURE,-
  508. TIFFSetMode=PROCEDURE,-
  509. TIFFClientdata=PROCEDURE,-
  510. TIFFGetReadProc=PROCEDURE,-
  511. TIFFGetWriteProc=PROCEDURE,-
  512. TIFFGetSeekProc=PROCEDURE,-
  513. TIFFGetCloseProc=PROCEDURE,-
  514. TIFFGetSizeProc=PROCEDURE,-
  515. TIFFGetMapFileProc=PROCEDURE,-
  516. TIFFGetUnmapFileProc=PROCEDURE,-
  517. TIFFIsCODECConfigured=PROCEDURE,-
  518. TIFFGetConfiguredCODECs=PROCEDURE,-
  519. TIFFFindCODEC=PROCEDURE,-
  520. TIFFRegisterCODEC=PROCEDURE,-
  521. TIFFUnRegisterCODEC=PROCEDURE,-
  522. TIFFFreeDirectory=PROCEDURE,-
  523. TIFFReadCustomDirectory=PROCEDURE,-
  524. TIFFReadEXIFDirectory=PROCEDURE,-
  525. TIFFAccessTagMethods=PROCEDURE,-
  526. TIFFGetClientInfo=PROCEDURE,-
  527. TIFFSetClientInfo=PROCEDURE,-
  528. TIFFReassignTagToIgnore=PROCEDURE-
  529. )
  530. $ENDIF
  531. $IF (SHARED.EQ.32)
  532. $ THEN
  533. $ COPY SYS$INPUT TIFF$DEF.OPT
  534. UNIVERSAL=TIFFOpen
  535. UNIVERSAL=TIFFGetVersion
  536. UNIVERSAL=TIFFCleanup
  537. UNIVERSAL=TIFFClose
  538. UNIVERSAL=TIFFFlush
  539. UNIVERSAL=TIFFFlushData
  540. UNIVERSAL=TIFFGetField
  541. UNIVERSAL=TIFFVGetField
  542. UNIVERSAL=TIFFGetFieldDefaulted
  543. UNIVERSAL=TIFFVGetFieldDefaulted
  544. UNIVERSAL=TIFFGetTagListEntry
  545. UNIVERSAL=TIFFGetTagListCount
  546. UNIVERSAL=TIFFReadDirectory
  547. UNIVERSAL=TIFFScanlineSize
  548. UNIVERSAL=TIFFStripSize
  549. UNIVERSAL=TIFFVStripSize
  550. UNIVERSAL=TIFFRawStripSize
  551. UNIVERSAL=TIFFTileRowSize
  552. UNIVERSAL=TIFFTileSize
  553. UNIVERSAL=TIFFVTileSize
  554. UNIVERSAL=TIFFFileno
  555. UNIVERSAL=TIFFSetFileno
  556. UNIVERSAL=TIFFGetMode
  557. UNIVERSAL=TIFFIsTiled
  558. UNIVERSAL=TIFFIsByteSwapped
  559. UNIVERSAL=TIFFIsBigEndian
  560. UNIVERSAL=TIFFIsMSB2LSB
  561. UNIVERSAL=TIFFIsUpSampled
  562. UNIVERSAL=TIFFCIELabToRGBInit
  563. UNIVERSAL=TIFFCIELabToXYZ
  564. UNIVERSAL=TIFFXYZToRGB
  565. UNIVERSAL=TIFFYCbCrToRGBInit
  566. UNIVERSAL=TIFFYCbCrtoRGB
  567. UNIVERSAL=TIFFCurrentRow
  568. UNIVERSAL=TIFFCurrentDirectory
  569. UNIVERSAL=TIFFCurrentStrip
  570. UNIVERSAL=TIFFCurrentTile
  571. UNIVERSAL=TIFFDataWidth
  572. UNIVERSAL=TIFFReadBufferSetup
  573. UNIVERSAL=TIFFWriteBufferSetup
  574. UNIVERSAL=TIFFSetupStrips
  575. UNIVERSAL=TIFFLastDirectory
  576. UNIVERSAL=TIFFSetDirectory
  577. UNIVERSAL=TIFFSetSubDirectory
  578. UNIVERSAL=TIFFUnlinkDirectory
  579. UNIVERSAL=TIFFSetField
  580. UNIVERSAL=TIFFVSetField
  581. UNIVERSAL=TIFFCheckpointDirectory
  582. UNIVERSAL=TIFFWriteDirectory
  583. UNIVERSAL=TIFFRewriteDirectory
  584. UNIVERSAL=TIFFPrintDirectory
  585. UNIVERSAL=TIFFReadScanline
  586. UNIVERSAL=TIFFWriteScanline
  587. UNIVERSAL=TIFFReadRGBAImage
  588. UNIVERSAL=TIFFReadRGBAImageOriented
  589. UNIVERSAL=TIFFFdOpen
  590. UNIVERSAL=TIFFClientOpen
  591. UNIVERSAL=TIFFFileName
  592. UNIVERSAL=TIFFError
  593. UNIVERSAL=TIFFErrorExt
  594. UNIVERSAL=TIFFWarning
  595. UNIVERSAL=TIFFWarningExt
  596. UNIVERSAL=TIFFSetErrorHandler
  597. UNIVERSAL=TIFFSetErrorHandlerExt
  598. UNIVERSAL=TIFFSetWarningHandler
  599. UNIVERSAL=TIFFSetWarningHandlerExt
  600. UNIVERSAL=TIFFComputeTile
  601. UNIVERSAL=TIFFCheckTile
  602. UNIVERSAL=TIFFNumberOfTiles
  603. UNIVERSAL=TIFFReadTile
  604. UNIVERSAL=TIFFWriteTile
  605. UNIVERSAL=TIFFComputeStrip
  606. UNIVERSAL=TIFFNumberOfStrips
  607. UNIVERSAL=TIFFRGBAImageBegin
  608. UNIVERSAL=TIFFRGBAImageGet
  609. UNIVERSAL=TIFFRGBAImageEnd
  610. UNIVERSAL=TIFFReadEncodedStrip
  611. UNIVERSAL=TIFFReadRawStrip
  612. UNIVERSAL=TIFFReadEncodedTile
  613. UNIVERSAL=TIFFReadRawTile
  614. UNIVERSAL=TIFFReadRGBATile
  615. UNIVERSAL=TIFFReadRGBAStrip
  616. UNIVERSAL=TIFFWriteEncodedStrip
  617. UNIVERSAL=TIFFWriteRawStrip
  618. UNIVERSAL=TIFFWriteEncodedTile
  619. UNIVERSAL=TIFFWriteRawTile
  620. UNIVERSAL=TIFFSetWriteOffset
  621. UNIVERSAL=TIFFSwabDouble
  622. UNIVERSAL=TIFFSwabShort
  623. UNIVERSAL=TIFFSwabLong
  624. UNIVERSAL=TIFFSwabArrayOfShort
  625. UNIVERSAL=TIFFSwabArrayOfLong
  626. UNIVERSAL=TIFFSwabArrayOfDouble
  627. UNIVERSAL=TIFFSwabArrayOfTriples
  628. UNIVERSAL=TIFFReverseBits
  629. UNIVERSAL=TIFFGetBitRevTable
  630. UNIVERSAL=TIFFDefaultStripSize
  631. UNIVERSAL=TIFFDefaultTileSize
  632. UNIVERSAL=TIFFRasterScanlineSize
  633. UNIVERSAL=_TIFFmalloc
  634. UNIVERSAL=_TIFFrealloc
  635. UNIVERSAL=_TIFFfree
  636. UNIVERSAL=_TIFFmemset
  637. UNIVERSAL=_TIFFmemcpy
  638. UNIVERSAL=_TIFFmemcmp
  639. UNIVERSAL=TIFFCreateDirectory
  640. UNIVERSAL=TIFFSetTagExtender
  641. UNIVERSAL=TIFFMergeFieldInfo
  642. UNIVERSAL=TIFFFindFieldInfo
  643. UNIVERSAL=TIFFFindFieldInfoByName
  644. UNIVERSAL=TIFFFieldWithName
  645. UNIVERSAL=TIFFFieldWithTag
  646. UNIVERSAL=TIFFCurrentDirOffset
  647. UNIVERSAL=TIFFWriteCheck
  648. UNIVERSAL=TIFFRGBAImageOK
  649. UNIVERSAL=TIFFNumberOfDirectories
  650. UNIVERSAL=TIFFSetFileName
  651. UNIVERSAL=TIFFSetClientdata
  652. UNIVERSAL=TIFFSetMode
  653. UNIVERSAL=TIFFClientdata
  654. UNIVERSAL=TIFFGetReadProc
  655. UNIVERSAL=TIFFGetWriteProc
  656. UNIVERSAL=TIFFGetSeekProc
  657. UNIVERSAL=TIFFGetCloseProc
  658. UNIVERSAL=TIFFGetSizeProc
  659. UNIVERSAL=TIFFGetMapFileProc
  660. UNIVERSAL=TIFFGetUnmapFileProc
  661. UNIVERSAL=TIFFIsCODECConfigured
  662. UNIVERSAL=TIFFGetConfiguredCODECs
  663. UNIVERSAL=TIFFFindCODEC
  664. UNIVERSAL=TIFFRegisterCODEC
  665. UNIVERSAL=TIFFUnRegisterCODEC
  666. UNIVERSAL=TIFFFreeDirectory
  667. UNIVERSAL=TIFFReadCustomDirectory
  668. UNIVERSAL=TIFFReadEXIFDirectory
  669. UNIVERSAL=TIFFAccessTagMethods
  670. UNIVERSAL=TIFFGetClientInfo
  671. UNIVERSAL=TIFFSetClientInfo
  672. UNIVERSAL=TIFFReassignTagToIgnore
  673. $ENDIF
  674. $!
  675. $!
  676. $! Writing TIFF$SHR.OPT file to build TOOLS
  677. $ IF (SHARED.GT.0)
  678. $ THEN
  679. $ OPEN/WRITE OUT TIFF$SHR.OPT
  680. $ WRITE OUT "[]TIFF/LIB"
  681. $ WRITE OUT "[-.PORT]LIBPORT/LIB"
  682. $ WRITE OUT JPEG_LIBRARY_PATH
  683. $ WRITE OUT "ZLIB:LIBZ/LIB"
  684. $ CLOSE OUT
  685. $ ENDIF
  686. $!
  687. $!
  688. $! Writing OPT.OPT file to build TOOLS
  689. $OPEN/WRITE OUT OPT.OPT
  690. $ IF (SHARED.GT.0)
  691. $ THEN
  692. $ WRITE OUT "[-.LIBTIFF]TIFF$SHR/SHARE"
  693. $ WRITE OUT JPEG_LIBRARY_PATH
  694. $ ELSE
  695. $ WRITE OUT "[-.LIBTIFF]TIFF/LIB"
  696. $ WRITE OUT "[-.PORT]LIBPORT/LIB"
  697. $ WRITE OUT JPEG_LIBRARY_PATH
  698. $ ENDIF
  699. $ WRITE OUT "ZLIB:LIBZ/LIB"
  700. $CLOSE OUT
  701. $!
  702. $!
  703. $COPY SYS$INPUT [.LIBTIFF]DESCRIP.MMS
  704. # (c) Alexey Chupahin 22-NOV-2007
  705. # OpenVMS 7.3-1, DEC 2000 mod.300
  706. # OpenVMS 8.3, HP rx1620
  707. # Makefile for DEC C compilers.
  708. #
  709. INCL = /INCLUDE=(JPEG,ZLIB,[])
  710. CFLAGS = $(INCL)
  711. OBJ_SYSDEP_MODULE = tif_vms.obj
  712. OBJ = \
  713. tif_aux.obj,\
  714. tif_close.obj,\
  715. tif_codec.obj,\
  716. tif_color.obj,\
  717. tif_compress.obj,\
  718. tif_dir.obj,\
  719. tif_dirinfo.obj,\
  720. tif_dirread.obj,\
  721. tif_dirwrite.obj,\
  722. tif_dumpmode.obj,\
  723. tif_error.obj,\
  724. tif_extension.obj,\
  725. tif_fax3.obj,\
  726. tif_fax3sm.obj,\
  727. tif_flush.obj,\
  728. tif_getimage.obj,\
  729. tif_jbig.obj,\
  730. tif_jpeg.obj,\
  731. tif_luv.obj,\
  732. tif_lzw.obj,\
  733. tif_next.obj,\
  734. tif_ojpeg.obj,\
  735. tif_open.obj,\
  736. tif_packbits.obj,\
  737. tif_pixarlog.obj,\
  738. tif_predict.obj,\
  739. tif_print.obj,\
  740. tif_read.obj,\
  741. tif_strip.obj,\
  742. tif_swab.obj,\
  743. tif_thunder.obj,\
  744. tif_tile.obj,\
  745. tif_version.obj,\
  746. tif_warning.obj,\
  747. tif_write.obj,\
  748. tif_zip.obj, $(OBJ_SYSDEP_MODULE)
  749. $IF (SHARED.GT.0)
  750. $ THEN
  751. $ APP SYS$INPUT [.LIBTIFF]DESCRIP.MMS
  752. ALL : tiff.olb, tiff$shr.exe
  753. $WRITE SYS$OUTPUT "Done"
  754. tiff$shr.exe : tiff.olb
  755. LINK/SHARE=TIFF$SHR.EXE TIF_AUX,[-]TIFF$DEF/OPT, [-]TIFF$SHR/OPT
  756. COPY TIFF$SHR.EXE SYS$SHARE
  757. PURGE SYS$SHARE:TIFF$SHR.EXE
  758. $ ELSE
  759. $ APP SYS$INPUT [.LIBTIFF]DESCRIP.MMS
  760. ALL : tiff.olb
  761. $WRITE SYS$OUTPUT "Done"
  762. $ENDIF
  763. $!
  764. $!
  765. $ APP SYS$INPUT [.LIBTIFF]DESCRIP.MMS
  766. tiff.olb : $(OBJ)
  767. lib/crea tiff.olb $(OBJ)
  768. #tif_config.h : tif_config.h-vms
  769. # copy tif_config.h-vms tif_config.h
  770. #
  771. #tiffconf.h : tiffconf.h-vms
  772. # copy tiffconf.h-vms tiffconf.h
  773. tif_aux.obj : tif_aux.c
  774. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  775. tif_close.obj : tif_close.c
  776. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  777. tif_codec.obj : tif_codec.c
  778. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  779. tif_color.obj : tif_color.c
  780. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  781. tif_compress.obj : tif_compress.c
  782. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  783. tif_dir.obj : tif_dir.c
  784. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  785. tif_dirinfo.obj : tif_dirinfo.c
  786. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  787. tif_dirread.obj : tif_dirread.c
  788. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  789. tif_dirwrite.obj : tif_dirwrite.c
  790. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  791. tif_dumpmode.obj : tif_dumpmode.c
  792. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  793. tif_error.obj : tif_error.c
  794. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  795. tif_extension.obj : tif_extension.c
  796. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  797. tif_fax3.obj : tif_fax3.c
  798. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  799. tif_fax3sm.obj : tif_fax3sm.c
  800. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  801. tif_flush.obj : tif_flush.c
  802. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  803. tif_getimage.obj : tif_getimage.c
  804. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  805. tif_jbig.obj : tif_jbig.c
  806. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  807. tif_jpeg.obj : tif_jpeg.c
  808. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  809. tif_luv.obj : tif_luv.c
  810. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  811. tif_lzw.obj : tif_lzw.c
  812. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  813. tif_next.obj : tif_next.c
  814. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  815. tif_ojpeg.obj : tif_ojpeg.c
  816. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  817. tif_open.obj : tif_open.c
  818. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  819. tif_packbits.obj : tif_packbits.c
  820. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  821. tif_pixarlog.obj : tif_pixarlog.c
  822. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  823. tif_predict.obj : tif_predict.c
  824. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  825. tif_print.obj : tif_print.c
  826. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  827. tif_read.obj : tif_read.c
  828. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  829. tif_strip.obj : tif_strip.c
  830. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  831. tif_swab.obj : tif_swab.c
  832. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  833. tif_thunder.obj : tif_thunder.c
  834. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  835. tif_tile.obj : tif_tile.c
  836. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  837. tif_unix.obj : tif_unix.c
  838. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  839. tif_version.obj : tif_version.c
  840. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  841. tif_warning.obj : tif_warning.c
  842. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  843. tif_write.obj : tif_write.c
  844. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  845. tif_zip.obj : tif_zip.c
  846. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  847. clean :
  848. del *.obj;*
  849. del *.olb;*
  850. $!
  851. $!
  852. $!
  853. $COPY SYS$INPUT [.TOOLS]DESCRIP.MMS
  854. # (c) Alexey Chupahin 22-NOV-2007
  855. # OpenVMS 7.3-1, DEC 2000 mod.300
  856. # OpenVMS 8.3, HP rx1620
  857. INCL = /INCL=([],[-.LIBTIFF])
  858. CFLAGS = $(INCL)
  859. LIBS = [-]OPT/OPT
  860. OBJ=\
  861. bmp2tiff.exe,\
  862. fax2ps.exe,\
  863. fax2tiff.exe,\
  864. gif2tiff.exe,\
  865. pal2rgb.exe,\
  866. ppm2tiff.exe,\
  867. ras2tiff.exe,\
  868. raw2tiff.exe,\
  869. rgb2ycbcr.exe,\
  870. thumbnail.exe,\
  871. tiff2bw.exe,\
  872. tiff2pdf.exe,\
  873. tiff2ps.exe,\
  874. tiff2rgba.exe,\
  875. tiffcmp.exe,\
  876. tiffcp.exe,\
  877. tiffcrop.exe,\
  878. tiffdither.exe,\
  879. tiffdump.exe,\
  880. tiffinfo.exe,\
  881. tiffmedian.exe,\
  882. tiffset.exe,\
  883. tiffsplit.exe,\
  884. ycbcr.exe
  885. all : $(OBJ)
  886. $!
  887. bmp2tiff.obj : bmp2tiff.c
  888. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  889. bmp2tiff.exe : bmp2tiff.obj
  890. LINK/EXE=$(MMS$TARGET) $(MMS$SOURCE), $(LIBS)
  891. fax2ps.obj : fax2ps.c
  892. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  893. fax2ps.exe : fax2ps.obj
  894. LINK/EXE=$(MMS$TARGET) $(MMS$SOURCE), $(LIBS)
  895. fax2tiff.obj : fax2tiff.c
  896. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  897. fax2tiff.exe : fax2tiff.obj
  898. LINK/EXE=$(MMS$TARGET) $(MMS$SOURCE), $(LIBS)
  899. gif2tiff.obj : gif2tiff.c
  900. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  901. gif2tiff.exe : gif2tiff.obj
  902. LINK/EXE=$(MMS$TARGET) $(MMS$SOURCE), $(LIBS)
  903. pal2rgb.obj : pal2rgb.c
  904. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  905. pal2rgb.exe : pal2rgb.obj
  906. LINK/EXE=$(MMS$TARGET) $(MMS$SOURCE), $(LIBS)
  907. ppm2tiff.obj : ppm2tiff.c
  908. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  909. ppm2tiff.exe : ppm2tiff.obj
  910. LINK/EXE=$(MMS$TARGET) $(MMS$SOURCE), $(LIBS)
  911. ras2tiff.obj : ras2tiff.c
  912. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  913. ras2tiff.exe : ras2tiff.obj
  914. LINK/EXE=$(MMS$TARGET) $(MMS$SOURCE), $(LIBS)
  915. raw2tiff.obj : raw2tiff.c
  916. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  917. raw2tiff.exe : raw2tiff.obj
  918. LINK/EXE=$(MMS$TARGET) $(MMS$SOURCE), $(LIBS)
  919. rgb2ycbcr.obj : rgb2ycbcr.c
  920. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  921. rgb2ycbcr.exe : rgb2ycbcr.obj
  922. LINK/EXE=$(MMS$TARGET) $(MMS$SOURCE), $(LIBS)
  923. sgi2tiff.obj : sgi2tiff.c
  924. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  925. sgi2tiff.exe : sgi2tiff.obj
  926. LINK/EXE=$(MMS$TARGET) $(MMS$SOURCE), $(LIBS)
  927. sgisv.obj : sgisv.c
  928. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  929. sgisv.exe : sgisv.obj
  930. LINK/EXE=$(MMS$TARGET) $(MMS$SOURCE), $(LIBS)
  931. thumbnail.obj : thumbnail.c
  932. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  933. thumbnail.exe : thumbnail.obj
  934. LINK/EXE=$(MMS$TARGET) $(MMS$SOURCE), $(LIBS)
  935. tiff2bw.obj : tiff2bw.c
  936. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  937. tiff2bw.exe : tiff2bw.obj
  938. LINK/EXE=$(MMS$TARGET) $(MMS$SOURCE), $(LIBS)
  939. tiff2pdf.obj : tiff2pdf.c
  940. $(CC) $(CFLAGS) /NOWARN $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  941. tiff2pdf.exe : tiff2pdf.obj
  942. LINK/EXE=$(MMS$TARGET) $(MMS$SOURCE), $(LIBS)
  943. tiff2ps.obj : tiff2ps.c
  944. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  945. tiff2ps.exe : tiff2ps.obj
  946. LINK/EXE=$(MMS$TARGET) $(MMS$SOURCE), $(LIBS)
  947. tiff2rgba.obj : tiff2rgba.c
  948. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  949. tiff2rgba.exe : tiff2rgba.obj
  950. LINK/EXE=$(MMS$TARGET) $(MMS$SOURCE), $(LIBS)
  951. tiffcmp.obj : tiffcmp.c
  952. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  953. tiffcmp.exe : tiffcmp.obj
  954. LINK/EXE=$(MMS$TARGET) $(MMS$SOURCE), $(LIBS)
  955. tiffcp.obj : tiffcp.c
  956. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  957. tiffcp.exe : tiffcp.obj
  958. LINK/EXE=$(MMS$TARGET) $(MMS$SOURCE), $(LIBS)
  959. tiffcrop.obj : tiffcrop.c
  960. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  961. tiffcrop.exe : tiffcrop.obj
  962. LINK/EXE=$(MMS$TARGET) $(MMS$SOURCE), $(LIBS)
  963. tiffdither.obj : tiffdither.c
  964. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  965. tiffdither.exe : tiffdither.obj
  966. LINK/EXE=$(MMS$TARGET) $(MMS$SOURCE), $(LIBS)
  967. tiffdump.obj : tiffdump.c
  968. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  969. tiffdump.exe : tiffdump.obj
  970. LINK/EXE=$(MMS$TARGET) $(MMS$SOURCE), $(LIBS)
  971. tiffgt.obj : tiffgt.c
  972. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  973. tiffgt.exe : tiffgt.obj
  974. LINK/EXE=$(MMS$TARGET) $(MMS$SOURCE), $(LIBS)
  975. tiffinfo.obj : tiffinfo.c
  976. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  977. tiffinfo.exe : tiffinfo.obj
  978. LINK/EXE=$(MMS$TARGET) $(MMS$SOURCE), $(LIBS)
  979. tiffmedian.obj : tiffmedian.c
  980. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  981. tiffmedian.exe : tiffmedian.obj
  982. LINK/EXE=$(MMS$TARGET) $(MMS$SOURCE), $(LIBS)
  983. tiffset.obj : tiffset.c
  984. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  985. tiffset.exe : tiffset.obj
  986. LINK/EXE=$(MMS$TARGET) $(MMS$SOURCE), $(LIBS)
  987. tiffsplit.obj : tiffsplit.c
  988. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  989. tiffsplit.exe : tiffsplit.obj
  990. LINK/EXE=$(MMS$TARGET) $(MMS$SOURCE), $(LIBS)
  991. ycbcr.obj : ycbcr.c
  992. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  993. ycbcr.exe : ycbcr.obj
  994. LINK/EXE=$(MMS$TARGET) $(MMS$SOURCE), $(LIBS)
  995. CLEAN :
  996. DEL ALL.;*
  997. DEL *.OBJ;*
  998. DEL *.EXE;*
  999. $!
  1000. $!
  1001. $!
  1002. $!copiing and patching TIFF_CONF.H, TIF_CONFIG.H
  1003. $!
  1004. $CURRENT = F$ENVIRONMENT (""DEFAULT"")
  1005. $CURRENT[F$LOCATE("]",CURRENT),9]:=".LIBTIFF]"
  1006. $WRITE SYS$OUTPUT "Creating TIFFCONF.H and TIF_CONFIG.H"
  1007. $COPY SYS$INPUT 'CURRENT'TIFFCONF.H
  1008. /*
  1009. Configuration defines for installed libtiff.
  1010. This file maintained for backward compatibility. Do not use definitions
  1011. from this file in your programs.
  1012. */
  1013. #ifndef _TIFFCONF_
  1014. #define _TIFFCONF_
  1015. /* Define to 1 if the system has the type `int16'. */
  1016. //#define HAVE_INT16
  1017. /* Define to 1 if the system has the type `int32'. */
  1018. //#define HAVE_INT32
  1019. /* Define to 1 if the system has the type `int8'. */
  1020. //#define HAVE_INT8
  1021. /* The size of a `int', as computed by sizeof. */
  1022. #define SIZEOF_INT 4
  1023. /* The size of a `long', as computed by sizeof. */
  1024. #define SIZEOF_LONG 4
  1025. /* Compatibility stuff. */
  1026. /* Define as 0 or 1 according to the floating point format suported by the
  1027. machine */
  1028. #ifdef __IEEE_FLOAT
  1029. #define HAVE_IEEEFP 1
  1030. #endif
  1031. #define HAVE_GETOPT 1
  1032. /* Set the native cpu bit order (FILLORDER_LSB2MSB or FILLORDER_MSB2LSB) */
  1033. #define HOST_FILLORDER FILLORDER_LSB2MSB
  1034. /* Native cpu byte order: 1 if big-endian (Motorola) or 0 if little-endian
  1035. (Intel) */
  1036. #define HOST_BIGENDIAN 0
  1037. /* Support CCITT Group 3 & 4 algorithms */
  1038. #define CCITT_SUPPORT 1
  1039. /* Support LogLuv high dynamic range encoding */
  1040. #define LOGLUV_SUPPORT 1
  1041. /* Support LZW algorithm */
  1042. #define LZW_SUPPORT 1
  1043. /* Support NeXT 2-bit RLE algorithm */
  1044. #define NEXT_SUPPORT 1
  1045. /* Support Old JPEG compresson (read contrib/ojpeg/README first! Compilation
  1046. fails with unpatched IJG JPEG library) */
  1047. /* Support Macintosh PackBits algorithm */
  1048. #define PACKBITS_SUPPORT 1
  1049. /* Support Pixar log-format algorithm (requires Zlib) */
  1050. #define PIXARLOG_SUPPORT 1
  1051. /* Support ThunderScan 4-bit RLE algorithm */
  1052. #define THUNDER_SUPPORT 1
  1053. /* Support Deflate compression */
  1054. /* #undef ZIP_SUPPORT */
  1055. /* Support strip chopping (whether or not to convert single-strip uncompressed
  1056. images to mutiple strips of ~8Kb to reduce memory usage) */
  1057. #define STRIPCHOP_DEFAULT TIFF_STRIPCHOP
  1058. /* Enable SubIFD tag (330) support */
  1059. #define SUBIFD_SUPPORT 1
  1060. /* Treat extra sample as alpha (default enabled). The RGBA interface will
  1061. treat a fourth sample with no EXTRASAMPLE_ value as being ASSOCALPHA. Many
  1062. packages produce RGBA files but don't mark the alpha properly. */
  1063. #define DEFAULT_EXTRASAMPLE_AS_ALPHA 1
  1064. /* Pick up YCbCr subsampling info from the JPEG data stream to support files
  1065. lacking the tag (default enabled). */
  1066. #define CHECK_JPEG_YCBCR_SUBSAMPLING 1
  1067. /*
  1068. * Feature support definitions.
  1069. * XXX: These macros are obsoleted. Don't use them in your apps!
  1070. * Macros stays here for backward compatibility and should be always defined.
  1071. */
  1072. #define COLORIMETRY_SUPPORT
  1073. #define YCBCR_SUPPORT
  1074. #define CMYK_SUPPORT
  1075. #define ICC_SUPPORT
  1076. #define PHOTOSHOP_SUPPORT
  1077. #define IPTC_SUPPORT
  1078. #endif /* _TIFFCONF_ */
  1079. $COPY SYS$INPUT 'CURRENT'TIF_CONFIG.H
  1080. /* Define to 1 if you have the <assert.h> header file. */
  1081. #ifndef HAVE_GETOPT
  1082. # define HAVE_GETOPT 1
  1083. #endif
  1084. #define HAVE_ASSERT_H 1
  1085. /* Define to 1 if you have the <fcntl.h> header file. */
  1086. #define HAVE_FCNTL_H 1
  1087. /* Define as 0 or 1 according to the floating point format suported by the
  1088. machine */
  1089. #ifdef __IEEE_FLOAT
  1090. #define HAVE_IEEEFP 1
  1091. #endif
  1092. #define HAVE_UNISTD_H 1
  1093. #define HAVE_STRING_H 1
  1094. /* Define to 1 if you have the <sys/types.h> header file. */
  1095. #define HAVE_SYS_TYPES_H 1
  1096. /* Define to 1 if you have the <io.h> header file. */
  1097. //#define HAVE_IO_H 1
  1098. /* Define to 1 if you have the <search.h> header file. */
  1099. //#define HAVE_SEARCH_H 1
  1100. /* The size of a `int', as computed by sizeof. */
  1101. #define SIZEOF_INT 4
  1102. /* The size of a `long', as computed by sizeof. */
  1103. #define SIZEOF_LONG 4
  1104. /* Set the native cpu bit order */
  1105. #define HOST_FILLORDER FILLORDER_LSB2MSB
  1106. /* Define to 1 if your processor stores words with the most significant byte
  1107. first (like Motorola and SPARC, unlike Intel and VAX). */
  1108. /* #undef WORDS_BIGENDIAN */
  1109. /* Define to `__inline__' or `__inline' if that's what the C compiler
  1110. calls it, or to nothing if 'inline' is not supported under any name. */
  1111. /*
  1112. #ifndef __cplusplus
  1113. # ifndef inline
  1114. # define inline __inline
  1115. # endif
  1116. #endif
  1117. */
  1118. /* Support CCITT Group 3 & 4 algorithms */
  1119. #define CCITT_SUPPORT 1
  1120. /* Pick up YCbCr subsampling info from the JPEG data stream to support files
  1121. lacking the tag (default enabled). */
  1122. #define CHECK_JPEG_YCBCR_SUBSAMPLING 1
  1123. /* Support C++ stream API (requires C++ compiler) */
  1124. #define CXX_SUPPORT 1
  1125. /* Treat extra sample as alpha (default enabled). The RGBA interface will
  1126. treat a fourth sample with no EXTRASAMPLE_ value as being ASSOCALPHA. Many
  1127. packages produce RGBA files but don't mark the alpha properly. */
  1128. #define DEFAULT_EXTRASAMPLE_AS_ALPHA 1
  1129. /* little Endian */
  1130. #define HOST_BIGENDIAN 0
  1131. #define JPEG_SUPPORT 1
  1132. #define LOGLUV_SUPPORT 1
  1133. /* Support LZW algorithm */
  1134. #define LZW_SUPPORT 1
  1135. /* Support Microsoft Document Imaging format */
  1136. #define MDI_SUPPORT 1
  1137. /* Support NeXT 2-bit RLE algorithm */
  1138. #define NEXT_SUPPORT 1
  1139. #define OJPEG_SUPPORT 1
  1140. /* Name of package */
  1141. #define PACKAGE "tiff"
  1142. /* Define to the address where bug reports for this package should be sent. */
  1143. #define PACKAGE_BUGREPORT "tiff@lists.maptools.org"
  1144. /* Define to the full name of this package. */
  1145. #define PACKAGE_NAME "LibTIFF Software"
  1146. /* Define to the full name and version of this package. */
  1147. #define PACKAGE_STRING "LibTIFF Software 3.9.0beta for VMS"
  1148. /* Define to the one symbol short name of this package. */
  1149. #define PACKAGE_TARNAME "tiff"
  1150. $PURGE 'CURRENT'TIFFCONF.H
  1151. $PURGE 'CURRENT'TIF_CONFIG.H
  1152. $OPEN/APPEND OUT 'CURRENT'TIF_CONFIG.H
  1153. $IF HAVE_LFIND.EQ.1
  1154. $ THEN
  1155. $ WRITE OUT "#define HAVE_SEARCH_H 1"
  1156. $ ELSE
  1157. $ WRITE OUT "#undef HAVE_SEARCH_H"
  1158. $ENDIF
  1159. $CLOSE OUT
  1160. $!
  1161. $!
  1162. $WRITE SYS$OUTPUT " "
  1163. $WRITE SYS$OUTPUT " "
  1164. $WRITE SYS$OUTPUT "Now you can type @BUILD "
  1165. $!
  1166. $EXIT:
  1167. $DEFINE SYS$ERROR _NLA0:
  1168. $DEFINE SYS$OUTPUT _NLA0:
  1169. $DEL TEST.OBJ;*
  1170. $DEL TEST.C;*
  1171. $DEL TEST.EXE;*
  1172. $DEAS SYS$ERROR
  1173. $DEAS SYS$OUTPUT