trick/trick_source/trick_utils/makefile
Alex Lin 14a75508a3 Cleaning up once include variables and copyright cleanup.
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.
2015-03-23 16:03:14 -05:00

74 lines
1.6 KiB
Makefile
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#
# This makefile is used to build trick utils standalone.
# That is, without Trick.
#
# It does NOT create lib or object dirs for each platform.
#
# Once ran, all libraries go into "lib" .
include $(TRICK_HOME)/makefiles/Makefile.common
ifndef TRICK_HOST_CPU
export TRICK_HOST_CPU := $(shell gte TRICK_HOST_CPU)
endif
ifndef TRICK_HOST_TYPE
export TRICK_HOST_TYPE := $(shell gte TRICK_HOST_TYPE)
endif
LIB_DIR = lib_${TRICK_HOST_CPU}
DIRS = comm \
shm \
interpolator \
trick_adt \
units \
math # build last becuase of gsl dependency issues
trick: all
all:
@ for i in $(DIRS) ; do \
echo ; echo "==: Compile trick_utils/$$i" ; \
echo -n "==Start "; date "+%H:%M:%S" ;\
cd $$i ; \
$(MAKE) trick ; \
if [ $$? -ne 0 ] ; then \
exit 1 ; \
fi ; \
cd .. ; \
echo -n "==Stop "; date "+%H:%M:%S" ;\
done
@ if [ "$(STAND_ALONE)" = "1" ] ; then \
echo "== Trick utils (stand alone) make complete ==" ; \
else \
echo "== Trick utils make complete ==" ; \
fi
$(LIB_DIR):
@ mkdir -p $(LIB_DIR)
@ echo "$(LIB_DIR) created"
stand_alone:
@ $(MAKE) STAND_ALONE=1 all
clean_stand_alone:
@ $(MAKE) STAND_ALONE=1 clean
real_clean: clean clean_stand_alone
clean:
@ /bin/rm -rf $(LIB_DIR)
@ for i in $(DIRS) ; do \
$(MAKE) -C $$i real_clean ; \
done
@ echo " "
@ if [ "$(STAND_ALONE)" = "1" ] ; then \
echo "Cleaned all of trick_utils (stand alone) !!!" ; \
else \
echo "Cleaned all of trick_utils !!!" ; \
fi
@ echo " "