# This file handles all the OS-specific definitions
# It also deals with defaults
# You only need to change things in this file

#===========================================================================
# Linux is the base system for developing ncurses 1.8
# Read the notes below and modify as required
# If you create a setup for a system that is not supported yet, please
# send your changes to zmbenhal@netcom.com
#===========================================================================

# Handling non-POSIX systems requires defining NONPOSIX
# This currently applies to NeXTSTEP 3.0
# ISPOSIX = -DNONPOSIX
ISPOSIX = 

# Most commercial systems don't bother to declare external variables in their headers
# If your system is one of those, use -DBRAINDEAD
# This includes SunOS, Ultrix, HPux
# but not Linux, 386bsd.
# HEADERS = -DBRAINDEAD
HEADERS = 

# BSD systems (386bsd, BSDI, and probably others) don't have TAB3
# or XTABS. Some systems have TAB3 but not XTABS.
# HPux doesn't need this flag.
# use -DBSDTABS if your system doesn't have TAB3 in termios.h
# TABS = -DBSDTABS
TABS =

# The mvcur optimization is still buggy. If your terminals have
# direct cursor addressing capabilites don't use it. Otherwise
# use -DOPT_MVCUR
# OPT1 = -DOPT_MVCUR
OPT1 = 

# Now gather up all the configuration flags
CONFIG = $(ISPOSIX) $(HEADERS) $(TABS) $(OPT1) 

# some systems don't understand the -f option to ln
# some systems don't even know about symbolic links
# LN = ln
# LN = ln -s
LN = ln -sf

# SRCDIR is the directory where terminfo entries, the tic and
# untic programs, live. Should be somewhere on the root file
# system to enable its use in single-user mode
SRCDIR= /usr/lib/terminfo

# libraries to build
# ncurses is the regular version
# dcurses is the tracing version
# pcurses is the profiling version
LIBS= libncurses.a libdcurses.a libpcurses.a

# Ansi compiler, and relevent flags
CC= gcc
CFLAGS= -I. -Wall -O6 $(CONFIG) -DSRCDIR='"$(SRCDIR)"' 
DFLAGS= -I. -Wall -g -O6 -DTRACE $(CONFIG) -DSRCDIR='"$(SRCDIR)"'
PFLAGS= -I. -Wall -p -g -O6 -DTRACE $(CONFIG) -DSRCDIR='"$(SRCDIR)"'

# Where the header files will go 
# Don't use /usr/include as bsd curses could be living there
# You'll need -I/usr/local/include every time you compile
# with ncurses, otherwise you'll get the bsd curses
INCLUDE= /usr/local/include

# Where the libraries will go
# gcc knows to look in here, if you change it or you compiler doesn't
# look in /usr/local/lib don't forget to add -L$(LIB) to your LDFLAGS
# when linking things with ncurses
LIB= /usr/local/lib

