head     1.7;
branch   ;
access   ;
symbols  ;
locks    bin:1.7; strict;
comment  @# @;


1.7
date     93.04.12.14.07.28;  author bin;  state Exp;
branches ;
next     1.6;

1.6
date     93.03.03.09.37.02;  author bin;  state Exp;
branches ;
next     1.5;

1.5
date     93.01.06.09.28.54;  author bin;  state Exp;
branches ;
next     1.4;

1.4
date     92.11.13.15.42.27;  author bin;  state Exp;
branches ;
next     1.3;

1.3
date     92.05.12.13.31.33;  author bin;  state Exp;
branches ;
next     1.2;

1.2
date     92.04.13.14.42.19;  author bin;  state Exp;
branches ;
next     1.1;

1.1
date     92.03.26.11.44.29;  author bin;  state Exp;
branches ;
next     ;


desc
@@


1.7
log
@Udo: 3rd color update
.,
@
text
@#*********************************************************************
#                         COPYRIGHT NOTICE                           *
#*********************************************************************
#        This software is copyright (C) 1982 by Pavel Curtis         *
#                                                                    *
#        Permission is granted to reproduce and distribute           *
#        this file by any means so long as no fee is charged         *
#        above a nominal handling fee and so long as this            *
#        notice is always included in the copies.                    *
#                                                                    *
#        Other rights are reserved except as explicitly granted      *
#        by written permission of the author.                        *
#                Pavel Curtis                                        *
#                Computer Science Dept.                              *
#                405 Upson Hall                                      *
#                Cornell University                                  *
#                Ithaca, NY 14853                                    *
#                                                                    *
#                Ph- (607) 256-4934                                  *
#                                                                    *
#                Pavel.Cornell@@Udel-Relay   (ARPAnet)                *
#                decvax!cornell!pavel       (UUCPnet)                *
#********************************************************************/

# RCSid: $Header: /src386/usr/lib/ncurses/RCS/Makefile,v 1.2 92/04/13 14:42:19 bin Exp Locker: bin $
DESTDIR=
DESTDIR2=

SRCDIR= /usr/lib/terminfo
LIB=/usr/lib
INCL=/usr/include

#
# Additional flags which could be defined in CFLAGS:
#	TRACE	compile library with trace function
#	RCSHDR	compile the RCS headers into the functions
#
CFLAGS= -O -DSRCDIR='"$(SRCDIR)"'

SRCS=	comp_main.c comp_hash.c comp_captab.c comp_scan.c comp_error.c \
	comp_parse.c read_entry.c \
	dump.c dump_names.c  \
	captoinfo.c getcap.c putinfo.c \
	lib_setup.c lib_fixterm.c lib_tparm.c lib_tputs.c \
	lib_unctrl.c lib_raw.c lib_vidattr.c lib_trace.c \
	lib_beep.c lib_doupdate.c lib_refresh.c lib_initscr.c lib_newwin.c \
	lib_addch.c lib_addstr.c lib_scroll.c lib_clreol.c lib_touchwin.c \
	lib_mvcur.c lib_delwin.c lib_endwin.c lib_clrbot.c lib_move.c \
	lib_printw.c lib_scanw.c lib_erase.c lib_getch.c lib_options.c \
	lib_box.c lib_clear.c lib_delch.c lib_deleteln.c lib_insch.c \
	lib_insertln.c lib_getstr.c lib_mvwin.c lib_longname.c lib_tstp.c \
	lib_newterm.c lib_set_term.c lib_overlay.c lib_scrreg.c lib_setacs.c \
	lib_napms.c lib_color.c lib_tget.c

#
# Normal, optimised object files
#
LIBOBJS= lib_setup.o lib_fixterm.o lib_tparm.o read_entry.o lib_tputs.o \
	lib_unctrl.o lib_raw.o lib_vidattr.o lib_trace.o lib_beep.o \
	lib_doupdate.o lib_refresh.o lib_initscr.o lib_newwin.o lib_addch.o \
	lib_addstr.o lib_scroll.o lib_clreol.o lib_touchwin.o lib_mvcur.o \
	lib_delwin.o lib_endwin.o lib_clrbot.o lib_move.o lib_printw.o \
	lib_scanw.o lib_erase.o lib_getch.o lib_options.o \
	lib_box.o lib_clear.o lib_delch.o lib_deleteln.o lib_insch.o \
	lib_insertln.o lib_getstr.o lib_mvwin.o lib_longname.o lib_tstp.o \
	lib_newterm.o lib_set_term.o lib_overlay.o lib_scrreg.o lib_setacs.o \
	lib_napms.o lib_color.o lib_tget.o

