home *** CD-ROM | disk | FTP | other *** search
Makefile | 1992-04-26 | 9.5 KB | 273 lines |
- # MMS Description file for xv (v2.00)
- # Written by Rick Dyson (dyson@iowasp.physics.uiowa.edu)
- # Last Modified: 14-JAN-1992
- #
- # Modeled after the original Unix Makefile for xv
- # Most of the Unix comments have been left intact to help debug any
- # problems.
-
- # your C compiler (and options) of choice
- #
- # if compiling on a Mips machine, try this:
- # CCOPTS = -Olimit 600 -systype bsd43
-
- # Remember: if you change the C compiler (to gcc, or whatever), be sure to
- # do the same thing to the Makefile in the 'jpeg' subdirectory
-
- #CC = cc
- #CCOPTS = -O
-
- ################ CONFIGURATION OPTIONS #################
-
- # if, for whatever reason, you're unable to get the JPEG library to compile
- # on your machine, *COMMENT OUT* the following lines.
- #
- # Also, comment out the JPEGLIB dependancy below.
- #
- # VMS MMS USERS!!!
- #
- # if you don't use the JPEG package as it is supplied with XV, you
- # will need to fill in the complete directory specifications for
- # BOTH "JPEGDIR" and "XVDIR"!!
- #
- XVDIR = []
- JPEGDIR = [.JPEG]
- JPEG = ,HAVE_JPEG
- JPEGLIB = $(JPEGDIR)LIBJPEG.OLB
- JPEGINCLUDE = ,$(JPEGDIR)
-
-
- # if you are running under DXWM, I pity you. XV doesn't work correctly
- # under DXWM. You should probably be running MWM. However, if such is
- # not a valid option for you, try uncommenting the following line. The
- # behavior won't be 'right', but it will be less 'wrong'.
- #DXWM = -DDXWM
-
-
- # if you are running on a SysV-based machine, such as HP, Silicon Graphics,
- # etc, uncomment the following line to get you most of the way there.
- #
- #UNIX = -DSVR4
-
-
- # If you are running on a POSIX-compatible machine, such as an
- # IBM RS/6000, you MAY need to uncomment the 'NEED_DIRENT' line.
- # To determine if such is the case, do a 'man readdir' on your machine. If
- # readdir() returns a pointer to 'struct direct', you will not have
- # to change anything. If, however, readdir() returns a pointer to
- # 'struct dirent', you will have to add the '-DDIRENT' to CFLAGS
- #
- # One note: folks using an IBM RS/6000 don't have to touch this line.
- # I check for '6000'-hood in xv.h
- #
- #NEED_DIRENT = DIRENT
-
-
- #
- # for UMAX V by Encore Computers uncomment the following line for
- # the portable c compiler, system specific definitions and
- # location of local X11 library(if site specific, modify -L option)
- # No other switches should be necessary
- #
- #UMAX = -q extensions=pcc_c -D__UMAXV__ -L/usr2/usr/lib/X11 -DSVR4 -DDIRENT
-
-
- # If your machine doesn't have the 'strchr', 'memset' and 'memcpy' functions,
- # but does have 'bcopy', uncomment the following line. (And get a better
- # operating system!)
- #
- #USEMEM = -DNEED_MEMROUTINES
-
-
- # IF YOUR MACHINE DOESN'T HAVE 'vprintf()' OR 'vsprintf()'
- #
- # Vax BSD and IBM AOS don't have vprintf or vsprintf.
- # Note that our local library versions of sprintf have been updated
- # to return int, the number of characters in the formatted string,
- # whereas the versions in stock 4.3BSD do not so return. You may
- # have to remove the "-DINTSPRINTF" below if you're compiling for
- # stock 4.3BSD or for some other Vax or RT library package where
- # sprintf returns char *.
- #
- # Also, I define NOVOID on the Vax because I'm using pcc to compile.
- # If you use gcc or some other better compiler, this should not be
- # necessary. I define NOSTDHDRS on the RT because we don't have
- # standard ANSI header files installed for the RT, even though the RT
- # compiler claims to be ANSI-compliant.
- #
- # (for BSD 4.3 VAX, uncomment the following line)
- #VPRINTF = -DNEED_VPRINTF -DINTSPRINTF -DLONGINT -DNOVOID
- # (for (stock) IBM RT AOS 4.3, uncomment the following line)
- #VPRINTF = -DNEED_VPRINTF -DLONGINT -DNOSTDHDRS
-
-
- # If your machine does not have the 'setitimer()' call, but does
- # have the 'usleep()' call, uncomment the following line:
- #
- #TIMERS = -DUSLEEP
- #
- # alternately, if your machine does not have EITHER the 'setitimer()' or
- # the 'usleep()' call, uncomment the following line:
- #
- #TIMERS = -DNOTIMER
-
-
- # If you are using an AT&T machine, uncomment the following line
- # If you have problems compiling xv.c and xvdir.c because of the DIR
- # reference in dirent.h, append '-DATT' to the following line:
- #
- #ATT = -DDIRENT -DUSLEEP -DATT
-
-
- # If you are using an HP running HPUX 7.0, uncomment the following line
- #
- #HPUX7 = -DSVR4 -DATT +Ns4000 -DHPUX7
-
-
- # For SCO and ODT machines, uncomment the following:
- #
- #SCO = -Dsco -DPOSIX -DNOTIMER
- #
- # Itimers will be in 3.2v3 (yeah!) but that won't be out in the public's
- # hands for a while.
- #
- # Also, you'll want to change LIBS to
- #
- # -lX11 -lm -lsocket -lmalloc -lc -lx
- #
- # -lx must be after -lc so you get the right directory routines.
- #
-
-
- # If you DON'T want support for the VICAR/PDS style of input images
- # that are on the NASA CD-ROM collection comment out the next line.
- PDS = ,WANT_PDS
-
-
- # For VMS USERS ONLY:
- #
- # There is a decompression program supplied which acts like the
- # standard Unix "uncompress" which is the default for XV but,
- # if you have and want to use the DECUS version of Martin Minow's
- # LZW Compress/Decompress package then you can easily use the
- # autosense decompress feature of XV.
- #
- # THIS MEANS THE FILE NAMES MUST END WITH EITHER ".Z" OR "_Z"
- #
- # This means you will ALSO need to edit the XV.H file to get
- # the pointer to your location of LZDCMP defined.
- # If this is true for you, uncomment the next line.
- #LZW = ,HAVE_LZW
-
- DEFS = /Define = (VMS$(JPEG)$(PDS)$(LZW))
- INCS = /Include = ([]$(JPEGINCLUDE))
-
- OPTIMIZE = /Optimize
- DEBUG = /NoDebug
- CFLAGS = $(CFLAGS) $(DEFS) $(INCS) $(DEBUG) $(OPTIMIZE)
- LINKFLAGS = $(LINKFLAGS) $(DEBUG)
- OPTS = Sys$Disk:[]OPTIONS.OPT
- XVLIB = XVLIB.OLB
-
- BITMAPS = [.bitmaps]grasp [.bitmaps]penn [.bitmaps]down [.bitmaps]down1 \
- [.bitmaps]up [.bitmaps]up1 [.bitmaps]scrlgray [.bitmaps]gray50 \
- [.bitmaps]gray25 [.bitmaps]i_fifo [.bitmaps]i_chr [.bitmaps]i_dir \
- [.bitmaps]i_blk [.bitmaps]i_lnk [.bitmaps]i_sock [.bitmaps]i_reg \
- [.bitmaps]rb_off [.bitmaps]rb_on [.bitmaps]rb_off1 [.bitmaps]rb_on1 \
- [.bitmaps]fc_left [.bitmaps]fc_leftm [.bitmaps]fc_mid \
- [.bitmaps]fc_midm [.bitmaps]fc_right [.bitmaps]fc_rightm \
- [.bitmaps]fc_left1 [.bitmaps]fc_left1m [.bitmaps]fc_right1 \
- [.bitmaps]fc_right1m [.bitmaps]icon [.bitmaps]dial_cw1 \
- [.bitmaps]dial_cw2 [.bitmaps]dial_ccw1 [.bitmaps]dial_ccw2 \
- [.bitmaps]iconmask [.bitmaps]gf1_addh [.bitmaps]gf1_delh \
- [.bitmaps]gf1_line [.bitmaps]gf1_rst [.bitmaps]gf1_spln \
- [.bitmaps]gf1_gamma [.bitmaps]h_rotl [.bitmaps]h_rotr \
- [.bitmaps]h_sinc [.bitmaps]h_sdec [.bitmaps]h_flip [.bitmaps]cb_off \
- [.bitmaps]cb_on [.bitmaps]cb_off1 [.bitmaps]cb_on1 [.bitmaps]h_sat \
- [.bitmaps]h_desat [.bitmaps]root_weave [.bitmaps]cboard50 \
- [.bitmaps]mb_chk
-
- 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
-
- OBJS = 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 vms.obj vmsreaddir.obj \
- gifdecomp.obj gifmapf.obj pseudo_root.obj xvpds.obj
-
- 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
-
- MISC = readme changelog
-
- .first
- @- Define Sys Sys$Library
- @- Define X11 DECW$Include
-
- all : lib xv bggen help decompress
- @ Continue
-
- lib : $(XVLIB)
- @ Continue
-
- xv : xv.exe
- @ Continue
-
- bggen : bggen.exe
- @ Continue
-
- help : xv.hlb
- @ Continue
-
- decompress : decompress.exe vdcomp.exe
- @ Continue
-
- bggen.exe : bggen.obj $(XVLIB) $(OPTS)
- $(LINK) $(LINKFLAGS) bggen.obj,$(XVLIB)/Library,$(OPTS)/Option
-
- xv.exe : xv.obj bitmaps.h $(XVLIB) $(JPEGLIB) $(OPTS)
- $(LINK) $(LINKFLAGS) xv.obj,$(XVLIB)/Library,$(JPEGLIB)/Library,$(OPTS)/Option
-
- $(JPEGLIB) :
- Set Default $(JPEGDIR)
- $(MMS) $(MMSDEFAULTS) /Description = MAKEFILE.VMS LIBJPEG.OLB
- Set Default [-]
-
- $(XVLIB) : $(OBJS)
- If "''F$Search ("$(XVLIB)")'" .eqs. "" Then Library /Create $(XVLIB)
- Library /Replace $(XVLIB) $(OBJLIST)
-
- decompress.exe : decompress.obj
- $(LINK) $(LINKFLAGS) decompress.obj,$(OPTS)/Option
-
- vdcomp.exe : vdcomp.obj
- $(LINK) $(LINKFLAGS) vdcomp.obj,$(OPTS)/Option
-
- gifdecomp.obj : gifdecomp.mar
- $(MACRO) gifdecomp
-
- # various dependencies
- $(OBJS) : xv.h
- xv.obj : bitmaps.h
- xvbutt.obj : bitmaps.h
- xvctrl.obj : bitmaps.h
- xvdial.obj : bitmaps.h
- xvdir.obj : dirent.h
- xvgraf.obj : bitmaps.h
- xvinfo.obj : bitmaps.h
- xvmisc.obj : bitmaps.h
- xvscrl.obj : bitmaps.h
- argproc.obj : includes.h
- vmsreaddir.obj : dirent.h
- xvdflt.obj : [.bitmaps]xvpic_logo. [.bitmaps]xvpic_rev. [.bitmaps]xvpic_jhb.
- xvdflt.obj : [.bitmaps]xf_left. [.bitmaps]xf_right.
- xv.hlb : [.docs]xv.hlp
-
- bitmaps.h : $(BITMAPS)
- Set Default [.Bitmaps]
- - Copy $(BITMAPLIST) [-]bitmaps.h
- Set Default [-]
-
- clean :
- @- Purge
-