-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathscale_factors.mk
76 lines (57 loc) · 1.97 KB
/
scale_factors.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# ==========================================================================
# Dedmonwakeen's Raid DPS/TPS Simulator.
# Send questions to [email protected]
# ==========================================================================
# Ugh
profile = $(subst _auto,,$(subst death_knight,Death_Knight,$(subst dr,Dr,$(subst hu,Hu,$(subst mag,Mag,$(subst p,P,$(subst ro,Ro,$(subst sh,Sh,$(subst wa,Wa,$1)))))))))
# Regenerate html reports when class models change
MODULE = ./simc
HTML = html
LIVE = 406
PTR = 410
MODELS =\
death_knight \
druid \
hunter \
mage \
paladin \
priest \
rogue \
shaman \
warlock \
warrior
REPORTS_LIVE := $(MODELS:%=$(HTML)/$(LIVE)/%_auto.html)
REPORTS_PTR := $(MODELS:%=$(HTML)/$(PTR)/%_auto.html)
SRC = engine
DEP_LIVE =\
$(SRC)/sc_extra_data.inc \
$(SRC)/sc_item_data.inc \
$(SRC)/sc_scale_data.inc \
$(SRC)/sc_spell_data.inc \
$(SRC)/sc_spell_lists.inc \
$(SRC)/sc_talent_data.inc
DEP_PTR =\
$(SRC)/sc_extra_data_ptr.inc \
$(SRC)/sc_item_data_ptr.inc \
$(SRC)/sc_scale_data_ptr.inc \
$(SRC)/sc_spell_data_ptr.inc \
$(SRC)/sc_spell_lists_ptr.inc \
$(SRC)/sc_talent_data_ptr.inc
ITERATIONS = 25000
THREADS = 2
SF = 1
OPTS = iterations=$(ITERATIONS) threads=$(THREADS) calculate_scale_factors=$(SF) hosted_html=1
GEAR = T11_372
.PHONY: live ptr all clean
live: $(REPORTS_LIVE)
ptr: $(REPORTS_PTR)
all: live ptr
clean:
/bin/rm -f $(REPORTS_LIVE) $(REPORTS_PTR)
$(HTML)/$(LIVE)/%_auto.html: $(SRC)/sc_%.cpp $(DEP_LIVE)
-@echo Generating $@
-@$(MODULE) $(OPTS) $(call profile,$(basename $(@F)))_$(GEAR).simc output=$(basename $(@F))_live.txt html=$@
# We should make <class>_PTR_<etc>.simc files even if they just reload the live version
$(HTML)/$(PTR)/%_auto.html: $(SRC)/sc_%.cpp $(DEP_PTR)
-@echo Generating $@
-@$(MODULE) ptr=1 $(OPTS) $(call profile,$(basename $(@F)))_$(GEAR)_PTR.simc output=$(basename $(@F))_ptr.txt html=$@