trick/trick_source/trick_utils/SAIntegrator/test/Makefile

33 lines
596 B
Makefile
Raw Normal View History

RM = rm -rf
CC = cc
CPP = c++
CFLAGS = -g -Wall
INCLUDE_DIRS = -I../include
OBJDIR = obj
LIBDIR = ../lib
LIBNAME = libSAInteg.a
LIBOBJS = ${OBJDIR}/Integrator.o
2020-09-28 04:25:53 +00:00
all: test
test: SAIntegrator_unittest
./SAIntegrator_unittest --gtest_output=xml:${TRICK_HOME}/trick_test/SAIntegrator_unittest.xml
Integ_unittest.o : Integ_unittest.cc
$(CPP) $(CFLAGS) $(INCLUDE_DIRS) -c $<
Integ_unittest : ${LIBDIR}/${LIBNAME} Integ_unittest.o
$(CPP) $(CFLAGS) -o $@ $^ -lgtest -lgtest_main -lpthread
${LIBDIR}/${LIBNAME} :
$(MAKE) -C ..
clean:
${RM} *.o
spotless: clean
${RM} Integ_unittest