mirror of
https://github.com/nasa/trick.git
synced 2024-12-22 22:42:26 +00:00
29 lines
474 B
Makefile
29 lines
474 B
Makefile
|
|
||
|
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
|
||
|
|
||
|
all: Integ_unittest
|
||
|
|
||
|
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
|