mirror of
https://github.com/nasa/trick.git
synced 2024-12-20 13:43:10 +00:00
14a75508a3
Changed all header file once include variables to follow the same naming convention and not start with any underscores. Also deleted old incorrect copyright notices. Also removed $Id: tags from all files. Fixes #14. Fixes #22.
1.1 KiB
1.1 KiB
#
# This makefile is used to build trick utils standalone.
# That is, without Trick.
#
TRICK_HOST_CPU := $(shell uname -s)
CC = cc
CPP = c++
INTERP_INC_DIR = include
OBJ_DIR = object_${TRICK_HOST_CPU}
INTERP_LIB = $(OBJ_DIR)/libtrick_interp.a
FLAGS = -g -I../include -D_REENTRANT -DSTAND_ALONE
CFLAGS = ${FLAGS} -I./include
CPPFLAGS = ${FLAGS} -I./include
trick: start
start: $(INTERP_LIB)
@ echo "$(INTERP_LIB) is up to date"
real_clean: clean
clean:
/bin/rm -rf $(OBJ_DIR)
#=======================================================================
# INTERP
SRC_DIR = src
INTERP_OBJECTS = $(OBJ_DIR)/Interpolator.o
$(INTERP_LIB): $(INTERP_OBJECTS)
ar cr $(INTERP_LIB) $?
@ if [ "${TRICK_RANLIB}" != "" ] ; then \
echo ${TRICK_RANLIB} $(INTERP_LIB) ; \
${TRICK_RANLIB} $(INTERP_LIB) ; \
fi
$(OBJ_DIR):
mkdir -p $(OBJ_DIR)
$(OBJ_DIR)/Interpolator.o: ${SRC_DIR}/Interpolator.cpp | $(OBJ_DIR)
$(CC) ${CFLAGS} -c src/Interpolator.cpp -o $@
#----------------------------
# Header Dependencies
$(OBJ_DIR)/Interpolator.o: ${INTERP_INC_DIR}/Interpolator.hh