3
# You MUST define either BIG_END_MODE or LITTLE_END_MODE, by
4
# uncommenting one of the lines below. If you don't know
5
# which is right, try one and see if the program runs right.
6
# The error messages are nice and obvious. Some Unixes
7
# have a BYTE_ORDER definition; if you define AUTO_END_MODE,
8
# the source code will check for that and work "automatically".
9
# If Murphy's Law strikes, go back to BIG_END_MODE or
12
# If you get errors in xio.c about fd_set or FD_SET being
13
# undefined, put "-DNEEDS_SELECT_H" in the SYSTEMFLAGS line,
14
# as has been done for the RS6000.
16
# If you get errors about bcopy being undefined, put
17
# "-DNO_BCOPY" in the SYSTEMFLAGS line.
19
# If you get errors about random or srandom being undefined,
20
# put "-DLOUSY_RANDOM" in the SYSTEMFLAGS line.
22
# --------------------
24
# definitions for RS6000 / AIX
25
# If AUTO doesn't work, use BIG
26
#SYSTEMFLAGS = -DNEEDS_SELECT_H -DAUTO_END_MODE
28
# definitions for HP / HPUX
29
#SYSTEMFLAGS = -Ae -DBIG_END_MODE
31
# definitions for HP / HPUX 9.0
32
# (Dunno; this was contributed to me)
33
#SYSTEMFLAGS = -Aa -D_HPUX_SOURCE -DBIG_END_MODE
35
# definitions for SparcStation / SunOS
36
#SYSTEMFLAGS = -DBIG_END_MODE
38
# definitions for SparcStation / Solaris
39
# (Solaris 2.5, don't know about other versions)
40
#SYSTEMFLAGS = -DBIG_END_MODE
41
#SYSTEMLIBS = -R$(XLIB) -lsocket
43
# definitions for DECstation / Ultrix
44
#SYSTEMFLAGS = -DLITTLE_END_MODE
46
# definitions for SGI / Irix
47
#SYSTEMFLAGS = -DBIG_END_MODE
49
# definitions for Linux
50
# Note! Old versions of Linux (pre 2.0?) may not have the magic
51
# BYTE_ORDER definitions installed. If AUTO_END_MODE doesn't
52
# work, use LITTLE_END_MODE on an x86, BIG_END_MODE on a
53
# 680x0 or PPC machine.
54
SYSTEMFLAGS = -DAUTO_END_MODE
56
# definitions for BSDI 4
57
#SYSTEMFLAGS = -DAUTO_END_MODE
59
# definitions for some arbitrary big-endian system
60
#SYSTEMFLAGS = -DBIG_END_MODE
62
# definitions for some arbitrary little-endian system
63
#SYSTEMFLAGS = -DLITTLE_END_MODE
65
# --------------------
67
# definitions for where the X lib and include directories are.
68
# The following are defaults that might work.
70
#XINCLUDE = /usr/include/X11
73
# If your compiler can't find these things, try commenting out the
74
# above, and uncommenting various versions below. Also look around
75
# your hard drive for the appropriate files. (The XINCLUDE directory
76
# should contain the file "Xlib.h", and the XLIB dir should contain
77
# "libX11.so" or "libX11.a".)
78
# The problem is, depending on how things are installed, the
79
# directories could be just about anywhere. Sigh.
81
# for Debian or SuSE Linux
82
XINCLUDE = /usr/X11R6/include/X11
86
#XINCLUDE = /usr/include/X11
89
# for SparcStation / Solaris
90
#XINCLUDE = /usr/openwin/include
91
#XLIB = /usr/openwin/lib
94
#XINCLUDE = /usr/X11R6/include
97
# --------------------
99
# definition for where to install xzip executable and man page
101
MANDIR = /usr/share/man
103
# --------------------
107
LIBS = -L$(XLIB) -lX11 $(SYSTEMLIBS)
109
# definitions for the default fonts. Users can override these with X resources.
111
"-adobe-times-medium-r-normal--14-*-*-*-*-*-iso8859-1"
113
"-adobe-times-bold-r-normal--14-*-*-*-*-*-iso8859-1"
115
"-adobe-times-medium-i-normal--14-*-*-*-*-*-iso8859-1"
117
"-adobe-times-bold-i-normal--14-*-*-*-*-*-iso8859-1"
119
"-adobe-courier-medium-r-normal--12-*-*-*-*-*-iso8859-1"
121
"-adobe-courier-bold-r-normal--12-*-*-*-*-*-iso8859-1"
122
FONTDEF_ITALICFIXED=\
123
"-adobe-courier-medium-o-normal--12-*-*-*-*-*-iso8859-1"
124
FONTDEF_BOLDITALICFIXED=\
125
"-adobe-courier-bold-o-normal--12-*-*-*-*-*-iso8859-1"
128
-DFND0='$(FONTDEF_PLAIN)' \
129
-DFND1='$(FONTDEF_BOLD)' \
130
-DFND2='$(FONTDEF_ITALIC)' \
131
-DFND3='$(FONTDEF_BOLDITALIC)' \
132
-DFND4='$(FONTDEF_FIXED)' \
133
-DFND5='$(FONTDEF_BOLDFIXED)' \
134
-DFND6='$(FONTDEF_ITALICFIXED)' \
135
-DFND7='$(FONTDEF_BOLDITALICFIXED)'
138
OBJS = zip.o control.o extern.o fileio.o input.o interpre.o math.o memory.o \
139
object.o operand.o osdepend.o property.o screen.o text.o variable.o \
142
XOBJS = xio.o xinit.o xtext.o xkey.o xmess.o xstat.o
144
$(PROGRAM) : $(OBJS) $(XOBJS)
145
$(CC) -o $@ $(LDFLAGS) $(OBJS) $(XOBJS) $(LIBS)
148
$(CC) -o $@ $(LDFLAGS) $(XOBJS) $(LIBS)
150
$(OBJS) : $(INC) extern.c version.h
153
$(CC) $(CFLAGS) $(SYSTEMFLAGS) -I$(XINCLUDE) -c $<
157
$(XOBJS) : $(INC) xio.h version.h
159
xio.o: xio.c xio.h greypm.bm
160
$(CC) $(CFLAGS) $(SYSTEMFLAGS) -I$(XINCLUDE) -c xio.c
162
xinit.o: xinit.c xio.h
163
$(CC) $(CFLAGS) $(SYSTEMFLAGS) -I$(XINCLUDE) $(FONTDEFAULTLIST) -c xinit.c
166
install $(PROGRAM) $(DESTDIR)/$(BINDIR)
167
install $(PROGRAM).1 $(DESTDIR)/$(MANDIR)/man6/$(PROGRAM).6
170
-rm -f *~ *.o $(PROGRAM) test