
# You will need to specify the absolute path if gnome-config is not in 
# your path or if the one in your path is not the correct one
GNOME_CONFIG = gnome-config 

# This should be set to where aspell was installed the default is
# /usr/local
ASPELL_PREFIX = /usr/local

CXX = g++
CXXFLAGS = -O2 -g

# You should not need to modify anything below this comment

VERSION = .29

INCLUDES = -I$(ASPELL_PREFIX)/include `$(GNOME_CONFIG) --cflags gnomeui` \
  -D VERSION=\"$(VERSION)\"
LIBS = -L$(ASPELL_PREFIX)/lib -laspell `$(GNOME_CONFIG) --libs gnomeui`

gaspell: gaspell.o DICTClient.o
	$(CXX) gaspell.o DICTClient.o 	$(LIBS) -o gaspell

gaspell.o: gaspell.cc DICTClient.hh
	$(CXX) $(CXXFLAGS) $(INCLUDES) -c gaspell.cc

DICTClient.o: DICTClient.cc DICTClient.hh
	$(CXX) $(CXXFLAGS) $(INCLUDES) -c DICTClient.cc

clean:
	rm -f *~ core gaspell gaspell.o DICTClient.o

