2015-02-26 15:02:31 +00:00
|
|
|
|
|
|
|
ifdef TRICK_HOME
|
|
|
|
ifneq ($(STAND_ALONE), 1)
|
|
|
|
|
2015-06-01 15:28:29 +00:00
|
|
|
-include ${TRICK_HOME}/share/trick/makefiles/Makefile.common
|
|
|
|
-include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
2015-02-26 15:02:31 +00:00
|
|
|
|
|
|
|
-include Makefile_deps
|
|
|
|
|
|
|
|
SEPARATE_LIB = $(TRICK_LIB_DIR)/libtrick_units.a
|
|
|
|
|
|
|
|
default: $(SEPARATE_LIB)
|
|
|
|
trick: $(SEPARATE_LIB)
|
|
|
|
|
|
|
|
stand_alone:
|
|
|
|
@ $(MAKE) STAND_ALONE=1
|
|
|
|
|
|
|
|
clean_stand_alone:
|
|
|
|
@ $(MAKE) STAND_ALONE=1 clean
|
|
|
|
|
|
|
|
$(SEPARATE_LIB) : $(OBJECT_FILES) $(IO_OBJS) | $(TRICK_LIB_DIR)
|
|
|
|
ar cr $@ $(OBJECT_FILES) $(IO_OBJS)
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
include makefile.stand_alone
|
|
|
|
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
|
|
|
|
include makefile.stand_alone
|
|
|
|
|
|
|
|
endif
|
|
|
|
|