from scratch; add Berkeley specific header
[unix-history] / usr / src / lib / libcurses / Makefile
index d91a3b1..b281cca 100644 (file)
@@ -1,9 +1,20 @@
 #
 # Copyright (c) 1987 Regents of the University of California.
 #
 # Copyright (c) 1987 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
+# All rights reserved.
 #
 #
-#      @(#)Makefile    5.2     (Berkeley)      %G%
+# Redistribution and use in source and binary forms are permitted
+# provided that the above copyright notice and this paragraph are
+# duplicated in all such forms and that any documentation,
+# advertising materials, and other materials related to such
+# distribution and use acknowledge that the software was developed
+# by the University of California, Berkeley.  The name of the
+# University may not be used to endorse or promote products derived
+# from this software without specific prior written permission.
+# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+#
+#      @(#)Makefile    5.4 (Berkeley) %G%
 #
 CFLAGS=        -O
 LIBC=  /lib/libc.a
 #
 CFLAGS=        -O
 LIBC=  /lib/libc.a
@@ -21,12 +32,11 @@ OBJS=       addbytes.o addch.o addstr.o box.o clear.o clrtobot.o clrtoeol.o \
        scroll.o toucholap.o standout.o touchwin.o tstp.o unctrl.o
 
 .c.o:
        scroll.o toucholap.o standout.o touchwin.o tstp.o unctrl.o
 
 .c.o:
-       ${CC} -c -pg ${CFLAGS} $*.c
-       ld -x -r $*.o
-       mv a.out profiled/$*.o
-       ${CC} -c ${CFLAGS} $*.c
-       ld -x -r $*.o
-       mv a.out $*.o
+       @${CC} -c -pg ${CFLAGS} $*.c
+       @ld -x -o profiled/$*.o -r $*.o
+       ${CC} ${CFLAGS} -c $*.c
+       @ld -x -r $*.o
+       @mv a.out $*.o
 
 all: libcurses libcurses_p
 
 
 all: libcurses libcurses_p
 
@@ -38,9 +48,6 @@ libcurses libcurses_p: ${OBJS}
        @ar cu libcurses ${OBJS}
        ranlib libcurses
 
        @ar cu libcurses ${OBJS}
        ranlib libcurses
 
-test: libcurses test.o
-       ${CC} ${CFLAGS} -o $@ test.o libcurses -ltermlib
-
 clean: FRC
        rm -f ${OBJS} profiled/*.o libcurses libcurses_p
 
 clean: FRC
        rm -f ${OBJS} profiled/*.o libcurses libcurses_p