/*
 * Imakefile for rxvt
 * Thu Oct 28 11:28:03 CDT 1993
 */

# uncomment for gcc
CC=gcc 

# add -DDEBUG to get rxvt to self-check for internal screen corruption
# add -DDEBUG_MALLOC to self check on out of bound memory usage.
CCOPTIONS = -O2 
CCOPTIONS=-O2 -s  -fomit-frame-pointer
CDEBUGFLAGS = 


# Add -DPRINT_PIPE if you want support for an emulation of an attached 
# vt100 printer.

# Rxvt now include optional utmp support.
# including utmp support allows rxvt to update /etc/utmp so
# that the commands who and w show rxvt logins.
# In order for this to work, /etc/utmp must be world writeable, or
# rxvt must be setuid root.
# to make rxvt setuid root, do this
# su
# chown root.root rxvt
# chmod a+s rxvt
# Do it at your own risk. 

# Greek Elot-928 keyboard support by A. Haritsis <ah@doc.ic.ac.uk>
# Please read instructions in README.greek
# uncomment the following to allow greek keyboard support
# (toggle via keysym: Mode_switch;redefine via X resource greek_switch_keysym) 
/*#define GREEK_SUPPORT   /**/

#ifdef  GREEK_SUPPORT
GREEK_EXTRA=-DGREEK_ELOT_KBD
GREEK_SRC=grkelot.c
GREEK_OBJ=grkelot.o
#else
GREEK_EXTRA=    #-DGREEK_ELOT_KBD
GREEK_SRC=      #grkelot.c
GREEK_OBJ=      #grkelot.o
#endif

# extra optims

# This define makes SYSV type systems to include utmp support ("who");
# This is ok for Linux
#EXTRA_DEFINES = -DUTMP_SUPPORT -DUTMP=\"/etc/utmp\"  -DPRINT_PIPE $(GREEK_EXTRA)

# this should work for svr4
#EXTRA_DEFINES = -DUTMP_SUPPORT -DUTMP=\"/etc/utmp\" -DSVR4 -DPRINT_PIPE $(GREEK_EXTRA)
#EXTRA_LOAD_FLAGS= -lc -lucb

# Using this defines adds in UTMP support for Sun OS 4.1.x
EXTRA_DEFINES = -DUTMP_SUPPORT -DUTMP=\"/etc/utmp\" -DBSD -DTTYTAB=\"/etc/ttytab\" -DPRINT_PIPE $(GREEK_EXTRA)

# for FreeBSD 
#EXTRA_DEFINES = -DUTMP_SUPPORT -DUTMP=\"/var/run/utmp\" -DBSD -DFREEBSD -DTTYTAB=\"/etc/ttys\" -DPRINT_PIPE $(GREEK_EXTRA)

# for NetBSD 0.9
#DEFS = -DUTMP_SUPPORT -DUTMP=\"/var/run/utmp\" -DBSD -DFREEBSD -DTTYTAB=\"/etc/ttys\" -DPRINT_PIPE $(GREEK_EXTRA)


DEPLIBS = $(DEPXLIB) 
LOCAL_LIBRARIES = $(XPMLIB) $(XLIB) 

SRCS = rxvt.c command.c sbar.c screen.c utmp.c xsetup.c debug.c $(GREEK_SRC)
 
OBJS = rxvt.o command.o sbar.o screen.o utmp.o xsetup.o debug.o $(GREEK_OBJ)

ComplexProgramTarget(rxvt)



