blob: ff21625c15db2e553809251be22bf8878dc1ec91 (
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
|
--- /dev/null Mon Mar 18 12:50:49 1996
+++ Makefile Mon Mar 18 19:30:47 1996
@@ -0,0 +1,39 @@
+# This may have to change on your system.
+# You may have to fiddle with various combinations of curses, termcap,
+# terminfo, etc. Good luck!
+PREFIX?= /usr/local
+BINDIR= ${PREFIX}/bin
+MANDIR= ${PREFIX}/man/man1
+
+LIBS = -lncurses -lmytinfo
+#LIBS = -ltermlib
+#LIBS = -lterminfo
+#for sysV
+#LIBS = -lcurses
+
+# However you need getopt.
+#GETOPT = -lgetopt
+#not for sysV! (nor for some BSD)
+#GETOPT =
+
+# If you're running on a 4.[23] system, you probably want this.
+#WORK = -DMOD_HAX
+#sysV
+#WORK =
+
+#BSD or thereabouts
+CFLAGS+= $(WORK)
+#Microport sysV/AT, large model, for sdb debugger
+#CFLAGS = -g -Ml
+
+all: bpatch
+
+clean:
+ rm -f bpatch bpatch.o *.core
+
+bpatch: bpatch.o
+ $(CC) -o bpatch $(CFLAGS) bpatch.o $(GETOPT) $(LIBS)
+
+install: bpatch bpatch.1
+ $(BSD_INSTALL_PROGRAM) bpatch $(DESTDIR)$(BINDIR)
+ $(BSD_INSTALL_MAN) bpatch.1 $(DESTDIR)$(MANDIR)
|