forked from stople/OpenTitus
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (21 loc) · 725 Bytes
/
Makefile
File metadata and controls
27 lines (21 loc) · 725 Bytes
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
.DEFAULT_GOAL := debug_local_platform
VERSION ?= "0.0.0"
PREFIX ?= "./zig-out"
debug_local_platform:
zig build -Dcpu=baseline --prefix $(PREFIX)
release:
@echo "Building OpenTitus $(VERSION)"
zig build --release=small -Dtarget=x86_64-linux-gnu.2.27 -Dcpu=baseline -Dversion=$(VERSION) --prefix $(PREFIX)
zig build --release=small -Dtarget=x86_64-windows -Dcpu=baseline -Dversion=$(VERSION) --prefix $(PREFIX)
test:
@echo "Running tests..."
zig build test --summary all
# Clean target
clean:
@echo "Removing artifacts..."
rm -f $(PREFIX)/opentitus
rm -f $(PREFIX)/opentitus.exe
rm -f $(PREFIX)/TITUS/README.txt
rm -f $(PREFIX)/MOKTAR/README.txt
# Phony targets
.PHONY: debug_local_platform clean test release