# Copyright (c) 1987 Regents of the University of California.
# 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.5 (Berkeley) %G%
SRCS
= addbytes.c addch.c addstr.c box.c clear.c clrtobot.c clrtoeol.c \
cr_put.c cr_tty.c curses.c delch.c deleteln.c delwin.c endwin.c \
erase.c fullname.c getch.c getstr.c idlok.c id_subwins.c initscr.c \
insch.c insertln.c longname.c move.c mvprintw.c mvscanw.c mvwin.c \
newwin.c overlay.c overwrite.c printw.c putchar.c refresh.c scanw.c \
scroll.c toucholap.c standout.c touchwin.c tstp.c unctrl.c
OBJS
= addbytes.o addch.o addstr.o box.o clear.o clrtobot.o clrtoeol.o \
cr_put.o cr_tty.o curses.o delch.o deleteln.o delwin.o endwin.o \
erase.o fullname.o getch.o getstr.o idlok.o id_subwins.o initscr.o \
insch.o insertln.o longname.o move.o mvprintw.o mvscanw.o mvwin.o \
newwin.o overlay.o overwrite.o printw.o putchar.o refresh.o scanw.o \
scroll.o toucholap.o standout.o touchwin.o tstp.o unctrl.o
@
${CC} -c
-pg
${CFLAGS} $*.c
@
ld -x
-o profiled
/$*.o
-r
$*.o
all: libcurses libcurses_p
libcurses libcurses_p
: ${OBJS}
@echo building profiled libcurses
@cd profiled
; ar cu ..
/libcurses_p
${OBJS}
@echo building normal libcurses
rm -f
${OBJS} profiled
/*.o libcurses libcurses_p
rm -f
${MAN} tags .depend
install -o bin
-g bin
-m
644 libcurses
${DESTDIR}/usr
/lib
/libcurses.a
ranlib
${DESTDIR}/usr
/lib
/libcurses.a
install -o bin
-g bin
-m
644 libcurses_p
${DESTDIR}/usr
/lib
/libcurses_p.a
ranlib
${DESTDIR}/usr
/lib
/libcurses_p.a