#############################################################################
#
#  Makefile for the balanced delimiters test
#
#############################################################################
#
#  If you move this makefile, update the variable below
#  or else depend won't work.
#
#############################################################################

MAKEFILE	= Makefile
CC		= g++
CFILES		= delim-test.cpp \
		  Analyzer.cpp \
		  Analyzer_Factory.cpp \
		  AStack.cpp \
		  LStack.cpp \
		  Array.cpp \
		  Options.cpp \
		  Delimiters.cpp
HFILES		= Stack.h \
		  AStack.h \
		  LStack.h \
		  Analyzer.h \
		  Analyzer_Factory.h \
		  Array.h \
		  Options.h \
		  Delimiters.h
OFILES		= delim-test.o \
		  Analyzer.o \
		  Analyzer_Factory.o \
		  AStack.o \
		  LStack.o \
		  Array.o \
		  Options.o \
		  Delimiters.o

#############################################################################

DFLAGS		= -g 
IFLAGS          = 
OPTFLAGS	=  # Enable this flag if compiler supports templates...
LDFLAGS		=  
CFLAGS		= $(IFLAGS) $(OPTFLAGS) $(DFLAGS)

#############################################################################
# C++ directives
#############################################################################
.SUFFIXES: .cpp
.cpp.o:
	$(CC) $(CFLAGS) -c $<
#############################################################################

delim-test: $(OFILES)
	$(CC) $(LDFLAGS) -o $@ $(OFILES)

clean:
	rm -f *.o *.out *~ core

realclean: clean
	rm -rf delim-test Templates.DB

depend:
	o-g++dep -f $(MAKEFILE) $(CFILES)

# DO NOT DELETE THIS LINE -- g++dep uses it.
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.

delim-test.o: delim-test.cpp Analyzer.h Analyzer_Factory.h Options.h
Analyzer.o: Analyzer.cpp Stack.h Stack_Exceptions.h Stack.inl \
 Delimiters.h Array.h Array.cpp Array.inl Analyzer_Factory.h Analyzer.h
Analyzer_Factory.o: Analyzer_Factory.cpp Stack.h Stack_Exceptions.h \
 Stack.inl AStack.h Array.h Array.cpp Array.inl AStack.cpp AStack.inl \
 LStack.h LStack.cpp LStack.inl Delimiters.h Analyzer_Factory.h
AStack.o: AStack.cpp AStack.h Array.h Array.cpp Array.inl \
 Stack_Exceptions.h AStack.cpp AStack.inl
LStack.o: LStack.cpp LStack.h Stack_Exceptions.h LStack.cpp LStack.inl
Array.o: Array.cpp Array.h Array.cpp Array.inl
Options.o: Options.cpp Options.h Analyzer_Factory.h
Delimiters.o: Delimiters.cpp Array.h Array.cpp Array.inl \
 Delimiters.h

# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
