## This file modified for Slackware Linux by John Hartnup -- for
## the fifstart package

# Define your c compiler.  I recommend gcc if you've got it.
#CC = cc
CC = gcc

# Define your optimization flags.  Most compilers understand -O and -O2,
# Debugging (don't use)
#OPTS = -Wall -g 
# Standard
OPTS = -O2
# Pentium with gcc 2.7.0 or better
#OPTS = -O2 -fomit-frame-pointer -malign-functions=2 -malign-loops=2 \
#         -malign-jumps=2

# There are a few defines which may be necessary to make frotz compile on
# your system.  Most of these are fairly straightforward.
#    -DNO_MEMMOVE:    Use this if your not-so-standard c library lacks the
#                     memmove(3) function. (SunOS, other old BSDish systems)
#
# You may need to define one of these to get the getopt prototypes:
#    -DUSE_UNISTD_H:  Use this if your getopt prototypes are in unistd.h.
#                     (Linux, Solaris 2.x(?))
#    -DUSE_GETOPT_H:  Use this if you have a separate /usr/include/getopt.h
#                     file containing the getopt prototypes. (IRIX 5?)
#    -DUSE_NOTHING:   I've heard reports of some systems defining getopt in
#                     stdlib.h, which unix.c automatically includes.  (I'm
#                     not sure, but I think it was Solaris...)
#    
# If none of the above are defined, frotz will define the getopt prototypes
# itself.
#
#    -DUSE_NCURSES_H: Use this if you want to include ncurses.h rather
#                     than curses.h.
#
# These defines add various cosmetic features to the interpreter:
#    -DCOLOR_SUPPORT: If the terminal you're using has color support, frotz
#                     will use the curses color routines.
#
DEFS = -DUSE_UNISTD_H -DCOLOR_SUPPORT
# DEFS =

# This should point to the location of your curses or ncurses include file
# if it's in a non-standard place.
#INCL = -I/usr/local/include
INCL = -I/usr/include/ncurses

# This should define the location and name of whatever curses library you're
# linking with.
#LIB = -L/usr/local/lib
#CURSES = -lncurses
LIB = -L/usr/lib/ncurses
CURSES = -lncurses

# Nothing under this line should need to be changed.

OBJECTS = buffer.o fastmem.o hotkey.o input.o main.o math.o menu.o object.o \
          process.o random.o screen.o sound.o stream.o table.o text.o unix.o \
	  variable.o 

CFLAGS = $(OPTS) $(DEFS) $(INCL)

frotz: $(OBJECTS)
	$(CC) -o frotz $(OBJECTS) $(LIB) $(CURSES)

