1#
2# @(#)$Header: /mm2/home/cvs/bc-src/tgif/descrip.mms,v 1.1 2004/06/18 23:20:49 william Exp $
3#
4# VMS MAKEFILE (DESCRIP.MSS)
5# 25-MAR-91 GJC@MITECH.COM
6#
7# Before running this define these logical names:
8# $ DEFINE X11 DECW$INCLUDE
9# $ DEFINE SYS SYS$LIBRARY
10#
11# 24-NOV-97 Rolf Niepraschk, niepraschk@ptb.de
12#
13
14O = .O
15E = .EXE
16XBM = [.XBM]
17
18.SUFFIXES :   ! clear the suffix list first
19.SUFFIXES : $(X) $(O) .C
20.C$(O) :
21	$(CC) /OBJ=$@ $(CFLAGS) $<
22
23TGIFEXE = TGIF$(E)
24
25TGIFLIB = TGIF.OLB
26
27MISCLIB =,DESCRIP.OPT/OPT
28
29# CFLAGS = $(DEFINES)/debug/nooptimize/list/show=(nosource)/object=$(mms$target_name).obj
30CFLAGS = /prefix=(ALL,EXCEPT=(delete,select))\
31/WARN=(DISABLE=(LONGEXTERN,EMPTYFILE,IMPLICITFUNC))$(DEFINES)
32
33# LFLAGS = /DEBUG/MAP
34
35DEFINES = /DEFINE=(TGIF_PATH="""""", \
36	VMS=1, PSFILE_MOD="0664",\
37	EPSF_FILE_EXT="""eps""", PS_FILE_EXT="""ps""", \
38	XBM_FILE_EXT="""xbm""", XPM_FILE_EXT="""xpm""", \
39	OBJ_FILE_EXT="""obj""", SYM_FILE_EXT="""sym""", \
40	TEXT_FILE_EXT="""txt""", PIN_FILE_EXT="""pin""", \
41	TELEPORT_ATTR="""warp_to=""", LAUNCH_ATTR="""launch=""", \
42	EXEC_ATTR="""exec=""", \
43	TMP_DIR="""/sys$scratch/"""
44        $(D10)$(D11)$(D12)$(D13)$(D14)$(D15)$(D16)$(D17)$(D18)$(D19)\
45        $(D20)$(D21)$(D22)$(D23)$(D24)$(D25)$(D26)$(D27)$(D28)$(D29)\
46        $(D30)$(D31)$(D32)$(D33)$(D34)$(D35)$(D36)$(D37)$(D38)$(D39)\
47        $(D40)$(D41)$(D42)$(D43)$(D44)$(D45)$(D46)$(D47)$(D48)$(D49))
48
49D10=,"dumpOneFilePerPage=_dumpOneFilePerPage"
50D11=,"execNavigateBack=_execNavigateBack"
51D12=,"navigateRefresh=_navigateRefresh"
52D13=,F_SETFL=0,F_GETFL=1 # ???
53D14=,"unlink=delete"
54#
55# D42=,METRIC_PIX_PER_INCH=1
56#   Include the above line if you want to use 127 pixels per inch
57#   when printing in the metric system.  If this line is not
58#   included, 128 pixels per inch is used.
59D41=,_NO_GETTIMEOFDAY
60#   Include the above line if you do not have the gettimeofday()
61#   function but have the ftime() function.
62# D40=,BSD_COMP
63#   Include the above line if you are compiling on a Solaris (or
64#   possibly an SGI) machine which requires it in <sys/ioctl.h>.
65#   (If you see the error that FIONBIO is not defined when compiling
66#   tcp.c, then you probably need this.)
67# D39=,_HANDLE_SIGCHLD
68#   Include the above line if there are defunct tgif child processes.
69# D38=,_NO_LSTAT
70#   Include the above line if lstat() is not available.  In this case,
71#   using BrowseXBitmap and BrowseXPixmap under the File Menu may cause
72#   infinite loop if the directory structure is infinitely recursive.
73# D37=,_USE_XDRAWPOINT_TO_PUT_A_POINT
74#   Include the above line if the grid points are not visible.  This can
75#   be used to bypass some X server bugs (such as certain Linux X server
76#   using VGA16 screen) where the XDrawLine() Xlib call does not work
77#   properly.
78# D36=,_NO_EXTERN (obsoleted)
79#   Include the above line in the DEFINES if you don't want to include
80#   the extern definition for functions defined in a module.  For example,
81#   if this option is set, then file "foo.c" will not include "foo.e",
82#   and certain other extern definition in "foo.c" will be omitted.
83# D35=,_NO_PROTO
84#   Include the above line in the DEFINES if checking for function
85#   prototypes is not desired.  Checking for function prototypes
86#   are automatically enabled if you are using an ANSI or C++ compilor.
87#   However, not all ANSI/C++ compilors are created equal.
88# D34=,NO_STRSTR
89#   Include the above line in the DEFINES if you do not have the strstr()
90#   function in your system's string library.
91# D33=,INVERT_CTM_BUG
92#   Include the above line in the DEFINES if you are using PostScript
93#   utilities which fails when trying to invert non-invertible CTM
94#   (e.g., muluti.ps from ftp.ucc.su.oz.au:/pub/ps_printing/multi).
95# D32=,HP_LINE_BUG
96#   Include the above line in the DEFINES if two-vertices horizontal and
97#   verticle line segments don't draw properly on a buggy HP server.
98# D31=,DONTFREECOLORS
99#   Include the above line in the DEFINES if you don't want the black and
100#   the white colors to be freed when tgif initializes itself.  You should
101#   not need to do this unless to get around some server bugs.
102# D30=,USE_XAPPLRESDIR
103#   Include the above line in the DEFINES if $XAPPLRESDIR/Tgif is used to
104#   specify the resource file.  If your system does not have putenv()
105#   (such as IBM-RT), then this won't work.  I'm not sure if VMS systems
106#   have putenv(), so this might be useless for VMS systems.
107# D29=,XAPPLOADDIR_DEF
108#   If you define USE_XAPPLRESDIR, define this to a default directory
109#   to use in case $XAPPLRESDIR isn't set.
110# D28=,USE_XT_INITIALIZE
111#   This will cause the XToolkit to be initialized so that the X defaults
112#   are obtained from the Xt directories.  This should only be used when
113#   USE_XAPPLRESDIR option is NOT used.
114# D27=,NO_THIN_LINE
115#   Include the above line in the DEFINES if a line width of 0 causes
116#   your server to crash.  This is to get around a bug in some X servers.
117# D26=,THIN_OVAL_AND_ARC
118#   Include the above line in the DEFINES if you want 0 width arcs to
119#   be used when the width of an arc is less than or equal to 1.
120#   (Sun3 server has a bug that makes drawing ovals and arcs with
121#   width other than 0 VERY slow).
122# D25=,KEEP_WHEN_PRINT
123#   Include the above line in the DEFINES if you don't want the temp
124#   file to be deleted after sending the print job to the printer.
125#   (Some VMS systems might require this flag to be used.)
126# D24=,PRINT_CMD="""print"""
127#   Include the above line in the DEFINES if you want to configure tgif
128#   to use a default print command.
129# D23=,NOTR4MODE
130#   Include the above line in the DEFINES if you are running X11R3.
131#   This will cause tgif NOT to use some X11R4 window manager related
132#   functions that's not present in R3.
133# D22=,MAPBEFORESELECT
134#   Include the above line in the DEFINES to call XMapWindow() before
135#   calling XSelectInput().  This might be needed to get around some
136#   server bugs.
137# D21=,DONT_FREE_COLORMAP="""true"""
138#   Include the above line in the DEFINES if you don't want the colormap
139#   to be freed when tgif exits.
140D20=,A4PAPER
141#   Include the above line in the DEFINES if you want to print on A4 paper
142#   (8.25in by 11.7in or about 21cm by 29.7cm).
143
144.FIRST
145	@ DEFINE XMB [.XBM]
146	@ DEFINE X11 DECW$INCLUDE
147
148ALL : $(TGIFEXE) $(TGIFLIB)
149	@ !
150
151INCLUDE make.common
152
153$(TGIFEXE) : $(TGIFLIB)
154        LINK/EXE=$@ $</LIB/INCLUDE=TGIF $(MISCLIB)
155
156$(TGIFLIB) : $(OBJS)
157        IF F$SEARCH("$@") .EQS. "" THEN LIBRARY/CREATE $@
158        LIBRARY/obj $@ $+
159
160CLEAN :
161        IF F$SEARCH("*$(O)",).NES."" THEN DEL *$(O);*
162        IF F$SEARCH("$(TGIFLIB)",).NES."" THEN DEL $(TGIFLIB);*
163
164VERYCLEAN : CLEAN
165        IF F$SEARCH("$(TGIFEXE)",).NES."" THEN DEL $(TGIFEXE);*
166
167INCLUDE make.comdep
168
169