Add copyright.c to be always linked in

This commit is contained in:
Andrey A. Chernov
1994-10-09 09:27:55 +00:00
parent ceff08fff5
commit 7afcaa86db
4 changed files with 32 additions and 4 deletions
+4 -1
View File
@@ -1,3 +1,6 @@
# Makefile for ncurses
# $Id$
LIB= ncurses
INCDIR= /usr/include
CFLAGS+= -Wall -DMYTINFO -DTERMIOS -DGOOD_SELECT -DBSDTABS
@@ -11,7 +14,7 @@ SRCS= lib_kernel.c lib_pad.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_color.c \
lib_insstr.c lib_insdel.c lib_twait.c
lib_insstr.c lib_insdel.c lib_twait.c copyright.c
CLEANFILES+= lib_keyname.c ${.CURDIR}/keys.tries
beforedepend: ${.CURDIR}/keys.tries
+19
View File
@@ -0,0 +1,19 @@
char _ncurses_copyright[] = "\
/***************************************************************************\n\
* COPYRIGHT NOTICE *\n\
****************************************************************************\n\
* ncurses is copyright (C) 1992, 1993, 1994 *\n\
* by Zeyd M. Ben-Halim *\n\
* zmbenhal@netcom.com *\n\
* *\n\
* Permission is hereby granted to reproduce and distribute ncurses *\n\
* by any means and for any fee, whether alone or as part of a *\n\
* larger distribution, in source or in binary form, PROVIDED *\n\
* this notice remains in the sources and is reproduced in any *\n\
* documentation accompanying it or the applications linked with it. *\n\
* Any other use of ncurses, including incorporating it in another *\n\
* product is subject to written permission. *\n\
* *\n\
* ncurses comes AS IS with no warranty, implied or expressed. *\n\
* *\n\
***************************************************************************/\n";
+5 -2
View File
@@ -13,17 +13,20 @@
#include <stdlib.h>
#include "curses.priv.h"
extern char _ncurses_copyright[];
WINDOW *initscr()
{
char *use_it;
#ifdef TRACE
_init_trace();
if (_tracing)
_tracef("initscr() called");
#endif
use_it = _ncurses_copyright;
if (newterm(getenv("TERM"), stdout, stdin) == NULL)
return NULL;
return NULL;
else {
def_shell_mode();
def_prog_mode();
+4 -1
View File
@@ -1,3 +1,6 @@
# Makefile for ncurses
# $Id$
LIB= ncurses
INCDIR= /usr/include
CFLAGS+= -Wall -DMYTINFO -DTERMIOS -DGOOD_SELECT -DBSDTABS
@@ -11,7 +14,7 @@ SRCS= lib_kernel.c lib_pad.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_color.c \
lib_insstr.c lib_insdel.c lib_twait.c
lib_insstr.c lib_insdel.c lib_twait.c copyright.c
CLEANFILES+= lib_keyname.c ${.CURDIR}/keys.tries
beforedepend: ${.CURDIR}/keys.tries