aboutsummaryrefslogtreecommitdiffstats
path: root/rust/Makefile
blob: 39cae700a6d01334d127c216bed742d31b203e94 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
all: debug

debug: libpintos.a
	cargo rustc -- -C link-arg= -L.

release: libpintos.a
	cargo rustc --release -- -C link-arg= -L.

libpintos.a:
	make -C ../src/examples libc.a
	cp ../src/examples/libc.a libpintos.a

clean:
	cargo clean
	rm -f libpintos.a

.PHONY: all clean debug release libpintos.a