home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / msdos / c / xv221src / unsupt / vms / makefile.vms < prev    next >
Encoding:
Makefile  |  1992-04-26  |  9.5 KB  |  273 lines

  1. #    MMS Description file for xv (v2.00)
  2. #    Written by Rick Dyson (dyson@iowasp.physics.uiowa.edu)
  3. #    Last Modified: 14-JAN-1992
  4. #    
  5. #     Modeled after the original Unix Makefile for xv
  6. #    Most of the Unix comments have been left intact to help debug any
  7. #    problems.
  8.  
  9. # your C compiler (and options) of choice
  10. #
  11. # if compiling on a Mips machine, try this: 
  12. #    CCOPTS = -Olimit 600 -systype bsd43
  13.  
  14. # Remember:  if you change the C compiler (to gcc, or whatever), be sure to
  15. # do the same thing to the Makefile in the 'jpeg' subdirectory
  16.  
  17. #CC = cc
  18. #CCOPTS = -O
  19.  
  20. ################ CONFIGURATION OPTIONS #################
  21.  
  22. # if, for whatever reason, you're unable to get the JPEG library to compile
  23. # on your machine, *COMMENT OUT* the following lines.
  24. #
  25. # Also, comment out the JPEGLIB dependancy below.
  26. #
  27. #  VMS MMS USERS!!!
  28. #
  29. #     if you don't use the JPEG package as it is supplied with XV, you 
  30. #     will need to fill in the complete directory specifications for
  31. #    BOTH "JPEGDIR" and "XVDIR"!!
  32. #
  33. XVDIR = []
  34. JPEGDIR = [.JPEG]
  35. JPEG = ,HAVE_JPEG
  36. JPEGLIB = $(JPEGDIR)LIBJPEG.OLB
  37. JPEGINCLUDE = ,$(JPEGDIR)
  38.  
  39.  
  40. # if you are running under DXWM, I pity you.  XV doesn't work correctly
  41. # under DXWM.  You should probably be running MWM.  However, if such is
  42. # not a valid option for you, try uncommenting the following line.  The
  43. # behavior won't be 'right', but it will be less 'wrong'.
  44. #DXWM = -DDXWM
  45.  
  46.  
  47. # if you are running on a SysV-based machine, such as HP, Silicon Graphics,
  48. # etc, uncomment the following line to get you most of the way there.  
  49. #
  50. #UNIX = -DSVR4
  51.  
  52.  
  53. # If you are running on a POSIX-compatible machine, such as an
  54. # IBM RS/6000, you MAY need to uncomment the 'NEED_DIRENT' line.
  55. # To determine if such is the case, do a 'man readdir' on your machine.  If
  56. # readdir() returns a pointer to 'struct direct', you will not have
  57. # to change anything.  If, however, readdir() returns a pointer to
  58. # 'struct dirent', you will have to add the '-DDIRENT' to CFLAGS
  59. #
  60. # One note: folks using an IBM RS/6000 don't have to touch this line.  
  61. #           I check for '6000'-hood in xv.h
  62. #
  63. #NEED_DIRENT = DIRENT
  64.  
  65.  
  66. #
  67. # for UMAX V by Encore Computers uncomment the following line for
  68. # the portable c compiler, system specific definitions and
  69. # location of local X11 library(if site specific, modify -L option)
  70. # No other switches should be necessary
  71. #
  72. #UMAX =  -q extensions=pcc_c -D__UMAXV__ -L/usr2/usr/lib/X11 -DSVR4 -DDIRENT
  73.  
  74.  
  75. # If your machine doesn't have the 'strchr', 'memset' and 'memcpy' functions,
  76. # but does have 'bcopy', uncomment the following line.  (And get a better 
  77. # operating system!)
  78. #
  79. #USEMEM = -DNEED_MEMROUTINES
  80.  
  81.  
  82. # IF YOUR MACHINE DOESN'T HAVE 'vprintf()' OR 'vsprintf()'
  83. #
  84. # Vax BSD and IBM AOS don't have vprintf or vsprintf.
  85. # Note that our local library versions of sprintf have been updated
  86. # to return int, the number of characters in the formatted string,
  87. # whereas the versions in stock 4.3BSD do not so return.  You may
  88. # have to remove the "-DINTSPRINTF" below if you're compiling for
  89. # stock 4.3BSD or for some other Vax or RT library package where
  90. # sprintf returns char *.
  91. #
  92. # Also, I define NOVOID on the Vax because I'm using pcc to compile.
  93. # If you use gcc or some other better compiler, this should not be
  94. # necessary.  I define NOSTDHDRS on the RT because we don't have
  95. # standard ANSI header files installed for the RT, even though the RT
  96. # compiler claims to be ANSI-compliant.
  97. #
  98. #  (for BSD 4.3 VAX, uncomment the following line)
  99. #VPRINTF = -DNEED_VPRINTF -DINTSPRINTF -DLONGINT -DNOVOID
  100. #  (for (stock) IBM RT AOS 4.3, uncomment the following line)
  101. #VPRINTF = -DNEED_VPRINTF -DLONGINT -DNOSTDHDRS
  102.  
  103.  
  104. # If your machine does not have the 'setitimer()' call, but does
  105. # have the 'usleep()' call, uncomment the following line:
  106. #
  107. #TIMERS = -DUSLEEP
  108. #
  109. # alternately, if your machine does not have EITHER the 'setitimer()' or
  110. # the 'usleep()' call, uncomment the following line:
  111. #
  112. #TIMERS = -DNOTIMER
  113.  
  114.  
  115. # If you are using an AT&T machine, uncomment the following line
  116. # If you have problems compiling xv.c and xvdir.c because of the DIR
  117. # reference in dirent.h, append '-DATT' to the following line:
  118. #
  119. #ATT = -DDIRENT -DUSLEEP -DATT
  120.  
  121.  
  122. # If you are using an HP running HPUX 7.0, uncomment the following line
  123. #
  124. #HPUX7 = -DSVR4 -DATT +Ns4000 -DHPUX7
  125.  
  126.  
  127. # For SCO and ODT machines, uncomment the following:
  128. #
  129. #SCO = -Dsco -DPOSIX -DNOTIMER
  130. #
  131. # Itimers will be in 3.2v3 (yeah!) but that won't be out in the public's
  132. # hands for a while.
  133. #
  134. # Also, you'll want to change LIBS to
  135. #
  136. #  -lX11 -lm -lsocket -lmalloc -lc -lx
  137. #
  138. # -lx must be after -lc so you get the right directory routines.
  139. #
  140.  
  141.  
  142. #    If you DON'T want support for the VICAR/PDS style of input images
  143. #    that are on the NASA CD-ROM collection comment out the next line.
  144. PDS = ,WANT_PDS
  145.  
  146.  
  147. #    For VMS USERS ONLY:
  148. #
  149. #    There is a decompression program supplied which acts like the 
  150. #    standard Unix "uncompress" which is the default for XV but,
  151. #    if you have and want to use the DECUS version of Martin Minow's
  152. #    LZW Compress/Decompress package then you can easily use the
  153. #    autosense decompress feature of XV.
  154. #
  155. #    THIS MEANS THE FILE NAMES MUST END WITH EITHER ".Z" OR "_Z"
  156. #
  157. #    This means you will ALSO need to edit the XV.H file to get 
  158. #    the pointer to your location of LZDCMP defined.
  159. #    If this is true for you, uncomment the next line.
  160. #LZW = ,HAVE_LZW
  161.  
  162. DEFS = /Define = (VMS$(JPEG)$(PDS)$(LZW))
  163. INCS = /Include = ([]$(JPEGINCLUDE))
  164.  
  165. OPTIMIZE = /Optimize
  166. DEBUG = /NoDebug
  167. CFLAGS = $(CFLAGS) $(DEFS) $(INCS) $(DEBUG) $(OPTIMIZE)
  168. LINKFLAGS = $(LINKFLAGS) $(DEBUG)
  169. OPTS = Sys$Disk:[]OPTIONS.OPT
  170. XVLIB = XVLIB.OLB
  171.  
  172. BITMAPS = [.bitmaps]grasp [.bitmaps]penn [.bitmaps]down [.bitmaps]down1 \
  173.       [.bitmaps]up [.bitmaps]up1 [.bitmaps]scrlgray [.bitmaps]gray50 \
  174.       [.bitmaps]gray25 [.bitmaps]i_fifo [.bitmaps]i_chr [.bitmaps]i_dir \
  175.       [.bitmaps]i_blk [.bitmaps]i_lnk [.bitmaps]i_sock [.bitmaps]i_reg \
  176.       [.bitmaps]rb_off [.bitmaps]rb_on [.bitmaps]rb_off1 [.bitmaps]rb_on1 \
  177.       [.bitmaps]fc_left [.bitmaps]fc_leftm [.bitmaps]fc_mid \
  178.       [.bitmaps]fc_midm [.bitmaps]fc_right [.bitmaps]fc_rightm \
  179.       [.bitmaps]fc_left1 [.bitmaps]fc_left1m [.bitmaps]fc_right1 \
  180.       [.bitmaps]fc_right1m [.bitmaps]icon [.bitmaps]dial_cw1 \
  181.       [.bitmaps]dial_cw2 [.bitmaps]dial_ccw1 [.bitmaps]dial_ccw2 \
  182.       [.bitmaps]iconmask [.bitmaps]gf1_addh [.bitmaps]gf1_delh \
  183.       [.bitmaps]gf1_line [.bitmaps]gf1_rst [.bitmaps]gf1_spln \
  184.       [.bitmaps]gf1_gamma [.bitmaps]h_rotl [.bitmaps]h_rotr \
  185.       [.bitmaps]h_sinc [.bitmaps]h_sdec [.bitmaps]h_flip [.bitmaps]cb_off \
  186.       [.bitmaps]cb_on [.bitmaps]cb_off1 [.bitmaps]cb_on1 [.bitmaps]h_sat \
  187.           [.bitmaps]h_desat [.bitmaps]root_weave [.bitmaps]cboard50 \
  188.       [.bitmaps]mb_chk
  189.  
  190. BITMAPLIST =     grasp,penn,down,down1,up,up1,scrlgray,gray50,gray25,i_fifo,i_chr,i_dir,i_blk,i_lnk,i_sock,i_reg,rb_off,rb_on,rb_off1,rb_on1,fc_left,fc_leftm,fc_mid,fc_midm,fc_right,fc_rightm,fc_left1,fc_left1m,fc_right1,fc_right1m,icon,dial_cw1,dial_cw2,dial_ccw1,dial_ccw2,iconmask,gf1_addh,gf1_delh,gf1_line,gf1_rst,gf1_spln,gf1_gamma,h_rotl,h_rotr,h_sinc,h_sdec,h_flip,cb_off,cb_on,cb_off1,cb_on1,h_sat,h_desat,root_weave,cboard50,mb_chk
  191.  
  192. OBJS =     xvevent.obj xvroot.obj xvmisc.obj xvimage.obj xvcolor.obj \
  193.     xvsmooth.obj xv24to8.obj xvgif.obj xvpm.obj xvinfo.obj xvctrl.obj \
  194.     xvscrl.obj xvgifwr.obj xvdir.obj xvbutt.obj xvpbm.obj xvxbm.obj \
  195.     xvgam.obj xvdial.obj xvgraf.obj xvsunras.obj xvjpeg.obj xvps.obj \
  196.     xvpopup.obj xvdflt.obj argproc.obj vms.obj vmsreaddir.obj \
  197.     gifdecomp.obj gifmapf.obj pseudo_root.obj xvpds.obj
  198.  
  199. OBJLIST = xvevent.obj,xvroot.obj,xvmisc.obj,xvimage.obj,xvcolor.obj,xvsmooth.obj,xv24to8.obj,xvgif.obj,xvpm.obj,xvinfo.obj,xvctrl.obj,xvscrl.obj,xvgifwr.obj,xvdir.obj,xvbutt.obj,xvpbm.obj,xvxbm.obj,xvgam.obj,xvdial.obj,xvgraf.obj,xvsunras.obj,xvjpeg.obj,xvps.obj,xvpopup.obj,xvdflt.obj,argproc.obj,gifdecomp.obj,gifmapf.obj,vms.obj,vmsreaddir.obj,pseudo_root.obj,xvpds.obj
  200.  
  201. MISC = readme changelog
  202.  
  203. .first
  204.     @- Define Sys Sys$Library
  205.     @- Define X11 DECW$Include
  206.  
  207. all :         lib xv bggen help decompress
  208.     @ Continue
  209.  
  210. lib :       $(XVLIB)
  211.     @ Continue
  212.  
  213. xv :        xv.exe
  214.     @ Continue
  215.  
  216. bggen :        bggen.exe
  217.     @ Continue
  218.  
  219. help :        xv.hlb
  220.     @ Continue
  221.  
  222. decompress :    decompress.exe vdcomp.exe
  223.     @ Continue
  224.  
  225. bggen.exe :     bggen.obj $(XVLIB) $(OPTS)
  226.     $(LINK) $(LINKFLAGS) bggen.obj,$(XVLIB)/Library,$(OPTS)/Option
  227.     
  228. xv.exe :     xv.obj bitmaps.h $(XVLIB) $(JPEGLIB) $(OPTS)
  229.     $(LINK) $(LINKFLAGS) xv.obj,$(XVLIB)/Library,$(JPEGLIB)/Library,$(OPTS)/Option
  230.  
  231. $(JPEGLIB) :
  232.     Set Default $(JPEGDIR)
  233.     $(MMS) $(MMSDEFAULTS) /Description = MAKEFILE.VMS LIBJPEG.OLB
  234.     Set Default [-]
  235.  
  236. $(XVLIB) :    $(OBJS)
  237.         If "''F$Search ("$(XVLIB)")'" .eqs. "" Then Library /Create $(XVLIB)
  238.     Library /Replace $(XVLIB) $(OBJLIST)
  239.  
  240. decompress.exe :    decompress.obj
  241.     $(LINK) $(LINKFLAGS) decompress.obj,$(OPTS)/Option
  242.  
  243. vdcomp.exe :    vdcomp.obj
  244.     $(LINK) $(LINKFLAGS) vdcomp.obj,$(OPTS)/Option
  245.  
  246. gifdecomp.obj :    gifdecomp.mar
  247.     $(MACRO) gifdecomp
  248.  
  249. #    various dependencies
  250. $(OBJS) :           xv.h
  251. xv.obj :        bitmaps.h
  252. xvbutt.obj :          bitmaps.h
  253. xvctrl.obj :          bitmaps.h
  254. xvdial.obj :        bitmaps.h
  255. xvdir.obj :        dirent.h
  256. xvgraf.obj :        bitmaps.h
  257. xvinfo.obj :          bitmaps.h
  258. xvmisc.obj :          bitmaps.h
  259. xvscrl.obj :          bitmaps.h
  260. argproc.obj :        includes.h
  261. vmsreaddir.obj :    dirent.h
  262. xvdflt.obj :        [.bitmaps]xvpic_logo. [.bitmaps]xvpic_rev. [.bitmaps]xvpic_jhb.
  263. xvdflt.obj :        [.bitmaps]xf_left. [.bitmaps]xf_right.
  264. xv.hlb :        [.docs]xv.hlp
  265.  
  266. bitmaps.h :     $(BITMAPS)
  267.     Set Default [.Bitmaps]
  268.     - Copy $(BITMAPLIST) [-]bitmaps.h
  269.     Set Default [-]
  270.  
  271. clean :
  272.     @- Purge
  273.