mirror of
https://github.com/nasa/trick.git
synced 2024-12-20 13:43:10 +00:00
19025d77ad
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
74 lines
1.6 KiB
Makefile
74 lines
1.6 KiB
Makefile
|
||
#
|
||
# 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 "[32m== Trick utils (stand alone) make complete ==[00m" ; \
|
||
else \
|
||
echo "[32m== Trick utils make complete ==[00m" ; \
|
||
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 "[32mCleaned all of trick_utils (stand alone) !!![00m" ; \
|
||
else \
|
||
echo "[32mCleaned all of trick_utils !!![00m" ; \
|
||
fi
|
||
@ echo " "
|