BSD 4_3 release
[unix-history] / usr / src / ucb / sendbug / Makefile
index b42a28f..c9bac49 100644 (file)
@@ -1,16 +1,33 @@
-#      Makefile        4.2     83/08/23
+#
+# Copyright (c) 1983 Regents of the University of California.
+# All rights reserved.  The Berkeley software License Agreement
+# specifies the terms and conditions for redistribution.
+#
+#      @(#)Makefile    5.6 (Berkeley) 4/24/86
 #
 # Bug report processor and associated programs
 #
 
 #
 # Bug report processor and associated programs
 #
 
-CFLAGS = -O -DUNIXCOMP
+BUGS_NAME = 4bsd-bugs
+BUGS_HOME = @ucbvax.BERKELEY.EDU
+DEFS = -DBUGS_NAME='"$(BUGS_NAME)"' -DBUGS_HOME='"$(BUGS_HOME)"'
+CFLAGS = -O -DUNIXCOMP $(DEFS)
 LIBDIR=        /usr/lib
 DESTDIR=
 
 LIBDIR=        /usr/lib
 DESTDIR=
 
+all: bugfiler unixtomh
+
 bugfiler: bugfiler.c
 bugfiler: bugfiler.c
-       ${CC} ${CFLAGS} -o bugfiler bugfiler.c
+       ${CC} ${CFLAGS} -DUNIXTOMH='"${LIBDIR}/unixtomh"' -o bugfiler bugfiler.c
 
 
-install: bugfiler sendbug.sh bugformat
+unixtomh: unixtomh.c
+       ${CC} ${CFLAGS} -o unixtomh unixtomh.c
+
+install: bugfiler sendbug.sh bugformat unixtomh
        install -s bugfiler ${DESTDIR}${LIBDIR}/bugfiler
        install -c sendbug.sh ${DESTDIR}/usr/ucb/sendbug
        install -s bugfiler ${DESTDIR}${LIBDIR}/bugfiler
        install -c sendbug.sh ${DESTDIR}/usr/ucb/sendbug
-       install -c -m 644 bugformat ${DESTDIR}/usr/ucb/bugformat
+       install -s unixtomh ${DESTDIR}${LIBDIR}/unixtomh
+       install -c -m 644 bugformat ${DESTDIR}/usr/lib/bugformat
+
+clean:
+       rm -f *.o bugfiler unixtomh