# (c) 2000 David Lawrence - philaw@camtech.net.au #

# Change the below line to 0 in order to use only default fonts
USE_NON_DEFAULT_FONTS=1

# Programs used in building process
CC = g++

# Where to put the XTux client binary.
BINARY = nineword

# Flags used when compiling
CFLAGS = -g `gtk-config --cflags` -DUSE_FONTS=$(USE_NON_DEFAULT_FONTS)

# Libraries used in linking
GTKLIBS = `gtk-config --libs`
MATHLIB = -lm

# Objects to build
OBJECTS = Dictionary.o Board.o Wordlist.o Nineword.o Game.o Hash.o

all:	nineword

clean:
	rm $(OBJECTS)

#Apps
nineword:	$(OBJECTS)
	$(CC) -o $(BINARY) $(OBJECTS) $(GTKLIBS)


# OBJECTS
.cpp.o:	$*.cpp
	$(CC) $(CFLAGS) -c $*.cpp
