#------------------------------------------------------------------------------
# Path to CXSC library
CXSCDIR = /usr/local/cxsc2p0
COSTLYDIR = /usr/local/CoStLy
# C++ Compiler
CXX = c++
#------------------------------------------------------------------------------
OPTIONS = -DCXSC_VERSION
INCLUDE = -I$(CXSCDIR)/include -I$(COSTLYDIR)/include
LIB = -L$(CXSCDIR)/lib -L$(COSTLYDIR)/lib
VPATH = include
SOURCES	= costlytest.cpp
OBJECTS = $(patsubst %.cpp,%.o,$(SOURCES))

costlytest: $(OBJECTS)
	$(CXX) $(LIB) $(OBJECTS) -lcostly_cxsc -lcxsc -o $@

$(OBJECTS): %.o: %.cpp
	$(CXX) $(OPTIONS) $(INCLUDE) -c $< -o $@

# Object-Files
costlytest.o: costlytest.cpp

# Cleaning the directory
.PHONY: clean
clean: 
	-rm $(OBJECTS)
