Skip to content

Commit

Permalink
updating makefiles
Browse files Browse the repository at this point in the history
  • Loading branch information
syclik committed Aug 7, 2018
1 parent 4ac0322 commit 681f59b
Show file tree
Hide file tree
Showing 5 changed files with 299 additions and 310 deletions.
15 changes: 15 additions & 0 deletions make/libstanc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
################################################################################
# libstanc build rules

STANC_TEMPLATE_INSTANTIATION_CPP := $(shell find $(STAN)src/stan/lang -type f -name '*_inst.cpp') $(shell find $(STAN)src/stan/lang -type f -name '*_def.cpp')
STANC_TEMPLATE_INSTANTIATION := $(STANC_TEMPLATE_INSTANTIATION_CPP:src/%.cpp=bin/%.o)

$(STAN)bin/libstanc.a : $(STANC_TEMPLATE_INSTANTIATION)
@mkdir -p $(dir $@)
$(AR) -rs $@ $^


$(STANC_TEMPLATE_INSTANTIATION) : O = $(O_STANC)
$(STANC_TEMPLATE_INSTANTIATION) : bin/%.o : src/%.cpp
@mkdir -p $(dir $@)
$(COMPILE.cpp) $(OUTPUT_OPTION) $<
Loading

0 comments on commit 681f59b

Please sign in to comment.