head	1.10;
access;
symbols
	r3_1_6:1.10
	r3_1_6_rc2:1.9
	MP-B-AUTOCONF-MP1:1.8
	B-AUTOCONF-MP1:1.8
	B-AUTOCONF:1.8.0.2
	BP_AUTOCONF:1.8
	r3_1_6_rc1:1.8
	r3_1_6_pre1:1.8
	r3_1_5:1.7
	r3_1_5_rc1:1.7
	r3_1_4a:1.7
	r3_1_4_dvorak_2:1.7
	r3_1_4_dvorak_1:1.7
	r3_1_4:1.7
	r3_1_3:1.7
	r3_1_3p0:1.4
	r3_1_2b:1.4
	r3_1_2a:1.4
	r3_1_2:1.4
	r3_1:1.4
	r3_1pre3:1.3
	r3_0_4b7:1.1.1.1
	kaist:1.1.1;
locks; strict;
comment	@# @;


1.10
date	2001.06.06.14.07.48;	author pchk;	state Exp;
branches;
next	1.9;

1.9
date	2001.06.06.09.18.53;	author pchk;	state Exp;
branches;
next	1.8;

1.8
date	2001.05.03.08.22.11;	author voxel;	state Exp;
branches;
next	1.7;

1.7
date	99.07.08.10.38.47;	author simon;	state Exp;
branches;
next	1.6;

1.6
date	99.07.08.02.02.28;	author simon;	state Exp;
branches;
next	1.5;

1.5
date	99.06.25.15.50.35;	author cdpark;	state Exp;
branches;
next	1.4;

1.4
date	99.05.05.01.58.21;	author ysyun;	state Exp;
branches;
next	1.3;

1.3
date	99.03.04.01.31.37;	author simon;	state Exp;
branches;
next	1.2;

1.2
date	99.02.25.12.51.02;	author simon;	state Exp;
branches;
next	1.1;

1.1
date	99.02.24.11.04.50;	author simon;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	99.02.24.11.04.50;	author simon;	state Exp;
branches;
next	;


desc
@@


1.10
log
@removed wrong #define from Imakefile
@
text
@/*
XCOMM $XConsortium: Imakefile,v 1.55 91/09/22 11:40:47 rws Exp $
XCOMM
XCOMM                         Attention hanterm porters
XCOMM
XCOMM
XCOMM Hanterm 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
*/

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

 OSMAJORVERSION = OSMajorVersion
 OSMINORVERSION = OSMinorVersion

   MAIN_DEFINES = -DUTMP $(TTYGROUPDEF) $(PUCCPTYDDEF) \
                  -DOSMAJORVERSION=$(OSMAJORVERSION) \
                  -DOSMINORVERSION=$(OSMINORVERSION)
/* 99/03/04 yjseo */
   MISC_DEFINES = $(MAIN_DEFINES) -DENV_HANGUL_KEYBOARD_TYPE

#if SunOSPlatform
#if OSMajorVersion <= 4		/* gaemon */
  SYS_LIBRARIES = -lm
  EXTRA_INCLUDES = -I.
#else
    STD_DEFINES = -DSYSV -DSVR4
#endif
      LDOPTIONS = -L/usr/openwin/lib
#endif

/* dkim@@surecom.com */
#if SVR4ix86Architecture && i386SVR4Architecture
    EXTRA_DEFINES = -Dunixware -DALLOWLOGFILEONOFF
    SYS_LIBRARIES = -lgen -lsocket
    INSTALL = /usr/ucb/install
#else
    EXTRA_DEFINES = -DALLOWLOGFILEONOFF
#endif

          SRCS1 = button.c charproc.c cursor.c data.c input.c \
		  main.c menu.c misc.c screen.c scrollbar.c tabs.c \
		  util.c VTPrsTbl.c hangul.c automata.c chat.c hanja.c \
		  ksc.c history.c
          OBJS1 = main.o input.o charproc.o cursor.o util.o tabs.o \
		  screen.o scrollbar.o button.o misc.o \
		  VTPrsTbl.o data.o menu.o hangul.o automata.o chat.o hanja.o \
		  ksc.o history.o

#if ProjectX > 4
           SRCS = $(SRCS1)
           OBJS = $(OBJS1)
#else	/* X11R4 */
           SRCS = $(SRCS1) StrToGrav.c Quarks.c
           OBJS = $(OBJS1) StrToGrav.o Quarks.o

#ifndef NullParameter
#define NullParameter
#endif

#endif /* ProjectX */

       PROGRAMS = hanterm
        DEPLIBS = XawClientDepLibs

#ifdef HPArchitecture
 CDEBUGFLAGS	= +O4
 EXTRA_INCLUDES = -I. -I/usr/contrib/X11R6/include
 LDOPTIONS	= -L/usr/contrib/X11R6/lib
#else

#if ProjectX < 5 /* X11R4 */
# EXTRA_INCLUDES = -I.
# LDOPTIONS	= 
#endif

#endif /* HPArchitecture */

#ifndef TermcapLibrary
#if SystemV && !defined(MacIIArchitecture)
#if defined(CrayArchitecture) || defined(RsArchitecture) || defined(AIXArchitecture)
#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

