1996-03-18 18:54:46 +00:00
|
|
|
--- /dev/null Mon Mar 18 12:50:49 1996
|
|
|
|
+++ Makefile Mon Mar 18 19:30:47 1996
|
1998-08-23 02:34:23 +00:00
|
|
|
@@ -0,0 +1,39 @@
|
1996-03-18 18:54:46 +00:00
|
|
|
+# 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
|
|
|
|
+
|
1999-03-03 12:01:21 +00:00
|
|
|
+LIBS = -lncurses -lmytinfo
|
1996-03-18 18:54:46 +00:00
|
|
|
+#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
|
|
|
|
+
|
1998-08-23 02:34:23 +00:00
|
|
|
+all: bpatch
|
1996-03-18 18:54:46 +00:00
|
|
|
+
|
|
|
|
+clean:
|
1998-08-23 02:34:23 +00:00
|
|
|
+ rm -f bpatch bpatch.o *.core
|
1996-03-18 18:54:46 +00:00
|
|
|
+
|
|
|
|
+bpatch: bpatch.o
|
|
|
|
+ $(CC) -o bpatch $(CFLAGS) bpatch.o $(GETOPT) $(LIBS)
|
|
|
|
+
|
1998-08-23 02:34:23 +00:00
|
|
|
+install: bpatch bpatch.1
|
|
|
|
+ $(BSD_INSTALL_PROGRAM) bpatch $(DESTDIR)$(BINDIR)
|
|
|
|
+ $(BSD_INSTALL_MAN) bpatch.1 $(DESTDIR)$(MANDIR)
|