4.4BSD snapshot (revision 8.1); add 1993 to copyright
[unix-history] / usr / src / lib / libcurses / Makefile
index f72fc7a..8bb6a4b 100644 (file)
-#
-# cursor package maker
-#
-# @(#)Makefile 1.12 (Berkeley) %G%
-#
-HEADERS=curses.h unctrl.h curses.ext
-CFILES=        box.c clear.c initscr.c endwin.c mvprintw.c mvscanw.c mvwin.c \
-       newwin.c overlay.c overwrite.c printw.c scanw.c refresh.c \
-       touchwin.c erase.c clrtobot.c clrtoeol.c cr_put.c cr_tty.c \
-       longname.c delwin.c insertln.c deleteln.c scroll.c getstr.c \
-       getch.c addstr.c addch.c move.c curses.c unctrl.c standout.c \
-       tstp.c insch.c delch.c
-
-OBJS=  box.o clear.o initscr.o endwin.o mvprintw.o mvscanw.o mvwin.o \
-       newwin.o overlay.o overwrite.o printw.o scanw.o refresh.o \
-       touchwin.o erase.o clrtobot.o clrtoeol.o cr_put.o cr_tty.o \
-       longname.o delwin.o insertln.o deleteln.o scroll.o getstr.o \
-       getch.o addstr.o addch.o move.o curses.o unctrl.o standout.o \
-       tstp.o insch.o delch.o
-
-POBJS= box.p clear.p initscr.p endwin.p mvprintw.p mvscanw.p mvwin.p \
-       newwin.p overlay.p overwrite.p printw.p scanw.p refresh.p \
-       touchwin.p erase.p clrtobot.p clrtoeol.p cr_put.p cr_tty.p \
-       longname.p delwin.p insertln.p deleteln.p scroll.p getstr.p \
-       getch.p addstr.p addch.p move.p curses.p unctrl.p standout.p \
-       tstp.p insch.p delch.p
-
-
-CTAGS= ctags
-CC=    cc
-LINT=  lint
-LPASS1=        /usr/lib/lint/lint1
-AR=    ar
-RM=    rm
-LN=    ln
-CFL=   
-CFLAGS=        -O ${CFL}
-LDFLAGS=-n
-.SUFFIXES: .p
-
-.c.p:
-       rm -f x.c
-       ln $*.c x.c
-       ${CC} ${CFLAGS} -p -c x.c
-       mv x.o $*.p
-
-.DEFAULT:
-       sccs get $@
-
-libcurses: ${HEADERS} crlib
-
-crlib: ${OBJS}
-       ${AR} rv crlib $?
-       ranlib crlib
-
-pcrlib: ${POBJS}
-       rm -f x.c
-       ${AR} rv pcrlib $?
-       ranlib pcrlib
-
-test:  crlib test.o
-       ${CC} ${LDFLAGS} ${CFLAGS} -o test test.o -lcurses -ltermlib
-
-cat.o: curses.h
-       ${CC} -c ${CFLAGS} cat.c
-
-new:   cleanup ctags
-       ${CC} -c ${CFLAGS} ${CFILES}
-       ${AR} qv crlib ${OBJS}
-       ${RM} /ya/staff/arnold/=eye/crlib /ya/staff/arnold/=hacks/crlib \
-             /ya/staff/arnold/=eye/curses.h /ya/staff/arnold/=hacks/curses.h
-
-clean:
-       rm ${OBJS} crlib
-
-ctags:
-       ${CTAGS} ${CFILES} curses.h
-
-lint:
-       ${LINT} -hxb ${CFL} ${CFILES} -lcurses > lint.out
-
-lpr:
-       -pr curses.h ${CFILES} | lpr
-       -lpq
-
-tp:
-       tp crm0 Makefile tags ${HEADERS} ${CFILES} llib-lcurses
-
-tar:
-       tar crvf curses.tar Makefile tags ${HEADERS} ${CFILES} llib-lcurses
-
-ar:
-       ar crv curses.ar Makefile tags ${HEADERS} ${CFILES} llib-lcurses
-
-llib-lcurses.ln: llib-lcurses
-       -(/lib/cpp -C -Dlint llib-lcurses | ${LPASS1} > llib-lcurses.ln ) 2>&1 | grep -v warning
-
-install:
-       install -c crlib ${DESTDIR}/usr/lib/libcurses.a
-       ranlib ${DESTDIR}/usr/lib/libcurses.a
+#      @(#)Makefile    5.16 (Berkeley) %G%
+
+CFLAGS+=#-DTFILE=\"/dev/ttyp0\"
+CFLAGS+=-D_CURSES_PRIVATE -I${.CURDIR}
+LIB=   curses
+SRCS=  addbytes.c addch.c addnstr.c box.c clear.c clrtobot.c clrtoeol.c \
+       cr_put.c ctrace.c curses.c delch.c deleteln.c delwin.c erase.c \
+       fullname.c getch.c getstr.c hash.c id_subwins.c idlok.c initscr.c \
+       insch.c insertln.c longname.c move.c mvwin.c newwin.c overlay.c \
+       overwrite.c printw.c putchar.c refresh.c scanw.c scroll.c setterm.c \
+       standout.c toucholap.c touchwin.c tscroll.c tstp.c tty.c unctrl.c
+MAN3=  curses.0
+
+beforeinstall:
+       -cd ${.CURDIR}; cmp -s curses.h ${DESTDIR}/usr/include/curses.h > \
+           /dev/null 2>&1 || \
+           install -c -o ${BINOWN} -g ${BINGRP} -m 444 curses.h \
+           ${DESTDIR}/usr/include
+
+.include <bsd.lib.mk>