blob: a79b25f7482490a0e8ee682f0bee4c457c72600d (
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
|
--- Makefile.orig Tue Aug 27 14:17:32 2002
+++ Makefile Tue Aug 27 14:20:26 2002
@@ -12,15 +12,19 @@
# Makefile for CC for 386bsd
#
#***
+
+PROG= xvi
+MAN1= ../doc/xvi.1
SYSDEFS= -DUNIX -DBSD386
INCDIRS=
-LIBS= -ltermcap
+LIBS= -lcurses
+#LIBS= -ltermcap
LDFLAGS=
-CFLAGS= $(SYSDEFS) $(INCDIRS) -O
-LINTFLAGS= $(SYSDEFS) $(INCDIRS) -ah
+CFLAGS+= ${SYSDEFS} ${INCDIRS} -DHELPFILE=\"/usr/local/share/xvi/xvi.help\"
+LINTFLAGS= ${SYSDEFS} ${INCDIRS} -ah
MACHSRC= unix.c termcap.c defscr.c
MACHOBJ= unix.o termcap.o defscr.o
@@ -42,28 +46,30 @@
regexp.o screen.o search.o signal.o startup.o status.o \
tags.o undo.o version.o windows.o yankput.o kanji.o
-all: xvi
+all: ${PROG}
-xvi: $(GENOBJ) $(MACHOBJ)
- $(CC) $(CFLAGS) -o xvi $(GENOBJ) $(MACHOBJ) $(LIBS)
+${PROG}: ${GENOBJ} ${MACHOBJ}
+ ${CC} ${CFLAGS} -o $@ ${GENOBJ} ${MACHOBJ} ${LIBS}
-.c.o: $< $(GENINC) $(MACHINC) param.c
- $(CC) $(CFLAGS) -c $<
+.c.o: $< ${GENINC} ${MACHINC} param.c
+ ${CC} ${CFLAGS} -c $<
lint:
- lint $(LINTFLAGS) $(GENSRC) $(MACHSRC)
+ lint ${LINTFLAGS} ${GENSRC} ${MACHSRC}
listsrc:
- @echo $(GENSRC) $(MACHSRC) $(GENINC) $(MACHINC)
+ @echo ${GENSRC} ${MACHSRC} ${GENINC} ${MACHINC}
listobj:
- @echo $(GENOBJ) $(MACHOBJ)
+ @echo ${GENOBJ} ${MACHOBJ}
-tags: $(GENSRC) $(MACHSRC)
- ctags -t $(GENSRC) $(MACHSRC) $(GENINC) $(MACHINC)
+tags: ${GENSRC} ${MACHSRC}
+ ctags -t ${GENSRC} ${MACHSRC} ${GENINC} ${MACHINC}
clean:
- rm $(GENOBJ) $(MACHOBJ) xvi
+ rm -f ${GENOBJ} ${MACHOBJ} ${PROG}
+
+${GENOBJ}: ${GENINC} ${MACHINC}
-$(GENOBJ): $(GENINC) $(MACHINC)
+.include <bsd.prog.mk>
|