-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
28 lines (21 loc) · 943 Bytes
/
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
# Copyright (C) 2018 SCARV project <[email protected]>
#
# Use of this source code is restricted per the MIT license, a copy of which
# can be found at https://opensource.org/licenses/MIT (or should be included
# as LICENSE.txt within the associated archive or repository).
ifndef REPO_HOME
$(error "execute 'source ./bin/conf.sh' to configure environment")
endif
# =============================================================================
include $(REPO_HOME)/common.mk
toolchain-% :
$(MAKE) -C $(REPO_HOME)/src/toolchain ${*}
paper:
$(MAKE) -C $(REPO_HOME)/doc all
opcodes:
cat $(REPO_HOME)/src/toolchain/opcodes.txt \
| python3 $(REPO_HOME)/bin/parse_opcodes.py -check
cat $(REPO_HOME)/src/toolchain/opcodes.txt \
| python3 $(REPO_HOME)/bin/parse_opcodes.py -c > build/opcodes-crypto.h
cat $(REPO_HOME)/src/toolchain/opcodes.txt \
| python3 $(REPO_HOME)/bin/parse_opcodes.py -verilog > build/opcodes-crypto.vh