new template
[unix-history] / usr / src / old / prof / Makefile
index b9bb6bf..48e2301 100644 (file)
@@ -1,18 +1,44 @@
-#      @(#)Makefile    4.2 (Berkeley) %G%
 #
 #
-# If you don't want to plot, take out the -Dplot and the ref. to plot.a
-PLOT = -lplot -Dplot
-CFLAGS=-O 
-prof:  prof.o
-       $(CC) -o prof prof.o $(PLOT)
+# Copyright (c) 1987 Regents of the University of California.
+# All rights reserved.  The Berkeley software License Agreement
+# specifies the terms and conditions for redistribution.
+#
+#      @(#)Makefile    4.3     (Berkeley)      %G%
+#
+# If you don't want to plot, take out the -Dplot and the loader
+# reference to plot.a
+CFLAGS=        -O -Dplot
+LIBC=  /lib/libc.a
+SRCS=  prof.c
+OBJS=  prof.o
+
+all: prof
+
+prof: ${OBJS} ${LIBC}
+       ${CC} -o $@ ${CFLAGS} ${OBJS} -lplot
+
+clean: FRC
+       rm -f ${OBJS} core prof
+
+depend: FRC
+       mkdep ${CFLAGS} ${SRCS}
+
+install: FRC
+       install -s -o bin -g bin -m 755 prof ${DESTDIR}/usr/bin/prof
+
+lint: FRC
+       lint ${CFLAGS} ${SRCS}
+
+tags: FRC
+       ctags ${SRCS}
 
 
-prof.o: prof.c
-       cc -c $(CFLAGS) $(PLOT) prof.c
+FRC:
 
 
-install:
-       install -s prof $(DESTDIR)/usr/bin
+# DO NOT DELETE THIS LINE -- mkdep uses it.
+# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
 
 
-clean:
-       rm -f *.o prof
+prof.o: prof.c /usr/include/stdio.h /usr/include/sys/types.h
+prof.o: /usr/include/sys/stat.h /usr/include/a.out.h /usr/include/sys/exec.h
+prof.o: /usr/include/sys/time.h /usr/include/time.h
 
 
-depend:
+# IF YOU PUT ANYTHING HERE IT WILL GO AWAY