head	1.2;
access;
symbols
	netbsd-5-2-3-RELEASE:1.2
	netbsd-5-1-5-RELEASE:1.2
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.2
	riastradh-drm2-base:1.2
	netbsd-5-2-2-RELEASE:1.2
	netbsd-5-1-4-RELEASE:1.2
	netbsd-5-2-1-RELEASE:1.2
	netbsd-5-1-3-RELEASE:1.2
	netbsd-5-2:1.2.0.8
	netbsd-5-2-RELEASE:1.2
	netbsd-5-2-RC1:1.2
	netbsd-5-1-2-RELEASE:1.2
	netbsd-5-1-1-RELEASE:1.2
	netbsd-5-1:1.2.0.6
	netbsd-5-1-RELEASE:1.2
	netbsd-5-1-RC4:1.2
	netbsd-5-1-RC3:1.2
	netbsd-5-1-RC2:1.2
	netbsd-5-1-RC1:1.2
	netbsd-5-0-2-RELEASE:1.2
	netbsd-5-0-1-RELEASE:1.2
	netbsd-5-0:1.2.0.4
	netbsd-5-0-RELEASE:1.2
	netbsd-5-0-RC4:1.2
	netbsd-5-0-RC3:1.2
	netbsd-5-0-RC2:1.2
	netbsd-5-0-RC1:1.2
	netbsd-5:1.2.0.2
	netbsd-5-base:1.2
	netbsd-2-0-3-RELEASE:1.1.1.9
	netbsd-2-1:1.1.1.9.0.8
	netbsd-2-1-RELEASE:1.1.1.9
	netbsd-2-1-RC6:1.1.1.9
	netbsd-2-1-RC5:1.1.1.9
	netbsd-2-1-RC4:1.1.1.9
	netbsd-2-1-RC3:1.1.1.9
	netbsd-2-1-RC2:1.1.1.9
	netbsd-2-1-RC1:1.1.1.9
	netbsd-2-0-2-RELEASE:1.1.1.9
	netbsd-2-0-1-RELEASE:1.1.1.9
	netbsd-2:1.1.1.9.0.6
	netbsd-2-base:1.1.1.9
	netbsd-2-0-RELEASE:1.1.1.9
	netbsd-2-0-RC5:1.1.1.9
	netbsd-2-0-RC4:1.1.1.9
	netbsd-2-0-RC3:1.1.1.9
	netbsd-2-0-RC2:1.1.1.9
	netbsd-2-0-RC1:1.1.1.9
	netbsd-2-0:1.1.1.9.0.4
	netbsd-2-0-base:1.1.1.9
	netbsd-1-6-PATCH002-RELEASE:1.1.1.9
	netbsd-1-6-PATCH002:1.1.1.9
	netbsd-1-6-PATCH002-RC4:1.1.1.9
	netbsd-1-6-PATCH002-RC3:1.1.1.9
	netbsd-1-6-PATCH002-RC2:1.1.1.9
	netbsd-1-6-PATCH002-RC1:1.1.1.9
	netbsd-1-6:1.1.1.9.0.2
	netbsd-1-6-base:1.1.1.9
	netbsd-1-6-PATCH001:1.1.1.9
	netbsd-1-6-RELEASE:1.1.1.9
	netbsd-1-5-PATCH003:1.1.1.9
	netbsd-1-5-PATCH002:1.1.1.9
	netbsd-1-5-PATCH001:1.1.1.9
	xf-3_3-branch-2001-03-05:1.1.1.9
	netbsd-1-5-RELEASE:1.1.1.8
	netbsd-1-4-PATCH003:1.1.1.8
	xterm-patch-133:1.1.1.8
	Thomas_Dickey:1.1.1
	v4-0:1.1.1.8
	netbsd-1-4-PATCH002:1.1.1.7
	v3-3-6:1.1.1.7
	comdex-fall-1999:1.1.1.7
	v3-3-5:1.1.1.7
	v3-3-4:1.1.1.6
	netbsd-1-4-PATCH001:1.1.1.6
	netbsd-1-4-RELEASE:1.1.1.6
	v3-3-3-1:1.1.1.6
	netbsd-1-3-PATCH003:1.1.1.6
	v3-3-3:1.1.1.6
	pre-xf86-3-3-3-import:1.1.1.5
	xterm-82:1.1.1.5
	netbsd-1-3-PATCH002:1.1.1.5
	xterm-74:1.1.1.5
	xterm-70:1.1.1.4
	DICKEY:1.1.1
	v3-3-2:1.1.1.3
	netbsd-1-3-RELEASE:1.1.1.2
	v3-3-1:1.1.1.2
	v3-3:1.1.1.2
	v3-2:1.1.1.1
	XF86:1.1.1;
