limine-rs-sys/Makefile
2024-07-15 00:32:39 -06:00

16 lines
490 B
Makefile

# 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:
bindings.rlib: limine.h limine.rs
bindgen --use-core limine.h | cat limine.rs - | rustc --crate-type=lib - -o $@
.PHONY: clean
clean:
rm -f bindings.rlib