diff --git a/Makefile b/Makefile index 7e298e2..61c77bc 100644 --- a/Makefile +++ b/Makefile @@ -7,8 +7,11 @@ .POSIX: -bindings.rlib: limine.h limine.rs - bindgen --use-core limine.h | cat limine.rs - | rustc --crate-type=lib - -o $@ +RUSTC ?= rustc + +bindings.rlib: src/limine.h src/limine.rs + bindgen --use-core src/limine.h | cat src/limine.rs - \ + | $(RUSTC) --crate-type=lib - -o $@ .PHONY: clean clean: diff --git a/limine.h b/src/limine.h similarity index 100% rename from limine.h rename to src/limine.h diff --git a/limine.rs b/src/limine.rs similarity index 100% rename from limine.rs rename to src/limine.rs