head	1.6;
access;
symbols;
locks; strict;
comment	@# @;


1.6
date	94.01.09.05.22.18;	author dkim;	state Exp;
branches;
next	1.5;

1.5
date	94.01.09.04.07.35;	author dkim;	state Exp;
branches;
next	1.4;

1.4
date	94.01.09.03.57.07;	author dkim;	state Exp;
branches;
next	1.3;

1.3
date	94.01.08.20.38.04;	author dkim;	state Exp;
branches;
next	1.2;

1.2
date	91.12.17.23.50.16;	author root;	state Exp;
branches;
next	1.1;

1.1
date	91.12.17.21.48.45;	author root;	state Exp;
branches;
next	;


desc
@Makefile (curses, bsd-net-2)
@


1.6
log
@detects linux or sunos auto.
@
text
@#
# Daeshik Kim // dkim@@sprint.com
#
SHELL	= /bin/sh

LIB	= libcurses.a

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	= $(LIB)(addbytes.o) $(LIB)(addch.o) $(LIB)(addstr.o) \
	$(LIB)(box.o) $(LIB)(clear.o) $(LIB)(clrtobot.o) $(LIB)(clrtoeol.o) \
	$(LIB)(cr_put.o) $(LIB)(cr_tty.o) $(LIB)(curses.o) $(LIB)(delch.o) \
	$(LIB)(deleteln.o) $(LIB)(delwin.o) $(LIB)(endwin.o) \
	$(LIB)(erase.o) $(LIB)(fullname.o) $(LIB)(getch.o) $(LIB)(getstr.o) \
	$(LIB)(idlok.o) $(LIB)(id_subwins.o) $(LIB)(initscr.o) \
	$(LIB)(insch.o) $(LIB)(insertln.o) $(LIB)(longname.o) $(LIB)(move.o) \
	$(LIB)(mvprintw.o) $(LIB)(mvscanw.o) $(LIB)(mvwin.o) \
	$(LIB)(newwin.o) $(LIB)(overlay.o) $(LIB)(overwrite.o) \
	$(LIB)(printw.o) $(LIB)(putchar.o) $(LIB)(refresh.o) $(LIB)(scanw.o) \
	$(LIB)(scroll.o) $(LIB)(toucholap.o) $(LIB)(standout.o) \
	$(LIB)(touchwin.o) $(LIB)(tstp.o) $(LIB)(unctrl.o)

MAN3	= curses.3	# do ya need this? :) - DKIM

# This is for LINUX (POSIX)
LINUXCFLAGS	= -pipe -O -DPOSIX
SUNCFLAGS	= -pipe -O

all:
	if [ `uname` = "SunOS" ]; then \
		$(MAKE) -e "CFLAGS=$(SUNCFLAGS)" $(LIB); ranlib $(LIB); \
	elif [ `uname` = "Linux" ]; then \
		$(MAKE) -e "CFLAGS=$(LINUXCFLAGS)" $(LIB); ranlib $(LIB); \
	fi


$(LIB): $(OBJS)

$(LIB)(curses.o): ./curses.c ./curses.h

clean:
	/bin/rm -f $(LIB)
@


1.5
log
@ranlib added
@
text
@d1 5
d28 1
a28 1
MAN3	= curses.3
d31 9
a39 2
#CFLAGS = -O -DPOSIX
CFLAGS	= -O
a40 2
all: $(LIB)
	ranlib $(LIB)
a42 1
	ranlib $@@
@


1.4
log
@new make :)
@
text
@d29 2
a30 1
all:	$(LIB)
d33 1
d36 1
@


1.3
log
@for linux and sun
@
text
@d1 3
a3 2
LIB=	curses
SRCS=	addbytes.c addch.c addstr.c box.c clear.c clrtobot.c clrtoeol.c \
d9 15
a23 1
MAN3=	curses.0
d26 2
a27 1
CFLAGS = # -DPOSIX
d29 1
a29 2
OBJS=	${SRCS:.c=.o}
all:	libcurses.a
d31 1
a31 5
lib${LIB}.a:: ${OBJS}
	@@echo building standard ${LIB} library
	@@rm -f lib${LIB}.a
	@@${AR} cq lib${LIB}.a ${OBJS} ${LDADD}
	ranlib lib${LIB}.a
d33 1
d35 1
a35 1
	/bin/rm -f libcurses.a *.o
@


1.2
log
@linux changes
@
text
@a0 2
#	@@(#)Makefile	5.10 (Berkeley) 6/24/90

d10 4
a13 2
CFLAGS+=-DPOSIX
OBJS+=	${SRCS:R:S/$/.o/g}
a15 2
# need to alter default rules in /usr/share/mk/bsd.lib.mk; we don't have
# lorder or tsort.
d19 1
a19 1
	@@${AR} cTq lib${LIB}.a ${OBJS} ${LDADD}
d22 2
a23 7

beforeinstall:
	-cd ${.CURDIR}; cmp -s curses.h ${DESTDIR}/usr/include/curses.h || \
	    install -c -o ${BINOWN} -g ${BINGRP} -m 444 curses.h \
	    ${DESTDIR}/usr/include

.include <bsd.prog.mk>
@


1.1
log
@Initial revision
@
text
@d12 13
d30 1
a30 1
.include <bsd.lib.mk>
@
