3 # Several groups of Makefile settings are included below. Choose *ONE* group
4 # of settings for your particular system, and leave the others commented out.
5 # The meanings of these settings are:
6 # EXTRA version-specific object files used in elvis
7 # CC the C compiler command, possibly with "memory model" flags
8 # CFLAGS compiler flags used to select compile-time options
9 # PROGS the list of all programs
10 # SORT if the "tags" file must be sorted, then SORT=-DSORT
13 PROGS
= elvis ctags ref elvrec fmt elvprsv
15 #---- These settings are recommended for Minix-PC ----
16 EXTRA
= tinytcap.o tinyprnt.o
17 CFLAGS
= -O
-w
-D_POSIX_SOURCE
-D_MINIX
-DCRUNCH \
18 -DNO_MKEXRC
-DNO_CURSORSHAPE
-DNO_CHARATTR
-DNO_SHOWMODE \
19 -DNO_MODELINE
-DNO_OPTCOLS
-DNO_DIGRAPH
-DNO_EXTENSIONS \
20 -DNO_ERRLIST
-DNO_FKEY
-DNO_VISIBLE
-DNO_COLOR
-DNO_POPUP
23 #---- These settings are recommended for Minix-ST ----
27 ###########################################################################
28 ### The rest of this Makefile contains no user-serviceable parts ###
29 ###########################################################################
31 OBJ
=blk.o cmd1.o cmd2.o ctype.o curses.o cut.o ex.o input.o \
32 main.o misc.o modify.o move1.o move2.o move3.o move4.o move5.o \
33 opts.o recycle.o redraw.o regexp.o regsub.o system.o tio.o tmp.o \
34 unix.o vars.o vcmd.o vi.o
39 $(CC
) $(LDFLAGS
) -o elvis
$(OBJ
)
43 $(CC
) $(CFLAGS
) $(SORT
) $(LDFLAGS
) -o ctags ctags.c
47 $(CC
) $(CFLAGS
) $(LDFLAGS
) -o ref ref.c
51 $(CC
) $(CFLAGS
) $(LDFLAGS
) -o elvrec elvrec.c
55 $(CC
) $(CFLAGS
) $(LDFLAGS
) -o fmt fmt.c
59 $(CC
) $(CFLAGS
) $(LDFLAGS
) -o elvprsv elvprsv.c ctype.o
62 install: /usr
/bin
/elvis \
65 /usr
/bin
/ctags
/usr
/bin
/ref
/usr
/bin
/fmt \
66 /usr
/bin
/elvrec
/usr
/bin
/elvprsv
69 install -cs
-o bin elvis
$@
72 install -cs
-o bin elvis
$@
74 /usr
/bin
/vi
: /usr
/bin
/elvis
76 then
install -l h
$?
$@
; \
80 install -cs
-o bin ctags
$@
83 install -cs
-o bin ref
$@
86 install -cs
-o bin fmt
$@
88 /usr
/bin
/elvrec
: elvrec
89 install -cs
-o root
-m
4755 elvrec
$@
91 /usr
/bin
/elvprsv
: elvprsv
92 install -cs
-o root
-m
4755 elvprsv
$@
95 $(OBJ
): vi.h curses.h config.h regexp.h ctype.h
98 rm -f
*.o ctags ref elvrec fmt elvprsv elvis