locks; strict;
comment	@# @;


1.2
date	2005.01.07.18.54.52;	author tron;	state dead;
branches;
next	1.1;

1.1
date	97.03.15.06.15.31;	author scottr;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	97.03.15.06.15.31;	author scottr;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	97.06.30.14.03.02;	author mrg;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	98.03.08.09.13.56;	author veego;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	98.04.10.10.15.47;	author veego;	state Exp;
branches;
next	1.1.1.5;

1.1.1.5
date	98.05.01.08.54.00;	author veego;	state Exp;
branches;
next	1.1.1.6;

1.1.1.6
date	98.11.23.15.42.19;	author veego;	state Exp;
branches;
next	1.1.1.7;

1.1.1.7
date	99.09.01.18.53.38;	author veego;	state Exp;
branches;
next	1.1.1.8;

1.1.1.8
date	2000.05.26.07.11.21;	author tron;	state Exp;
branches;
next	1.1.1.9;

1.1.1.9
date	2001.03.05.19.36.42;	author tron;	state Exp;
branches;
next	;


desc
@@


1.2
log
@EOL of XFree86 3.3.6, approved by core@@NetBSD.org
@
text
@XCOMM $XConsortium: Imakefile /main/65 1996/02/02 14:27:54 kaleb $
XCOMM $XFree86: xc/programs/xterm/Imakefile,v 3.11 1996/10/16 14:45:15 dawes Exp $
XCOMM
XCOMM                         Attention xterm porters
XCOMM
XCOMM
XCOMM Xterm assumes that bcopy can handle overlapping arguments.  If your
XCOMM bcopy (or memcpy) cannot, write a routine called bcopy and link it in
XCOMM or add -Dbcopy=mybcopy to the DEFINES list below.
XCOMM

/*
 * Fixes to allow compile with X11R5
 */
#ifndef XkbClientDefines
#define XkbClientDefines /**/
#endif

#ifndef XkbClientDepLibs
#define XkbClientDepLibs /**/
#endif

#ifndef XkbClientLibs
#define XkbClientLibs /**/
#endif

/*
 * add -DWTMP and -DLASTLOG if you want them; make sure that bcopy can
 * handle overlapping copies before using it.
 */
#if SetTtyGroup			/* turn on in config/machine.cf */
   TTYGROUPDEF = -DUSE_TTY_GROUP
#endif
#if UsePUCCPtyd			/* turn on in config/site.def */
    PUCCPTYDDEF = -DPUCC_PTYD		/* does not need to be setuid */
         PTYLIB = -lpucc
#endif

#if XtermWithI18N
        I18NDEF = -DI18N
#endif

#ifdef OS2Architecture
        EXTRA_DEFINES = -DDEBUG -DALLOWLOGGING
#endif

#if defined(NetBSDArchitecture) || defined(OpenBSDArchitecture) || (defined(FreeBSDArchitecture) && (OSMajorVersion < 2)) || (defined(SunArchitecture) && !defined(SVR4Architecture)) || defined(i386Sco325Architecture)
 TERMCAPDEFINES = -DNO_TERMCAP_H
#endif

 OSMAJORVERSION = OSMajorVersion
 OSMINORVERSION = OSMinorVersion

