forked from RebelTechnology/OwlProgram
-
Notifications
You must be signed in to change notification settings - Fork 0
/
heavy.mk
22 lines (19 loc) · 860 Bytes
/
heavy.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
HEAVYRELEASE ?= r2018.03
# release version, see https://enzienaudio.com/a/releases
HEAVYFILE ?= $(HEAVY).pd
HEAVYNAME ?= owl
HEAVYSRC ?= $(BUILDROOT)/HeavySource
HEAVYDIR ?= $(BUILD)/Heavy
HEAVYARGS ?= -g c -n $(HEAVYNAME) -p $(HEAVYDIR) -o $(BUILD)
HVCC ?= $(BUILDROOT)/Tools/hvcc/hvcc.py
HVCC_OWL ?= $(BUILDROOT)/Tools/build_send_receive_constants.py
$(HEAVYDIR)/_main.pd: $(PATCHSOURCE)/$(HEAVYFILE)
@mkdir -p $(HEAVYDIR)
@cp -f $(PATCHSOURCE)/*.pd $(HEAVYDIR)
@cp -f $< $@
$(BUILD)/Source/Heavy_owl.h: $(HEAVYDIR)/_main.pd
@python2.7 $(HVCC) $(HEAVYDIR)/_main.pd $(HEAVYARGS)
@mv -f $(BUILD)/c/* $(BUILD)/Source
@cp -f $(HEAVYSRC)/HvUtils.h $(HEAVYSRC)/HvMessage.c $(BUILD)/Source
@python2.7 $(HVCC_OWL) $(BUILD)/ir/owl.heavy.ir.json $(BUILD)/Source/Heavy_$(HEAVYNAME)_constants.h
heavy: $(BUILD)/Source/Heavy_owl.h