home *** CD-ROM | disk | FTP | other *** search
/ Serving the Web / ServingTheWeb1995.disc1of1.iso / linux / slacksrce / d / libc / libc-4.6 / libc-4 / libc-linux / curses-old / Makebak < prev    next >
Encoding:
Text File  |  1992-03-22  |  971 b   |  31 lines

  1. #    @(#)Makefile    5.10 (Berkeley) 6/24/90
  2.  
  3. LIB=    curses
  4. SRCS=    addbytes.c addch.c addstr.c box.c clear.c clrtobot.c clrtoeol.c \
  5.     cr_put.c cr_tty.c curses.c delch.c deleteln.c delwin.c endwin.c \
  6.     erase.c fullname.c getch.c getstr.c idlok.c id_subwins.c initscr.c \
  7.     insch.c insertln.c longname.c move.c mvprintw.c mvscanw.c mvwin.c \
  8.     newwin.c overlay.c overwrite.c printw.c putchar.c refresh.c scanw.c \
  9.     scroll.c toucholap.c standout.c touchwin.c tstp.c unctrl.c
  10. MAN3=    curses.0
  11.  
  12. CFLAGS+=-DPOSIX
  13. OBJS+=    ${SRCS:R:S/$/.o/g}
  14. all:    libcurses.a
  15.  
  16. # need to alter default rules in /usr/share/mk/bsd.lib.mk; we don't have
  17. # lorder or tsort.
  18. lib${LIB}.a:: ${OBJS}
  19.     @echo building standard ${LIB} library
  20.     @rm -f lib${LIB}.a
  21.     @${AR} cTq lib${LIB}.a ${OBJS} ${LDADD}
  22.     ranlib lib${LIB}.a
  23.  
  24.  
  25. beforeinstall:
  26.     -cd ${.CURDIR}; cmp -s curses.h ${DESTDIR}/usr/include/curses.h || \
  27.         install -c -o ${BINOWN} -g ${BINGRP} -m 444 curses.h \
  28.         ${DESTDIR}/usr/include
  29.  
  30. .include <bsd.prog.mk>
  31.