forked from serokell/ton-paychan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (24 loc) · 1.18 KB
/
Makefile
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
# SPDX-FileCopyrightText: 2019 Serokell <https://serokell.io>
#
# SPDX-License-Identifier: MPL-2.0
#
# Configure paths
#
fift_lib = ./vendor/fift
fift_compiler = fift
func_lib = ./vendor/func/stdlib.fc
func_compiler = func
##
export FIFTPATH:=src/cli:src/lib:$(fift_lib)
func_opts = -P -O0
paychan_func_src = src/contract/errors.fc src/lib/Sign.fc src/lib/Iou.fc src/lib/Util.fc src/lib/Payout.fc src/lib/State/Local/StateTags.fc src/lib/State/Local/WaitingBoth.fc src/lib/State/Local/WaitingOne.fc src/lib/State/Local/Open.fc src/lib/State/Local/Terminated.fc src/lib/State/Local/Closing.fc src/lib/State/GlobalState.fc src/lib/State/Util.fc src/lib/request/RawReq.fc src/lib/request/ReqOps.fc src/lib/Request/Close.fc src/lib/State/State.fc src/contract/Handlers/join_handler.fc src/contract/Handlers/close_handler.fc src/contract/Handlers/timeout_handler.fc src/contract/paychan.fc
compile: build/paychan.asm.fif
@echo '"Asm.fif" include "paychan.asm.fif" include <s drop' \
| FIFTPATH="$(fift_lib):./build" fift -s -
build/paychan.asm.fif: $(paychan_func_src)
@mkdir -p $(@D)
@$(func_compiler) $(func_opts) -P -o$@ $(func_lib) $^
clean:
rm -rf build
.PHONY: compile clean
include test/Makefile