#if !defined(AmoebaArchitecture) && !defined(OS2Architecture)
        UTMPDEF = -DUTMP
#endif

#ifdef AmoebaArchitecture
        EXTRASRC = ttysvr.c
        EXTRAOBJ = ttysvr.o
#endif
   MAIN_DEFINES = $(UTMPDEF) $(TTYGROUPDEF) $(PUCCPTYDDEF) $(NOPOSIXTERMIOS) \
		  -DOSMAJORVERSION=$(OSMAJORVERSION) \
		  -DOSMINORVERSION=$(OSMINORVERSION)
   MISC_DEFINES = /* -DALLOWLOGFILEEXEC */ 
    XKB_DEFINES = XkbClientDefines
        DEFINES = $(XKB_DEFINES) $(TERMCAPDEFINES)

#ifdef OS2Architecture
          MAINSRC = os2main.c
          MAINOBJ = os2main.o 
#else
          MAINSRC = main.c
          MAINOBJ = main.o
#endif
          SRCS1 = button.c charproc.c cursor.c data.c input.c \
		  $(MAINSRC) menu.c misc.c screen.c scrollbar.c tabs.c \
		  TekPrsTbl.c Tekproc.c util.c VTPrsTbl.c $(EXTRASRC)
          OBJS1 = button.o charproc.o cursor.o data.o input.o \
		  $(MAINOBJ) menu.o misc.o screen.o scrollbar.o tabs.o \
		  TekPrsTbl.o Tekproc.o util.o VTPrsTbl.o $(EXTRAOBJ)
          SRCS2 = resize.c
          OBJS2 = resize.o
           SRCS = $(SRCS1) $(SRCS2)
           OBJS = $(OBJS1) $(OBJS2)
       PROGRAMS = ProgramTargetName(resize) ProgramTargetName(xterm)
       DEPLIBS1 = XkbClientDepLibs XawClientDepLibs
       DEPLIBS2 = 

#ifndef TermcapLibrary
#if SystemV && !defined(MacIIArchitecture)
#if defined(CrayArchitecture) || defined(HPArchitecture) || defined(RsArchitecture)
#define TermcapLibrary -lcurses		/* special cases of System V */
#else
#define TermcapLibrary -ltermlib	/* usually in here */
#endif
#else
#define TermcapLibrary -ltermcap	/* bsd puts it here */
#endif
#endif

     TERMCAPLIB = TermcapLibrary

AllTarget($(PROGRAMS))

SpecialCObjectRule(main,$(_NOOP_),$(MAIN_DEFINES))
SpecialCObjectRule(misc,$(_NOOP_),$(MISC_DEFINES))
SpecialCObjectRule(charproc,$(_NOOP_),$(MISC_DEFINES))

#if InstallXtermSetUID
SetUIDProgramTarget(xterm,$(OBJS1),$(DEPLIBS1),XkbClientLibs XawClientLibs,$(TERMCAPLIB) $(PTYLIB))
#else
NormalProgramTarget(xterm,$(OBJS1),$(DEPLIBS1),XkbClientLibs XawClientLibs,$(TERMCAPLIB) $(PTYLIB))
#endif

#if InstallXtermSetUID && defined(SunArchitecture) && HasSharedLibraries && OSMajorVersion < 5
#if AlternateUsrLibDir
#if OSMajorVersion == 4 && OSMinorVersion >= 1
LDOVERRIDE = -L$(DESTDIR)$(USRLIBDIR)
#else
#if HasGcc
LDOVERRIDE = -static -L$(DESTDIR)$(USRLIBDIR)
#else
LDOVERRIDE = -Bstatic -L$(DESTDIR)$(USRLIBDIR)
LDRESUME = -Bdynamic
#endif
#endif
#endif
install:: ProgramTargetName(xterm)
	MakeDir($(DESTDIR)$(BINDIR))
	RemoveFile(ProgramTargetName(xterm.inst))
	LinkRule(ProgramTargetName(xterm.inst),$(CDEBUGFLAGS) $(CCOPTIONS) $(EXTRA_LDOPTIONS) $(LOCAL_LDFLAGS),$(OBJS1),$(LDOVERRIDE) XawClientLibs $(LDRESUME) $(LDLIBS) $(TERMCAPLIB) $(PTYLIB))
	$(INSTALL) -c $(INSTPGMFLAGS) $(INSTUIDFLAGS) ProgramTargetName(xterm.inst) $(DESTDIR)$(BINDIR)/ProgramTargetName(xterm)
	RemoveFile(ProgramTargetName(xterm.inst))