/* dkim@@surecom.com */
#ifdef SVR4
     TERMCAPLIB =
     TERMINFOLIB = -lcurses
#else
     TERMCAPLIB = TermcapLibrary
     TERMINFOLIB =
#endif

AllTarget($(PROGRAMS))
AllTarget($(HAN_PCF_FONTS))

/* for support of ENV_HANGUL_KEYBOARD_TYPE  -- yjseo */
/* XCOMM SpecialObjectRule(main.o,NullParameter,$(MAIN_DEFINES)) */
SpecialObjectRule(main.o,NullParameter,$(MISC_DEFINES))
SpecialObjectRule(misc.o,NullParameter,$(MISC_DEFINES))
SpecialObjectRule(charproc.o,NullParameter,$(MISC_DEFINES))
SpecialObjectRule(data.o,NullParameter,$(MISC_DEFINES))

#if InstallXtermSetUID
#define	InstallHantermSetUID	YES
#endif

#if InstallHantermSetUID
#define ProgramTarget SetUIDProgramTarget
#else
#define ProgramTarget NormalProgramTarget
#endif

ProgramTarget(hanterm,$(OBJS),$(DEPLIBS),XawClientLibs,$(TERMCAPLIB) $(TERMINFOLIB) $(PTYLIB))

#if InstallHantermSetUID
InstallProgramWithFlags(hanterm,$(BINDIR),$(INSTUIDFLAGS))
#else
InstallProgramWithFlags(hanterm,$(BINDIR),NullParameter)
#endif

InstallAppDefaults(Hanterm)
InstallManPage(hanterm,$(MANDIR))
DependTarget()
@


1.9
log
@removed setuid root installation configuration
@
text
@a124 1
#define	InstallHantermSetUID	NO
@


1.8
log
@added patch for AIX 4.3
@
text
@d125 1
@


1.7
log
@changes for sunos-4.x + openwindows-3 (mostly for non ANSI-C)
@
text
@d93 1
a93 1
#if defined(CrayArchitecture) || defined(RsArchitecture)
@


1.6
log
@X11R4 detection based on ProjectX definition
@
text
@d34 1
a34 1
#ifdef OpenWindows
d37 1
a133 25
/*
#if InstallHantermSetUID && defined(SunArchitecture) && HasSharedLibraries
#if AlternateUsrLibDir
#if OSMajorVersion > 4 || (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:: hanterm
	MakeDir($(DESTDIR)$(BINDIR))
	$(RM) hanterm.inst
	$(CC) -o hanterm.inst $(OBJS1) $(LDOPTIONS) $(LDOVERRIDE) -lXaw -lXmu -lXt -lXext -lX11 $(LDRESUME) $(LDLIBS) $(TERMCAPLIB) $(TERMINFOLIB) $(PTYLIB) $(EXTRA_LOAD_FLAGS)
	$(INSTALL) -c $(INSTPGMFLAGS) $(INSTUIDFLAGS) hanterm.inst $(DESTDIR)$(BINDIR)/hanterm
	$(RM) hanterm.inst

#else
*/

a138 4

/*
#endif
*/
@


1.5
log
@adding history function in chat window
@
text
@a11 4
/* for R4 */
#ifndef NullParameter
#define NullParameter
#endif
a33 11
/* 99/02/24 gaemon 
   this is needed only when ifdef OpenWindows

XCOMM #ifdef SparcArchitecture
XCOMM #if OSMajorVersion <= 4
XCOMM 	SYS_LIBRARIES = -lm
XCOMM       LDOPTIONS = -L/usr/openwin/lib
XCOMM #endif
XCOMM #endif
*/

d60 2
a61 1
#ifdef XCOMM
d64 1
a64 1
#else
d67 3
d71 3
d76 1
d82 2
a83 2
/* for R4 */
#ifndef XCOMM
d87 2
a88 1
#endif
@


1.4
log
@1. uncomment the HPArchitecture options for 10.20
2. add ksc.c in Makefile.hp for proper compilation
3. add -bc option for bright(bold) color rather than ansi 16 color.
@
text
@d70 1
a70 1
		  ksc.c
d74 1
a74 1
		  ksc.o
@


1.3
log
@applied yjseo's HANGUL_KEYBOARD_TYPE patch
corrected some hanterm.sgml bug
@
text
@d84 5
a88 5
##ifdef HPArchitecture
# CDEBUGFLAGS	= +O4
# EXTRA_INCLUDES = -I. -I/usr/contrib/X11R6/include
# LDOPTIONS	= -L/usr/contrib/X11R6/lib
##else
d94 1
a94 1
##endif
@


1.2
log
@Added manual file.
@
text
@d35 2
d38 1
a38 3
   MISC_DEFINES = $(MAIN_DEFINES)

/* 99/02/24 simon 
d50 3
d54 1
d120 3
a122 1
SpecialObjectRule(main.o,NullParameter,$(MAIN_DEFINES))
@


1.1
log
@Initial revision
@
text
@d38 10
a47 6
#ifdef SparcArchitecture
#if OSMajorVersion <= 4
	SYS_LIBRARIES = -lm
      LDOPTIONS = -L/usr/openwin/lib
#endif
#endif
@


1.1.1.1
log
@Let\'s rock and roll
@
text
@@
