
CXXFLAGS =	-O2 -g -Wall -fmessage-length=0

OBJS =		IGNF.o AlgorithmWrapper.o Clock.o IncrementalAlgorithm.o Forest.o Tree.o TreeNode.o BasicAlgorithmSimple.o BasicAlgorithm.o WorklistProduction.o IWorklistItem.o StringGrammar.o GrammarReader.o

LIBS =

TARGET =	bin/ignf
TARGETD =	bin/ignfD

all: release

$(TARGET):	$(OBJS)
	$(CXX) -o $(TARGET) $(OBJS) $(LIBS)

$(TARGETD):  $(OBJS)
	$(CXX) -o $(TARGETD) $(OBJS) $(LIBS)

release: cleanobjs $(TARGET)

debug: CXXFLAGS += -DDEBUG
debug: cleanobjs $(TARGETD)

cleanobjs:
	rm -f $(OBJS)

cleantargets:
	rm -f $(TARGET) $(TARGETD)

clean: cleanobjs cleantargets
