trick/trick_source/trick_utils/math/Unittest/makefile
Alex Lin 497f11f132
Make TRICK_CXX variable to specify c++ compiler #767 (#815)
Changed all references of TRICK_CPPC to TRICK_CXX.  Added a
warning message that TRICK_CPPC has been deprecated.
2019-06-18 11:00:08 -05:00

49 lines
1020 B
Makefile

SHELL = /bin/sh
ifndef TRICK_HOST_CPU
TRICK_HOST_CPU := $(shell ${TRICK_HOME}/bin/trick-gte TRICK_HOST_CPU)
endif
ifndef TRICK_HOST_TYPE
TRICK_HOST_TYPE := $(shell ${TRICK_HOME}/bin/trick-gte TRICK_HOST_TYPE)
endif
CPP = g++
CFLAGS = -g -Wall -I${TRICK_HOME}/include
RM = /bin/rm -rf
LIBDIR = ${TRICK_HOME}/lib64
LIBS = -ltrick_math -lm
INCLUDES = -I${TRICK_HOME}/include
.cpp.o:
${CPP} ${CFLAGS} ${INCLUDES} -c $<
top:
@ if [ "${TRICK_HOME}" != "" ] ; then \
$(MAKE) -e all \
"CPP = `${TRICK_HOME}/bin/trick-gte TRICK_CXX` "; \
else \
$(MAKE) all \
"TRICK_HOST_TYPE = `uname -s` " \
"TRICK_HOST_CPU = `uname -s` "; \
fi
all: euler_quat_test
euler_quat_test: euler_quat_test.o
${CPP} -o $@ euler_quat_test.o -L${LIBDIR} ${LIBS}
clean:
${RM} *.o
${RM} *~
${RM} *.exe
${RM} euler_quat_test
real_clean: clean
${RM} euler_quat_test