/*
 * 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 
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. 

# 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 

# this should work for svr4
#EXTRA_DEFINES = -DUTMP_SUPPORT -DUTMP=\"/etc/utmp\" -DSVR4 -DPRINT_PIPE 
#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

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

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

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

SRCS = rxvt.c command.c sbar.c screen.c utmp.c xsetup.c debug.c
 
OBJS = rxvt.o command.o sbar.o screen.o utmp.o xsetup.o debug.o

ComplexProgramTarget(rxvt)



