2020-09-27 23:36:49 +00:00
|
|
|
|
|
|
|
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
|
2020-09-28 04:21:25 +00:00
|
|
|
|
|
|
|
test: SAIntegrator_unittest
|
2020-09-28 05:44:30 +00:00
|
|
|
./SAIntegrator_unittest --gtest_output=xml:${TRICK_HOME}/trick_test/SAIntegrator_unittest.xml
|
2020-09-28 04:21:25 +00:00
|
|
|
|
2020-09-28 04:36:03 +00:00
|
|
|
SAIntegrator_unittest.o : SAIntegrator_unittest.cc
|
2020-09-27 23:36:49 +00:00
|
|
|
$(CPP) $(CFLAGS) $(INCLUDE_DIRS) -c $<
|
|
|
|
|
2020-09-28 04:36:03 +00:00
|
|
|
SAIntegrator_unittest : ${LIBDIR}/${LIBNAME} SAIntegrator_unittest.o
|
2020-09-28 06:19:41 +00:00
|
|
|
$(CPP) $(CFLAGS) -o $@ $^ -L${LIBDIR} -lSAInteg -lgtest -lgtest_main -lpthread
|
2020-09-27 23:36:49 +00:00
|
|
|
|
|
|
|
${LIBDIR}/${LIBNAME} :
|
|
|
|
$(MAKE) -C ..
|
|
|
|
|
|
|
|
clean:
|
|
|
|
${RM} *.o
|
|
|
|
|
|
|
|
spotless: clean
|
2020-09-28 05:44:30 +00:00
|
|
|
${RM} SAIntegrator_unittest
|