-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (37 loc) · 1.21 KB
/
Copy pathMakefile
File metadata and controls
49 lines (37 loc) · 1.21 KB
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
# Top-level Makefile for NetISA project
#
# Targets:
# all - Build everything
# dos - Build all DOS software
# tsr - Build NETISA.COM (TSR)
# launcher - Build NETISA.EXE (launcher)
# test - Build phase0/dos/nisatest.com
# sim - Run iverilog testbench
# firmware - Build ESP32-S3 firmware (ESP-IDF)
# clean - Remove build artifacts
NASM = nasm
IVERILOG = iverilog
VVP = vvp
all: dos test .SYMBOLIC
dos: .SYMBOLIC
cd dos && wmake -f Makefile all
tsr: .SYMBOLIC
cd dos && wmake -f Makefile tsr
launcher: .SYMBOLIC
cd dos && wmake -f Makefile launcher
cathode: .SYMBOLIC
cd dos && wmake -f Makefile cathode
discord: .SYMBOLIC
cd dos && wmake -f Makefile discord
firmware: .SYMBOLIC
C:\Espressif\python_env\idf5.5_py3.11_env\Scripts\python.exe firmware\build_idf.py build
test: phase0\dos\nisatest.com .SYMBOLIC
phase0\dos\nisatest.com: phase0\dos\nisatest.asm
$(NASM) -f bin -o phase0\dos\nisatest.com phase0\dos\nisatest.asm
sim: .SYMBOLIC
cd phase0\cpld && $(IVERILOG) -o netisa_tb netisa.v netisa_tb.v && $(VVP) netisa_tb
clean: .SYMBOLIC
cd dos && wmake -f Makefile clean
-del phase0\dos\nisatest.com
-del phase0\cpld\netisa_tb
-del phase0\cpld\netisa_tb.vcd