Skip to content
Snippets Groups Projects
Commit 0dadf60d authored by Giovanni La Mura's avatar Giovanni La Mura
Browse files

Include test suite in compilation process

parent 8d5e79d3
No related branches found
No related tags found
No related merge requests found
SUBDIRS := cluster sphere trapping
SUBDIRS := cluster sphere testing trapping
SRCDIR=$(PWD)
OBJDIR=$(SRCDIR)/objects
BUILDDIR=$(SRCDIR)/../build
......@@ -18,6 +18,7 @@ clean:
wipe:
rm -f $(BUILDDIR)/cluster/*
rm -f $(BUILDDIR)/sphere/*
rm -f $(BUILDDIR)/testing/*
rm -f $(BUILDDIR)/trapping/*
rm -f $(OBJDIR)/*.o
if [ -d $(DOCSDIR)/build/html ]; then rm -r $(DOCSDIR)/build/html; fi
......
ifndef BUILDDIR
override BUILDDIR=../../build/testing
endif
ifndef OBJDIR
override OBJDIR=../objects
endif
include ../make.inc
CXX_TEDF_OBJS=$(OBJDIR)/test_TEDF.o $(OBJDIR)/Configuration.o $(OBJDIR)/file_io.o $(OBJDIR)/Parsers.o
CXX_TTMS_OBJS=$(OBJDIR)/test_TTMS.o $(OBJDIR)/file_io.o $(OBJDIR)/Parsers.o $(OBJDIR)/TransitionMatrix.o
all: $(BUILDDIR)/test_TEDF $(BUILDDIR)/test_TTMS
$(BUILDDIR)/test_TEDF: $(CXX_TEDF_OBJS)
$(CXX) $(CXXFLAGS) -o $(BUILDDIR)/test_TEDF $(CXX_TEDF_OBJS) $(CXXLDFLAGS)
$(BUILDDIR)/test_TTMS: $(CXX_TTMS_OBJS)
$(CXX) $(CXXFLAGS) -o $(BUILDDIR)/test_TTMS $(CXX_TTMS_OBJS) $(CXXLDFLAGS)
clean:
rm -f $(CXX_TEDF_OBJS) $(CXX_TTMS_OBJS)
wipe:
rm -f $(BUILDDIR)/test_TEDF $(BUILDDIR)/test_TTMS $(CXX_TEDF_OBJS) $(CXX_TTMS_OBJS)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment