Revision d559ddbbb751d25b80108198c82588fdc4223bd0 authored by seantalts on 20 April 2017, 18:29:48 UTC, committed by GitHub on 20 April 2017, 18:29:48 UTC
2 parent s 4c6c452 + 2715755
Raw File
libstan
TEMPLATE_INSTANTIATION_CPP := $(shell find src/stan/lang -type f -name '*_inst.cpp') $(shell find src/stan/lang -type f -name '*_def.cpp')
TEMPLATE_INSTANTIATION := $(TEMPLATE_INSTANTIATION_CPP: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) $<

back to top