-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMAKEFILE.XEN
67 lines (53 loc) · 1.75 KB
/
MAKEFILE.XEN
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Copyright (c) 1990,1991,1992 Chris and John Downey
#***
#
# @(#)makefile.xen 2.2 (Chris & John Downey) 7/31/92
#
# program name:
# xvi
# function:
# PD version of UNIX "vi" editor, with extensions.
# module name:
# makefile.xen
# module function:
# Makefile for Xenix on a 386.
# history:
# STEVIE - ST Editor for VI Enthusiasts, Version 3.10
# Originally by Tim Thompson (twitch!tjt)
# Extensive modifications by Tony Andrews (onecom!wldrdg!tony)
# Heavily modified by Chris & John Downey
#***
SYSDEFS= -DUNIX -DTERMIO -DNO_RENAME
INCDIRS=
LIBS= -ltermcap
LDFLAGS=
CFLAGS= $(SYSDEFS) $(INCDIRS) -Ox
LINTFLAGS= $(SYSDEFS) $(INCDIRS) -ah
MACHSRC= unix.c termcap.c defscr.c
MACHOBJ= unix.o termcap.o defscr.o
MACHINC= unix.h termcap.h
GENINC= ascii.h param.h ptrfunc.h regexp.h regmagic.h xvi.h virtscr.h
GENSRC= alloc.c ascii.c buffers.c cmdline.c cursor.c \
edit.c ex_cmds1.c ex_cmds2.c events.c fileio.c \
find.c flexbuf.c map.c mark.c misccmds.c movement.c \
normal.c param.c pipe.c preserve.c ptrfunc.c \
regexp.c screen.c search.c startup.c status.c tags.c \
undo.c version.c windows.c yankput.c
GENOBJ= alloc.o ascii.o buffers.o cmdline.o cursor.o \
edit.o ex_cmds1.o ex_cmds2.o events.o fileio.o \
find.o flexbuf.o map.o mark.o misccmds.o movement.o \
normal.o param.o pipe.o preserve.o ptrfunc.o \
regexp.o screen.o search.o startup.o status.o tags.o \
undo.o version.o windows.o yankput.o
all: xvi
xvi: $(GENOBJ) $(MACHOBJ)
$(CC) $(CFLAGS) -o xvi $(GENOBJ) $(MACHOBJ) $(LIBS)
.c.o: $< $(GENINC) $(MACHINC) param.c
$(CC) $(CFLAGS) -c -o $@ $<
lint:
lint $(LINTFLAGS) $(GENSRC) $(MACHSRC)
tags: $(GENSRC) $(MACHSRC)
ctags -t $(GENSRC) $(MACHSRC) $(GENINC) $(MACHINC)
clean:
rm $(GENOBJ) $(MACHOBJ) xvi
$(GENOBJ): $(GENINC) $(MACHINC)