Revision 3c4779915488bf86af438c543b75ed196f02401f authored by Daniel Lee on 24 October 2013, 18:39:13 UTC, committed by Daniel Lee on 24 October 2013, 18:39:13 UTC
Hotfix/v2.0.1
libstan
LIBSTAN_OFILES = bin/stan/agrad/rev/var_stack.o bin/stan/math/matrix.o bin/stan/agrad/matrix.o
bin/libstan.a : $(LIBSTAN_OFILES)
@mkdir -p $(dir $@)
$(AR) -rs bin/libstan.a $(LIBSTAN_OFILES)
TEMPLATE_INSTANTIATION := $(shell find src/stan/gm -type f -name '*_inst.cpp')
TEMPLATE_INSTANTIATION += $(shell find src/stan/gm -type f -name '*_def.cpp')
TEMPLATE_INSTANTIATION := $(TEMPLATE_INSTANTIATION:src/%.cpp=bin/%.o)
bin/libstanc.a : $(TEMPLATE_INSTANTIATION)
@mkdir -p $(dir $@)
$(AR) -rs bin/libstanc.a $(TEMPLATE_INSTANTIATION)
$(TEMPLATE_INSTANTIATION) : bin/%.o : src/%.cpp
@mkdir -p $(dir $@)
$(COMPILE.c) -O$(O_STANC) $(OUTPUT_OPTION) $<
##
# Generate dependencies for libraries
##
ifneq (,$(filter-out clean%,$(MAKECMDGOALS)))
-include $(addsuffix .d,$(basename $(LIBSTAN_OFILES)))
-include $(addsuffix .d,$(basename $(TEMPLATE_INSTANTIATION)))
endif
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...