blob: 191f3bf5653b61b5f9df18cf2cf7b4da3a70d24c (
plain) (
blame)
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
--- Makefile.mix.orig Tue Oct 22 00:10:44 1996
+++ Makefile.mix Tue Oct 22 00:23:07 1996
@@ -120,28 +120,29 @@
#---- These settings are recommended for BSD 4.3 UNIX and SunOS ----
#---- For BSD386, add "-DTERMIOS" to CFLAGS
-#OBJ= .o
-#EXE=
-#COM=
-#EXTRA= unix$(OBJ)
-#EXTRA2=
-#LIBS= -ltermcap
-#BIN= /usr/local/bin
-#CC= cc
-#CFLAGS= -Dbsd -O
-#SMALL=
-#LARGE=
-#OF= -o ""
-#RF= -c
-#PROGS= elvis$(EXE) ctags$(COM) ref$(COM) elvrec$(COM) elvprsv$(COM)
-#CHMEM=
-#SORT= -DSORT
-#RM= rm -f
-#CP= cp
-#LN= ln
-#SYS= unx
-#DUMMY=
-#CFG=
+OBJ= .o
+EXE=
+COM=
+EXTRA= unix$(OBJ)
+EXTRA2=
+PREFIX?=/usr/local
+LIBS= -ltermcap -L${PREFIX}/lib -lcanna
+BIN= ${PREFIX}/bin
+CC= cc
+CFLAGS+= -Dbsd -O -I${PREFIX}/include -D_HAVE_PARAM_H -DNO_EXITCODE -DHAVE_OFF_T -D__386BSD__
+SMALL=
+LARGE=
+OF= -o ""
+RF= -c
+PROGS= elvis$(EXE) ctags$(COM) ref$(COM) elvrec$(COM) elvprsv$(COM)
+CHMEM=
+SORT= -DSORT
+RM= rm -f
+CP= cp
+LN= ln -sf
+SYS= unx
+DUMMY=
+CFG=
#---- These settings are recommended for Coherent 4.0 ----
#OBJ=.o
@@ -536,7 +537,7 @@
OBJS2= ex$(OBJ) input$(OBJ) main$(OBJ) misc$(OBJ) modify$(OBJ) move1$(OBJ)
OBJS3= move2$(OBJ) move3$(OBJ) move4$(OBJ) move5$(OBJ) opts$(OBJ) recycle$(OBJ)
OBJS4= redraw$(OBJ) regexp$(OBJ) regsub$(OBJ) system$(OBJ) tio$(OBJ) tmp$(OBJ)
-OBJS5= vars$(OBJ) vcmd$(OBJ) vi$(OBJ) kanji$(OBJ) fepseq$(OBJ) # canna$(OBJ)
+OBJS5= vars$(OBJ) vcmd$(OBJ) vi$(OBJ) kanji$(OBJ) fepseq$(OBJ) canna$(OBJ)
OBJS= $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4) $(OBJS5)
ALIAS= alias$(OBJ)
@@ -677,6 +678,7 @@
inst.unx: $(DUMMY)
$(CP) $(PROGS) $(BIN)
+ (cd $(BIN); strip $(PROGS))
(cd $(BIN); chmod 755 $(PROGS))
(cd $(BIN); chown bin $(PROGS))
(cd $(BIN); chown root elvprsv$(COM) elvrec$(COM))
@@ -685,12 +687,9 @@
-$(LN) $(BIN)/elvis $(BIN)/ex
-$(LN) $(BIN)/elvis $(BIN)/view
-$(LN) $(BIN)/elvis $(BIN)/input
- test -d /usr/preserve || (mkdir /usr/preserve; chmod 755 /usr/preserve)
+ test -d /var/preserve || (mkdir /var/preserve; chmod 755 /var/preserve)
@if test -d /etc/rc2.d; then \
echo $(BIN)/elvprsv /tmp/elv* >/etc/rc2.d/S03elvis; \
- else \
- echo "::: YOU STILL NEED TO EDIT THE /ETC/RC FILE, OR WHATEVER,"; \
- echo "::: TO HAVE TEMP FILES BE PRESERVED AFTER A SYSTEM CRASH."; \
fi
sh instman.sh $(PROGS)
|