-SCCSID = @(#)Makefile 1.2 (Berkeley) %G%
-RRHBIN = /va/staff/rrh/bin
-NCC = ${RRHBIN}/ncc
-
-CFLAGS = -DDEBUG
-
-DPROFHDRS = dprof.h
-DPROFSRCS = dprof.c arcs.c dfn.c lookup.c printdprof.c
-DPROFOBJS = dprof.o arcs.o dfn.o lookup.o printdprof.o
-OTHERS = mcrt0.s monitor.h monitor.c monitor.ex
-
-dprof: $(DPROFOBJS)
- cc -o dprof ${CFLAGS} $(DPROFOBJS)
-
-.c.o:
- cc -c ${CFLAGS} $*.c
-
-mcrt0.o: mcrt0.s
- as -o mcrt0.o mcrt0.s
- -ld -x -r mcrt0.o
- mv a.out mcrt0.o
-
-monitor.o: monitor.s
- as -o monitor.o monitor.s
-
-monitor.s: monitor.c monitor.ex monitor.h
- cc -S -DMONITOR monitor.c
- ex - monitor.s < monitor.ex
- /lib/cpp monitor.s > monitor.S
- mv monitor.S monitor.s
-
-#
-# NB: -x option to ncc is like -p, but uses
-# different files to load at the beginning of
-# the executable.
-#
-profit: profit.o monitor.o mcrt0.o
- /bin/ld -X mcrt0.o monitor.o -o profit profit.o -lcp
-# ${NCC} -x -p "-?" profit.o -o profit
+SCCSID = @(#)Makefile 1.3 (Berkeley) %G%
+
+CFLAGS =
+DFLAGS =
+
+GPROFHDRS = gprof.h
+GPROFSRCS = gprof.c arcs.c dfn.c lookup.c printgprof.c
+GPROFOBJS = gprof.o arcs.o dfn.o lookup.o printgprof.o
+OTHERS = gmcrt0.c gmcrt0.h gmcrt0.ex
+
+gprof: ${GPROFOBJS}
+ cc -o gprof ${CFLAGS} ${GPROFOBJS}
+
+gmcrt0.o: gmcrt0.s
+ as -o gmcrt0.o gmcrt0.s
+
+gmcrt0.s: gmcrt0.c gmcrt0.h gmcrt0.ex
+ cc -S ${DFLAGS} gmcrt0.c
+ ex - gmcrt0.s < gmcrt0.ex
+ /lib/cpp gmcrt0.s > gmcrt0.S
+ mv gmcrt0.S gmcrt0.s
+
+profit: profit.o gmcrt0.o
+ /bin/ld -X gmcrt0.o -o profit profit.o -lcp