# Mailer you use.  Solaris 2.x users, change this to /usr/bin/mailx
MAILER		= /usr/ucb/mail

# Where you installed Open Windows
OPENWINHOME	= /usr/openwin

# Paths to be searched for icons
ICON_PATH	= .:./icons:/usr/local/images:$(OPENWINHOME)/include/images:$(INCDIR)/bitmaps

# Where to install the help file
HELPDIR		= /usr/local/lib/help

# Where your XView libraries are installed.  If running under
# SunOS 4.x, use the first version.  If using Solaris 2.x with
# with Sun's unbundled compiler, use the second version.
LDOPTIONS	= -L$(OPENWINHOME)/lib
# LDOPTIONS	= -L$(OPENWINHOME)/lib -R$(OPENWINHOME)/lib

# Where your XView include files are installed
EXTRA_INCLUDES	= -I$(OPENWINHOME)/include

# Fix this if you don't want optimization
CDEBUGFLAGS	= -O

# Compiler choices.  Pick one the three.  Don't you love an open market?
# Sun's bundled compiler, running under SunOS 4.x
CC		= cc
YACC		= yacc
SOL_CC_DEFINES	=
# Sun's unbundled compiler, running under Solaris 2.x
# CC		= cc
# YACC		= yacc
# SOL_CC_DEFINES	= -DSVR4
# Cygnus' gcc running under Solaris 2.x
# CC		= gcc
# YACC		= byacc
# SOL_CC_DEFINES	= -DSVR4

SRCS		= about.c archive.c busy.c contool.c contool_ui.c error.c expand.c filename_completion.c \
		  filters.c get_option.c load.c load_icon.c logging.c misc.c parse.y \
		  pinned_menu_notify.c place_dialog.c props.c regexp.c send_mail.c store.c

OBJS		= about.o archive.o busy.o contool.o contool_ui.o error.o expand.o filename_completion.o \
		  filters.o get_option.o load.o load_icon.o logging.o misc.o parse.o \
		  pinned_menu_notify.o place_dialog.o props.o regexp.o send_mail.o store.o

DEFINES		= -DMAILER=\"$(MAILER)\" -DICON_PATH=\"$(ICON_PATH)\" $(SOL_CC_DEFINES)

LOCAL_LIBRARIES = -lxview -lolgx $(XLIB)

ComplexProgramTarget(contool)

install:: install.man install.help

install.help:
	$(INSTALL) -c $(INSTMANFLAGS) contool.info $(HELPDIR)/contool.info
