#==============================================================================
#
#  CoStLy 2.0.5                                                        080918
#  costlytest makefile 
#
#==============================================================================
#
#  paths to CXSC and CoStLy libraries
#
CXSCDIR = /usr/local/cxsc2p2p3
COSTLYDIR = /usr/local/CoStLy
#
#  compiler options 
#
OPTIONS   = -DCXSC_VERSION                              
INCLUDE   = -I$(CXSCDIR)/include -I$(COSTLYDIR)/include  # include path
LIB       = -L$(CXSCDIR)/lib -L$(COSTLYDIR)/lib          # library Path
LIBRARIES = -lcostly_cxsc -lcxsc                         # names of libraries
RPATH     = -Wl,-R$(CXSCDIR)/lib                         # for dynamic linking
VPATH     = include
SOURCES	  = costlytest.cpp
OBJECTS   = $(patsubst %.cpp,%.o,$(SOURCES))

costlytest: $(OBJECTS)
	$(CXX) $(LIB) $(RPATH) $(OBJECTS) $(LIBRARIES) -o $@

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

# Object-Files
costlytest.o: costlytest.cpp

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