#############################################################################
#
# Configuration for Cthugha-L
#
#############################################################################
#
# You can set all your preferences in this file
#

# change the INST_LIB, INST_BIN, INST_MAN and INST_INFO to install to 
# different directories.
#
INST_LIB = /usr/local/lib/cthugha/
INST_BIN = /usr/local/bin/
INST_MAN = /usr/local/man/man1/
INST_INFO = /usr/info/
INST_AD = /usr/lib/X11/app-defaults/

#
# options for compile. Everything should work as it is set now.
#

#
# libraries needed 
#
LIB_X11 = -lX11 -lSM -lICE -lXext -lXt -L/usr/X11R6/lib -L/usr/src/libsx/src
LIB_CTHUGHA = -lm -lvga -lvgagl -lncurses
LIB_XCTHUGHA = -lm -lncurses -lsx -lXaw -lXmu $(LIB_X11)
LIB_CTHUGHA_SERVER = -lm -lvga -lncurses
LIB_XCTHUGHA_SAVER = -lm -lXExExt $(LIB_X11)

#
# extra include path to search for some header files
#
NC_INC    = /usr/include/ncurses
LIBSX_INC = /usr/src/libsx/src

#
# use the following if you use 2.7.x and want to create an a.out file
# (if you don't have the libraries in ELF). You should have the old libc 
# include files (version 4) in /usr/i486-linuxaout/include and the new 
# ones (version 5) in /usr/i486-linux/include. In /usr/include you should
# keep the other include files (like ncurses) and the links to X11 and 
# the linux-sources. You can not use the new version 5 include files with
# the old version 4 libc. 
#
#CC      = gcc -b i486-linuxaout 

#
# use the following line if you have a gcc older than 2.7.0 or you want
# to create the ELF binaries with gcc 2.7.x.
#
CC	= gcc

# 
# gcc flags 
CFLAGS	= -m486 -O4 -fomit-frame-pointer -funroll-loops -Wall	\
	-I $(NC_INC) -I $(LIBSX_INC) -I /usr/X11R6/include

#
# programs used for documentation
#
TEXI2DVI 	= tex
TEXI2DVI_FLAGS 	= 
MAKEINFO 	= makeinfo
MAKEINFO_FLAGS 	=
DVIPS 		= dvips

#
# programs used for installation
#
INSTALL = install









