# FILE NAME = Makefile
# PROGRAMMER NAME = Justin C. Miller
# USAGE = 'make EXEC1' (where EXEC1 is defined below)
#         'make EXEC2' (where EXEC2 is defined below)
# DATE  = 10-10-2003

# Makefile variables
CC=g++
CFLAGS=-WALL
EXEC1=buildDict
EXEC2=spellCheck

# create executable 1
$(EXEC1): buildDict.o wordList.o
	$(CC) $(CFLAGS) -o $(EXEC1) buildDict.o wordList.o
buildDict.o: buildDict.cxx wordList.h
	$(CC) -c buildDict.cxx
wordList.o: wordList.cxx wordList.h apvector.h
	$(CC) -c wordList.cxx

# create executable 2
$(EXEC2): spellCheck.o wordList.o map.o
	$(CC) $(CFLAGS) -o $(EXEC2) spellCheck.o wordList.o map.o
spellCheck.o: spellCheck.cxx wordList.h map.h
	$(CC) -c spellCheck.cxx
map.o: map.cxx map.h apvector.h
	$(CC) -c map.cxx

# clean up, remove .o files
clean:
	rm *.o
