trick/trick_source/trick_utils/makefile
Alex Lin 19025d77ad Standardize directory names
Reorganized.  Created a new top level include directory that will hold all of Trick's header files. Moved all of the Trick headers to this directory.  Created a libexec directory that holds all of the executables that users don't need to execute directly.  Changed all of the executables remaining in bin to start with "trick-".  In the sim_services directories changed all source files to find the Trick headers in their new location.  Since all of the include files are gone in sim_services, removed the src directories as well, moving all of the source files up a level.  Moved the makefiles, docs, man, and other architecture independent files into a top level share directory.  Renamed lib_${TRICK_HOST_CPU} to lib64 or lib depending on the platform we're currently on.

refs #63
2015-06-09 08:44:42 -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)/share/trick/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 " "