#else
#if InstallXtermSetUID
InstallProgramWithFlags(xterm,$(BINDIR),$(INSTUIDFLAGS))
#else
InstallProgramWithFlags(xterm,$(BINDIR),NullParameter)
#endif
#endif

NormalProgramTarget(resize,$(OBJS2),$(DEPLIBS2),NullParameter,$(TERMCAPLIB))
InstallProgramWithFlags(resize,$(BINDIR),NullParameter)

InstallAppDefaults(XTerm)
InstallAppDefaultsLong(XTerm-col,XTerm-color)
InstallManPage(xterm,$(MANDIR))
InstallManPage(resize,$(MANDIR))
DependTarget()
@


1.1
log
@Initial revision
@
text
@@


1.1.1.1
log
@XFree86 3.2 sources
@
text
@@


1.1.1.2
log
@XFree86 3.3 sources.
@
text
@d2 1
a2 1
XCOMM $XFree86: xc/programs/xterm/Imakefile,v 3.11.4.2 1997/05/16 13:55:39 dawes Exp $
d44 1
a44 1
      FEATURE_DEFINES = -DDEBUG -DALLOWLOGGING
a53 9
/*
 * This is for linking statically against libX11 and libXt for some debugging
 * purposes
 */
#ifdef StaticXterm
XTOOLONLYLIB=StaticLibrary($(TOOLKITSRC),Xt)
XONLYLIB=StaticLibrary($(XLIBSRC),X11)
#endif

d67 1
a67 1
        DEFINES = $(XKB_DEFINES) $(TERMCAPDEFINES) $(FEATURE_DEFINES)
@


1.1.1.3
log
@XFree86 3.3.2 sources
@
text
@d1 2
a2 1
XCOMM $TOG: Imakefile /main/68 1997/08/28 08:08:34 kaleb $
a10 5
XCOMM $XFree86: xc/programs/xterm/Imakefile,v 3.11.4.5 1998/02/20 14:28:03 robin Exp $
XCOMM

/* Uncomment SCROLLBAR_RIGHT if you want the scroll bar to be on the right */
SCROLLBAR_RIGHT = -DSCROLLBAR_RIGHT
a26 9
#ifndef SpecialCObjectRule
#define SpecialCObjectRule(module,ignore,defines) \
module.o: ; $(CC) -c defines $(CFLAGS) module.c
#endif

#ifndef ProgramTargetName
#define ProgramTargetName(program) program
#endif

d47 4
d54 9
d76 1
a76 1
        DEFINES = $(XKB_DEFINES) $(TERMCAPDEFINES) $(FEATURE_DEFINES) $(SCROLLBAR_RIGHT)
d85 2
a86 2
          SRCS1 = button.c charproc.c cursor.c data.c doublechr.c input.c \
		  $(MAINSRC) menu.c misc.c print.c screen.c scrollbar.c tabs.c \
d88 2
a89 2
          OBJS1 = button.o charproc.o cursor.o data.o doublechr.o input.o \
		  $(MAINOBJ) menu.o misc.o print.o screen.o scrollbar.o tabs.o \
d101 1
a101 1
#if defined(CrayArchitecture) || (defined(HPArchitecture) && OSMajorVersion < 10) || defined(RsArchitecture)
@