COMPOBJS= comp_main.o comp_hash.o comp_captab.o comp_scan.o comp_error.o \
	comp_parse.o read_entry.o

CTOIOBJS= captoinfo.o getcap.o putinfo.o

all:	lib tic infocmp captoinfo
	@@echo "all done"

install: all
	su root installer

lib:	libcurses.a	
	@@echo "lib done"

libcurses.a:	$(LIBOBJS)
	rm -f $(DESTDIR)libcurses.a
	ar rcs $(DESTDIR)libcurses.a $(LIBOBJS)

term.h: Caps MKterm.h.awk
	awk -f MKterm.h.awk Caps > term.h

tic: $(COMPOBJS)
	cc -s -o $(DESTDIR2)tic $(COMPOBJS)

comp_captab.c: Caps MKcaptab.awk
	awk -f MKcaptab.awk Caps > comp_captab.c

comp_captab.o: comp_captab.c

captoinfo:	$(CTOIOBJS) libcurses.a
		cc -s $(CFLAGS) $(CTOIOBJS) -o $(DESTDIR2)captoinfo libcurses.a

putinfo.c: Caps infotail.src MKinfo.awk
	awk -f MKinfo.awk Caps
	cat boolnames numnames strnames infotail.src > putinfo.c
	-rm -f boolnames numnames strnames

captoinfo.o:	captoinfo.c

getcap.o:	getcap.c

putinfo.o:	putinfo.c

infocmp: dump.o dump_names.o read_entry.o
	cc -s -o $(DESTDIR2)infocmp dump.o dump_names.o read_entry.o

dump.o: dump.c term.h compiler.h

dump_names.o: dump_names.c

dump_names.c: Caps MKnames.awk
	awk -f MKnames.awk Caps
	cat boolnames numnames strnames > dump_names.c
	-rm -f boolnames numnames strnames

lint: $(SRCS)
	lint $(CFLAGS) $(SRCS) > lint.out

clean:
	-rm -f *.[od] term.h comp_captab.c dump_names.c putinfo.c tags \
	tic infocmp captoinfo libcurses.a lint.out

tags:	*.c *.h
	ctags *.c *.h

save : $(SRCS) Makefile
	tar cf - $< | compress -c > /tmp/ncurses.tar.Z
	uucp -r /tmp/ncurses.tar.Z mwc!/v/cef

list : $(SRCS) Makefile
	ph $?
	touch list

depend:	$(SRCS)
	grep "^\#include" $< \
		| sed 's/\([^:]*\).c:[^"]*"\([^"]*\)".*/\1.o: \2/' \
		| sed '/\#include/d' > makedep
	echo '/^\# DO NOT DELETE THIS LINE/+2,$$d' > eddep
	echo '$$r makedep' >> eddep
#	echo '/^\# DO NOT DELETE THIS LINE/+2,$$s/\.o/.d/' >> eddep
#	echo '$$r makedep' >> eddep
	echo 'w' >> eddep
	cp Makefile Makefile.bak
	ed Makefile < eddep
	rm makedep eddep
	echo >> Makefile
	echo "\# DEPENDENCIES MUST END AT END OF FILE" >> Makefile
	echo "\# IF YOU PUT STUFF HERE, IT WILL GO AWAY" >> Makefile
	echo "\# See make depend, above" >> Makefile

# DO NOT DELETE THIS LINE - make depend needs it

