re-establish kernel assert()s.
[minix.git] / commands / elvis / Makefile
blob602d327c8257b6ff34dd7637b016009d12620f2e
1 # Makefile for elvis
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
12 CC = exec cc
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
21 LDFLAGS=-i
23 #---- These settings are recommended for Minix-ST ----
24 #EXTRA=
25 #CFLAGS=
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
36 all: $(PROGS)
38 elvis: $(OBJ)
39 $(CC) $(LDFLAGS) -o elvis $(OBJ)
40 install -S 18kw elvis
42 ctags: ctags.c
43 $(CC) $(CFLAGS) $(SORT) $(LDFLAGS) -o ctags ctags.c
44 install -S 4kw $@
46 ref: ref.c
47 $(CC) $(CFLAGS) $(LDFLAGS) -o ref ref.c
48 install -S 4kw $@
50 elvrec: elvrec.c
51 $(CC) $(CFLAGS) $(LDFLAGS) -o elvrec elvrec.c
52 install -S 4kw $@
54 fmt: fmt.c
55 $(CC) $(CFLAGS) $(LDFLAGS) -o fmt fmt.c
56 install -S 4kw $@
58 elvprsv: elvprsv.c
59 $(CC) $(CFLAGS) $(LDFLAGS) -o elvprsv elvprsv.c ctype.o
60 install -S 4kw $@
62 install: /usr/bin/elvis \
63 /bin/elvis \
64 /usr/bin/vi \
65 /usr/bin/ctags /usr/bin/ref /usr/bin/fmt \
66 /usr/bin/elvrec /usr/bin/elvprsv
68 /usr/bin/elvis: elvis
69 install -cs -o bin elvis $@
71 /bin/elvis: elvis
72 install -cs -o bin elvis $@
74 /usr/bin/vi: /usr/bin/elvis
75 if [ ! -x $@ ]; \
76 then install -l h $? $@ ; \
79 /usr/bin/ctags: ctags
80 install -cs -o bin ctags $@
82 /usr/bin/ref: ref
83 install -cs -o bin ref $@
85 /usr/bin/fmt: fmt
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 $@
94 # Dependencies
95 $(OBJ): vi.h curses.h config.h regexp.h ctype.h
97 clean:
98 rm -f *.o ctags ref elvrec fmt elvprsv elvis