1.1.1.4
log
@New xterm from Thomas E. Dickey which fixes the utmp and colour problems
@
text
@d10 1
a10 1
XCOMM $XFree86: xc/programs/xterm/Imakefile,v 3.18 1998/03/20 21:08:33 hohndel Exp $
d74 1
a74 1
   MISC_DEFINES = /* -DALLOWLOGGING -DALLOWLOGFILEEXEC */ 
d85 6
a90 10
          SRCS1 = button.c charproc.c charsets.c cursor.c \
	  	  data.c doublechr.c input.c \
		  $(MAINSRC) menu.c misc.c print.c \
		  screen.c scrollbar.c tabs.c util.c \
		  TekPrsTbl.c Tekproc.c VTPrsTbl.c $(EXTRASRC)
          OBJS1 = button.o charproc.o charsets.o cursor.o \
		  data.o doublechr.o input.o \
		  $(MAINOBJ) menu.o misc.o print.o \
		  screen.o scrollbar.o tabs.o util.o \
		  TekPrsTbl.o Tekproc.o VTPrsTbl.o $(EXTRAOBJ)
a115 1
SpecialCObjectRule(menu,$(_NOOP_),$(MISC_DEFINES)) 
a117 1
SpecialCObjectRule(data,$(_NOOP_),$(MISC_DEFINES)) 
@


