limine-rs-sys/Makefile

19 lines
529 B
Makefile
Raw Permalink Normal View History

2024-07-15 00:32:39 -06:00
# Copyright (c) 2024 Emma Tebibyte <emma@tebibyte.media>
# SPDX-License-Identifier: FSFAP
#
# Copying and distribution of this file, with or without modification, are
# permitted in any medium without royalty provided the copyright notice and this
# notice are preserved. This file is offered as-is, without any warranty.
.POSIX:
2024-07-15 00:44:27 -06:00
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 $@
2024-07-15 00:32:39 -06:00
.PHONY: clean
clean:
rm -f bindings.rlib