comp_main.o: compiler.h
comp_hash.o: compiler.h
comp_hash.o: term.h
comp_captab.o: compiler.h
comp_captab.o: term.h
comp_scan.o: compiler.h
comp_error.o: compiler.h
comp_parse.o: compiler.h
comp_parse.o: term.h
comp_parse.o: object.h
read_entry.o: term.h
read_entry.o: object.h
dump.o: compiler.h
dump.o: term.h
lib_setup.o: curses.h
lib_setup.o: curses.priv.h
lib_setup.o: term.h
lib_fixterm.o: curses.h
lib_fixterm.o: curses.priv.h
lib_fixterm.o: term.h
lib_tparm.o: curses.h
lib_tparm.o: curses.priv.h
lib_tparm.o: term.h
lib_tputs.o: curses.h
lib_tputs.o: curses.priv.h
lib_tputs.o: term.h
lib_raw.o: curses.h
lib_raw.o: curses.priv.h
lib_raw.o: term.h
lib_vidattr.o: curses.h
lib_vidattr.o: curses.priv.h
lib_vidattr.o: term.h
lib_trace.o: term.h
lib_trace.o: curses.h
lib_trace.o: curses.priv.h
lib_beep.o: curses.h
lib_beep.o: curses.priv.h
lib_beep.o: term.h
lib_doupdate.o: curses.h
lib_doupdate.o: curses.priv.h
lib_doupdate.o: term.h
lib_refresh.o: curses.h
lib_refresh.o: curses.priv.h
lib_initscr.o: curses.h
lib_initscr.o: curses.priv.h
lib_newwin.o: term.h
lib_newwin.o: curses.h
lib_newwin.o: curses.priv.h
lib_addch.o: curses.h
lib_addch.o: curses.priv.h
lib_addch.o: terminfo.h
lib_addch.o: unctrl.h
lib_addstr.o: curses.h
lib_addstr.o: curses.priv.h
lib_scroll.o: curses.h
lib_scroll.o: curses.priv.h
lib_clreol.o: curses.h
lib_clreol.o: curses.priv.h
lib_touchwin.o: curses.h
lib_touchwin.o: curses.priv.h
lib_mvcur.o: term.h
lib_mvcur.o: curses.h
lib_mvcur.o: curses.priv.h
lib_delwin.o: curses.h
lib_delwin.o: curses.priv.h
lib_endwin.o: term.h
lib_endwin.o: curses.h
lib_endwin.o: curses.priv.h
lib_clrbot.o: curses.h
lib_clrbot.o: curses.priv.h
lib_move.o: curses.h
lib_move.o: curses.priv.h
lib_printw.o: curses.h
lib_printw.o: curses.priv.h
lib_scanw.o: curses.h
lib_scanw.o: curses.priv.h
lib_erase.o: curses.h
lib_erase.o: curses.priv.h
lib_getch.o: curses.h
lib_getch.o: curses.priv.h
lib_options.o: term.h
lib_options.o: curses.h
lib_options.o: curses.priv.h
lib_box.o: curses.h
lib_box.o: curses.priv.h
lib_clear.o: curses.h
lib_clear.o: curses.priv.h
lib_delch.o: curses.h
lib_delch.o: curses.priv.h
lib_delch.o: term.h
lib_deleteln.o: curses.h
lib_deleteln.o: curses.priv.h
lib_insch.o: curses.h
lib_insch.o: curses.priv.h
lib_insertln.o: curses.h
lib_insertln.o: curses.priv.h
lib_getstr.o: curses.h
lib_getstr.o: curses.priv.h
lib_getstr.o: unctrl.h
lib_mvwin.o: curses.h
lib_mvwin.o: curses.priv.h
lib_longname.o: curses.h
lib_longname.o: curses.priv.h
lib_tstp.o: term.h
lib_tstp.o: curses.h
lib_tstp.o: curses.priv.h
lib_newterm.o: curses.h
lib_newterm.o: term.h
lib_newterm.o: curses.priv.h
lib_set_term.o: curses.h
lib_set_term.o: curses.priv.h
lib_set_term.o: term.h
lib_overlay.o: curses.h
lib_overlay.o: curses.priv.h
lib_scrreg.o: curses.h
lib_scrreg.o: curses.priv.h
lib_setacs.o: curses.h
lib_setacs.o: term.h
lib_color.o: curses.h
lib_color.o: curses.priv.h
lib_color.o: term.h

# DEPENDENCIES MUST END AT END OF FILE
# IF YOU PUT STUFF HERE, IT WILL GO AWAY
# See make depend, above
@


1.6
log
@Udo: added color code
@
text
@d43 1
a43 1
	captoinfo.c getcap.c putinfo.c tget.c \
d53 1
a53 1
	lib_napms.c lib_color.c
d67 1
a67 1
	lib_napms.o lib_color.o
d72 1
a72 1
CTOIOBJS= captoinfo.o getcap.o putinfo.o tget.o
d74 1
a74 1
all:	tic infocmp captoinfo lib
d98 2
a99 2
captoinfo:	$(CTOIOBJS)
		cc -s $(CFLAGS) $(CTOIOBJS) -o $(DESTDIR2)captoinfo
a111 2
tget.o:		tget.c

d211 1
d280 1
@


1.5
log
@vlad: update from Udo
@
text
@d26 2
a27 2
DESTDIR=/bin386/usr/lib/
DESTDIR2=/bin386/usr/bin/
d53 1
a53 1
	lib_napms.c
d67 1
a67 1
	lib_napms.o
d127 1
a127 1
	lint $(DFLAGS) $(SRCS) > lint.out
d131 1
a131 1
	tic infocmp captoinfo libcurses.a
d280 2
@


1.4
log
@cef: update from Udo for pads and color
@
text
@d38 1
a38 1
CFLAGS= -O -DSRCDIR='"$(SRCDIR)"' -I. -I..
d52 2
a53 1
	lib_newterm.c lib_set_term.c lib_overlay.c lib_scrreg.c lib_setacs.c