1.1.1.5
log
@New xterm with bugfixes including the xterm part of the
'CERT Vendor-Initiated Bulletin VB-98.04'.
For more informations read the file: xterm.log.html (the CERT fix is Patch
#71).
@
text
@d10 1
a10 1
XCOMM $XFree86: xc/programs/xterm/Imakefile,v 3.19 1998/04/05 00:46:08 robin Exp $
@


1.1.1.6
log
@XFree86 3.3.3 sources
@
text
@d10 1
a10 1
XCOMM $XFree86: xc/programs/xterm/Imakefile,v 3.11.4.6 1998/10/20 20:51:31 hohndel Exp $
d63 1
a63 1
#if !defined(AmoebaArchitecture) && !defined(OS2Architecture) && !defined(__GNU__)
d76 1
a76 1
        DEFINES = -I. $(XKB_DEFINES) $(TERMCAPDEFINES) $(FEATURE_DEFINES) $(SCROLLBAR_RIGHT)
d86 1
a86 1
	  	  data.c doublechr.c fontutils.c input.c \
d91 1
a91 1
		  data.o doublechr.o fontutils.o input.o \
@


1.1.1.7
log
@XFree86 3.3.5 sources
@
text
@d10 1
a10 1
XCOMM $XFree86: xc/programs/xterm/Imakefile,v 3.11.4.7 1999/07/28 13:37:50 hohndel Exp $
a51 4
#if ((LinuxCLibMajorVersion == 6) && (LinuxCLibMinorVersion < 1))
         PTYLIB = -lutil
#endif

d105 1
a105 1
#if defined(CrayArchitecture) || (defined(HPArchitecture) && (OSMajorVersion < 10)) || defined(RsArchitecture)
d131 1
a131 1
#if InstallXtermSetUID && defined(SunArchitecture) && HasSharedLibraries && (OSMajorVersion < 5)
d133 1
a133 1
#if ((OSMajorVersion == 4) && (OSMinorVersion >= 1))
@


1.1.1.8
log
@Import XFree86 4.0 "xterm" sources to fix vulnerability in "xterm"
reported in PR security/9528.
@
text
@d10 1
a10 1
XCOMM $XFree86: xc/programs/xterm/Imakefile,v 3.29 2000/03/03 20:02:27 dawes Exp $
a15 3
/* Define UTF8support to compile-in support for UTF-8 */
#define UTF8support

a22 5
#if defined(UseUtempter)
#undef InstallXtermSetUID
        UTMPLIB = -lutempter
#endif

a55 5
#ifdef OS2Architecture
/*
 * Only used in os2main.c, see ptyx.h for OPT_I18N_SUPPORT
 * <werner@@suse.de>
 */
d58 3
a60 2
      FEATURE_DEFINES = -DDEBUG -DALLOWLOGGING $(I18NDEF)
#else
a62 1
#endif
a67 3
#if defined(UseUtempter)
        UTMPDEF = -DUSE_UTEMPTER
#else
a69 1
#endif
d72 2
a73 8
       EXTRASRC = ttysvr.c
       EXTRAOBJ = ttysvr.o
#endif

#ifdef UTF8support
    UTF8_OPTION = -DOPT_WIDE_CHARS
        UTF8SRC = keysym2ucs.c
        UTF8OBJ = keysym2ucs.o
a74 1

d78 1
a78 1
   MISC_DEFINES = /* -DALLOWLOGGING -DALLOWLOGFILEEXEC */
d80 1
a80 1
        DEFINES = -I. $(XKB_DEFINES) $(TERMCAPDEFINES) $(FEATURE_DEFINES) $(SCROLLBAR_RIGHT) $(UTF8_OPTION)
d84 1
a84 1
          MAINOBJ = os2main.o
d90 2
a91 2
		  data.c doublechr.c fontutils.c input.c \
		  menu.c misc.c print.c ptydata.c \
d93 1
a93 2
		  TekPrsTbl.c Tekproc.c VTPrsTbl.c \
		  $(MAINSRC) $(EXTRASRC) $(UTF8SRC)
d96 1
a96 1
		  menu.o misc.o print.o ptydata.o \
d98 1
a98 2
		  TekPrsTbl.o Tekproc.o VTPrsTbl.o \
		  $(MAINOBJ) $(EXTRAOBJ) $(UTF8OBJ)
d105 1
a105 1
       DEPLIBS2 =
d124 1
a124 1
SpecialCObjectRule(menu,$(_NOOP_),$(MISC_DEFINES))
d127 1
a127 1
SpecialCObjectRule(data,$(_NOOP_),$(MISC_DEFINES))
d132 1
a132 1
NormalProgramTarget(xterm,$(OBJS1),$(DEPLIBS1),XkbClientLibs XawClientLibs,$(TERMCAPLIB) $(UTMPLIB) $(PTYLIB))
@


1.1.1.9
log
@Today's XFree86 3.3 branch sources.
@
text
@d10 1
a10 1
XCOMM $XFree86: xc/programs/xterm/Imakefile,v 3.11.4.7 1999/07/28 13:37:50 hohndel Exp $
d16 3
d26 5
d64 5
d71 3
a74 3

#ifdef OS2Architecture
      FEATURE_DEFINES = -DDEBUG -DALLOWLOGGING
d81 3
d86 1
d89 8
a96 2
        EXTRASRC = ttysvr.c
        EXTRAOBJ = ttysvr.o
d98 1
d102 1
a102 1
   MISC_DEFINES = /* -DALLOWLOGGING -DALLOWLOGFILEEXEC */ 
d104 1
a104 1
        DEFINES = -I. $(XKB_DEFINES) $(TERMCAPDEFINES) $(FEATURE_DEFINES) $(SCROLLBAR_RIGHT)
d108 1
a108 1
          MAINOBJ = os2main.o 
d114 2
a115 2
	  	  data.c doublechr.c fontutils.c input.c \
		  $(MAINSRC) menu.c misc.c print.c \
d117 2
a118 1
		  TekPrsTbl.c Tekproc.c VTPrsTbl.c $(EXTRASRC)
d121 1
a121 1
		  $(MAINOBJ) menu.o misc.o print.o \
d123 2
a124 1
		  TekPrsTbl.o Tekproc.o VTPrsTbl.o $(EXTRAOBJ)
d131 1
a131 1
       DEPLIBS2 = 
d150 1
a150 1
SpecialCObjectRule(menu,$(_NOOP_),$(MISC_DEFINES)) 
d153 1
a153 1
SpecialCObjectRule(data,$(_NOOP_),$(MISC_DEFINES)) 
d158 1
a158 1
NormalProgramTarget(xterm,$(OBJS1),$(DEPLIBS1),XkbClientLibs XawClientLibs,$(TERMCAPLIB) $(PTYLIB))
@


