| [9] | 1 | # Makefile for elvis | 
|---|
|  | 2 | # | 
|---|
|  | 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 | 
|---|
|  | 11 |  | 
|---|
|  | 12 | CC = exec cc | 
|---|
|  | 13 | PROGS=  elvis ctags ref elvrec fmt elvprsv | 
|---|
|  | 14 |  | 
|---|
|  | 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 | 
|---|
|  | 22 |  | 
|---|
|  | 23 | #---- These settings are recommended for Minix-ST ---- | 
|---|
|  | 24 | #EXTRA= | 
|---|
|  | 25 | #CFLAGS= | 
|---|
|  | 26 |  | 
|---|
|  | 27 | ########################################################################### | 
|---|
|  | 28 | ###     The rest of this Makefile contains no user-serviceable parts    ### | 
|---|
|  | 29 | ########################################################################### | 
|---|
|  | 30 |  | 
|---|
|  | 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 | 
|---|
|  | 35 |  | 
|---|
|  | 36 | all:    $(PROGS) | 
|---|
|  | 37 |  | 
|---|
|  | 38 | elvis:  $(OBJ) | 
|---|
|  | 39 | $(CC) $(LDFLAGS) -o elvis $(OBJ) | 
|---|
|  | 40 | install -S 18kw elvis | 
|---|
|  | 41 |  | 
|---|
|  | 42 | ctags:  ctags.c | 
|---|
|  | 43 | $(CC) $(CFLAGS) $(SORT) $(LDFLAGS) -o ctags ctags.c | 
|---|
|  | 44 | install -S 4kw $@ | 
|---|
|  | 45 |  | 
|---|
|  | 46 | ref:    ref.c | 
|---|
|  | 47 | $(CC) $(CFLAGS) $(LDFLAGS) -o ref ref.c | 
|---|
|  | 48 | install -S 4kw $@ | 
|---|
|  | 49 |  | 
|---|
|  | 50 | elvrec: elvrec.c | 
|---|
|  | 51 | $(CC) $(CFLAGS) $(LDFLAGS) -o elvrec elvrec.c | 
|---|
|  | 52 | install -S 4kw $@ | 
|---|
|  | 53 |  | 
|---|
|  | 54 | fmt:    fmt.c | 
|---|
|  | 55 | $(CC) $(CFLAGS) $(LDFLAGS) -o fmt fmt.c | 
|---|
|  | 56 | install -S 4kw $@ | 
|---|
|  | 57 |  | 
|---|
|  | 58 | elvprsv:        elvprsv.c | 
|---|
|  | 59 | $(CC) $(CFLAGS) $(LDFLAGS) -o elvprsv elvprsv.c ctype.o | 
|---|
|  | 60 | install -S 4kw $@ | 
|---|
|  | 61 |  | 
|---|
|  | 62 | install:        /usr/bin/elvis \ | 
|---|
|  | 63 | /bin/elvis \ | 
|---|
|  | 64 | /usr/bin/ctags /usr/bin/ref /usr/bin/fmt \ | 
|---|
|  | 65 | /usr/bin/elvrec /usr/bin/elvprsv | 
|---|
|  | 66 |  | 
|---|
|  | 67 | /usr/bin/elvis: elvis | 
|---|
|  | 68 | install -cs -o bin elvis $@ | 
|---|
|  | 69 |  | 
|---|
|  | 70 | /bin/elvis:     elvis | 
|---|
|  | 71 | install -cs -o bin elvis $@ | 
|---|
|  | 72 |  | 
|---|
|  | 73 | /usr/bin/ctags: ctags | 
|---|
|  | 74 | install -cs -o bin ctags $@ | 
|---|
|  | 75 |  | 
|---|
|  | 76 | /usr/bin/ref:   ref | 
|---|
|  | 77 | install -cs -o bin ref $@ | 
|---|
|  | 78 |  | 
|---|
|  | 79 | /usr/bin/fmt:   fmt | 
|---|
|  | 80 | install -cs -o bin fmt $@ | 
|---|
|  | 81 |  | 
|---|
|  | 82 | /usr/bin/elvrec:        elvrec | 
|---|
|  | 83 | install -cs -o root -m 4755 elvrec $@ | 
|---|
|  | 84 |  | 
|---|
|  | 85 | /usr/bin/elvprsv:       elvprsv | 
|---|
|  | 86 | install -cs -o root -m 4755 elvprsv $@ | 
|---|
|  | 87 |  | 
|---|
|  | 88 | # Dependencies | 
|---|
|  | 89 | $(OBJ): vi.h curses.h config.h regexp.h ctype.h | 
|---|
|  | 90 |  | 
|---|
|  | 91 | clean: | 
|---|
|  | 92 | rm -f *.o ctags ref elvrec fmt elvprsv elvis | 
|---|