INCDIR=../../include
CXX=g++
CXXFLAGS=-O0 -g -Wall

SRCS=${shell find . -type f -name "*.cpp" -printf "%p "}
OBJS=${shell find . -type f -name "*.cpp" -printf "%p " | sed "s/\.cpp/.o/g"}

LIST=${shell cat testList.lst | tr -d '\012'}

TARGET=compileTest

.SUFFIXES: .o .cpp .h .hpp 

$(TARGET):$(OBJS)
	$(CXX) -o $(TARGET) $(OBJS)
.cpp.o:
	$(CXX) -I$(INCDIR) $(CXXFLAGS) -c $<


.PHONY:test clean

test:$(TARGET)

prepare:
	cp main.cp_ main.cpp
	./createTestList.sh <testList.lst

clean:
	$(RM) $(SRCS) $(OBJS) $(TARGET)