d66 2
a67 1
	lib_newterm.o lib_set_term.o lib_overlay.o lib_scrreg.o lib_setacs.o
d78 1
a78 1
	su root `srcpath installer`
d87 2
a88 2
term.h: MKterm.h.awk Caps 
	awk -f `srcpath MKterm.h.awk` `srcpath Caps` > term.h
d94 1
a94 1
	awk -f `srcpath MKcaptab.awk` `srcpath Caps` > comp_captab.c
d102 2
a103 2
	awk -f `srcpath MKinfo.awk` `srcpath Caps`
	cat boolnames numnames strnames `srcpath infotail.src` > putinfo.c
d122 1
a122 1
	awk -f `srcpath MKnames.awk` `srcpath Caps`
@


1.3
log
@updates by cef
@
text
@d26 2
a29 2
#CFLAGS= -A -O -DSRCDIR='"$(SRCDIR)"' -DTRACE	# compile with trace
CFLAGS= -A -O -DSRCDIR='"$(SRCDIR)"'
d33 7
d52 1
a52 1
	lib_newterm.c lib_set_term.c lib_overlay.c lib_scrreg.c
d65 1
a65 1
	lib_newterm.o lib_set_term.o lib_overlay.o lib_scrreg.o
d72 1
a72 1
all:	tic infocmp lib captoinfo
d82 2
a83 2
	rm -f libcurses.a
	ar rcs libcurses.a $(LIBOBJS)
d85 2
a86 2
term.h: Caps MKterm.h.awk
	awk -f `srcpath MKterm.h.awk` Caps > term.h
d89 1
a89 1
	cc -o tic $(COMPOBJS)
d92 1
a92 1
	awk -f `srcpath MKcaptab.awk` Caps > comp_captab.c
d97 1
a97 1
		cc $(CFLAGS) $(CTOIOBJS) -o captoinfo
d99 3
a101 3
putinfo.c: Caps MKnames.awk
	awk -f `srcpath MKinfo.awk` Caps
	cat boolnames numnames strnames infotail > putinfo.c
d104 1
a104 3
save : $(SRCS) Makefile
	tar cf - $< | compress -c > /tmp/ncurses.tar.Z
	uucp -r /tmp/ncurses.tar.Z mwc!/v/cef
a105 6
list : $(SRCS) Makefile
	ph $?
	touch list

captoinfo.o:	captoinfo.c

d113 1
a113 1
	cc -o infocmp dump.o dump_names.o read_entry.o
d120 1
a120 1
	awk -f `srcpath MKnames.awk` Caps
d128 2
a129 1
	-rm -f *.[od] term.h comp_captab.c tags dump_names.c tic infocmp libcurses.a
d134 8
d143 1
a143 1
	grep "^#include" $< \
d145 2
a146 2
		| sed '/#include/d' > makedep
	echo '/^# DO NOT DELETE THIS LINE/+2,$$d' > eddep
d148 2
a149 2
	echo '/^# DO NOT DELETE THIS LINE/+2,$$s/\.o/.d/' >> eddep
	echo '$$r makedep' >> eddep
d152 1
a152 1
	ex - Makefile < eddep
d155 3
a157 3
	echo "# DEPENDENCIES MUST END AT END OF FILE" >> Makefile
	echo "# IF YOU PUT STUFF HERE, IT WILL GO AWAY" >> Makefile
	echo "# See make depend, above" >> Makefile
d276 2
@


1.2
log
@*** empty log message ***
@
text
@d25 1
a25 1
# RCSid: $Header:   RCS/Makefile.v  Revision 2.3  91/12/07  20:09:50  munk  Exp$
d63 1
a63 1
CTOIIBJS= captoinfo.c getcap.c putinfo.c tget.c
d69 1
a69 9
	sed -e 's/include *"curses.h" *$$/include <ncurses.h>/' \
		`srcpath term.h' > /usr/include/term.h
	sed -e 's/include *"terminfo.h" *$$/include <terminfo.h>/' \
		`srcpath curses.h` > /usr/include/ncurses.h
	cp `srcpath terminfo.h` /usr/include/terminfo.h
	cp `srcpath unctrl.h` /usr/include/unctrl.h
	cp tic $(SRCDIR)/tic
	cp infocmp $(SRCDIR)/infocmp
	cp libcurses.a /usr/lib/libncurses.a
d97 8
@


1.1
log
@Initial revision
@
text
@d36 1
d63 3
a65 1
all:	tic infocmp lib
d97 16
@
