|
|
1.1 root 1: #
2: # $Source: /u1/X/xterm/RCS/Makefile,v $
3: # $Header: Makefile,v 10.2 86/12/01 17:52:22 swick Rel $
4: #
5:
6: #
7: # Makefile for X window system terminal emulator.
8: # @(#)Makefile X10/6.6B 12/26/86
9: #
10:
11: DESTDIR=
12: # We put xterm in /etc so you can run on partial boot. A link is put
13: # in CONFDIR so normal search paths will find xterm.
14: #
15: # For the 4.3 distribution, the executable is put in /usr/new instead.
16: #
17: CONFDIR= /usr/new
18: INCLUDES= -I../include
19: LIBS= -lX -ltermcap
20: #
21: # The option KEYBD may be included if the keyboard mods have been done to
22: # XKeyBind.c in libX.a.
23: cflags = -O -DMODEMENU ${INCLUDES} -DUTMP -DCHANGEFONT -DALLOWUNSHIFTEDSELECTION
24: #
25: # NOWINDOWMENU disables the window manager menu (right button)
26: # CHANGEFONT allows dynamic font changes via escape sequence
27: #cflags = -O -DMODEMENU ${INCLUDES} -DUTMP -DNOWINDOWMENU -DCHANGEFONT
28: CFLAGS = -R ${cflags}
29: SOURCE = Makefile data.h error.h menu.h ptyx.h scrollbar.h VTparse.h \
30: Tekparse.h button.c charproc.c cursor.c data.c input.c \
31: main.c menu.c misc.c screen.c scrollbar.c tabs.c \
32: Tekparsetable.c Tekproc.c util.c VTparsetable.c
33:
34: .SUFFIXES: .o .h .c
35:
36: OBJS = main.o input.o charproc.o cursor.o util.o tabs.o \
37: screen.o scrollbar.o button.o Tekproc.o misc.o \
38: VTparsetable.o Tekparsetable.o data.o menu.o
39:
40: all: xterm resize
41:
42: xterm: $(OBJS)
43: $(CC) $(CFLAGS) -o xterm $(OBJS) $(LIBS)
44:
45: button.o: data.h error.h menu.h ptyx.h scrollbar.h
46:
47: charproc.o: VTparse.h error.h data.h menu.h ptyx.h scrollbar.h
48:
49: cursor.o: ptyx.h
50:
51: data.o: data.c ptyx.h scrollbar.h
52: $(CC) $(cflags) -c data.c
53:
54: input.o: ptyx.h
55:
56: main.o: data.h error.h main.h ptyx.h scrollbar.h
57:
58: menu.o: menu.h
59:
60: misc.o: error.h ptyx.h scrollbar.h gray.ic hilite.ic icon.ic wait.ic waitmask.ic
61:
62: screen.o: error.h ptyx.h scrollbar.h
63:
64: scrollbar.o: error.h ptyx.h scrollbar.h button.ic dark.ic light.ic upline.ic \
65: downline.ic uppage.ic downpage.ic top.ic bottom.ic saveoff.ic saveon.ic
66:
67: tabs.o: ptyx.h
68:
69: Tekparsetable.o: Tekparse.h
70:
71: Tekproc.o: Tekparse.h error.h data.h menu.h ptyx.h scrollbar.h
72:
73: VTparsetable.o: VTparse.h
74:
75: util.o: ptyx.h scrollbar.h
76:
77: resize: resize.o
78: $(CC) $(cflags) -o resize resize.o -lc -ltermcap
79:
80: resize.o: resize.c
81: $(CC) $(cflags) -c resize.c
82:
83: install: all
84: # install -m 4755 xterm ${DESTDIR}/etc
85: install -m 4755 xterm ${DESTDIR}${CONFDIR}
86: # rm -f ${DESTDIR}${CONFDIR}/xterm
87: # ln -s /etc/xterm ${DESTDIR}${CONFDIR}/xterm
88: install resize ${DESTDIR}${CONFDIR}
89:
90: clean:
91: rm -f xterm resize *.o a.out core errs gmon.out *.bak *~
92:
93: print:
94: lpr -Pln ${SOURCE}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.