simple-http: Check hardcoded root path, add 404 page
[learn-rust.git] / call-rust-from-c / Makefile
1 RLIB = target/debug/libcall_rust_from_c.a
2 LIBS = -lpthread -ldl
3
4 main: src/main.o $(RLIB)
5         $(CC) -Wall -o $@ $^ $(LIBS)
6
7 src/main.o: src/rustlib.h
8
9 src/rustlib.h: src/lib.rs
10         cbindgen --lang c --output $@
11
12 $(RLIB): src/lib.rs
13         cargo build
14
15 run: main
16         ./main
17
18 check:
19         cargo test
20
21 .PHONY: run test