limine/limine-install/Makefile

31 lines
947 B
Makefile
Raw Normal View History

2022-01-02 14:45:15 +03:00
CC ?= cc
2022-01-22 05:46:48 +03:00
INSTALL ?= ./install-sh
2022-01-02 14:45:15 +03:00
PREFIX ?= /usr/local
DESTDIR ?=
2022-01-02 14:45:15 +03:00
CFLAGS ?= -O2 -pipe -Wall -Wextra
2022-01-02 14:45:15 +03:00
.PHONY: all
all: limine-install
2022-01-02 14:45:15 +03:00
.PHONY: install
install: all
2022-01-22 05:46:48 +03:00
$(INSTALL) -d '$(DESTDIR)$(PREFIX)/bin'
$(INSTALL) -s limine-install '$(DESTDIR)$(PREFIX)/bin/'
$(INSTALL) -d '$(DESTDIR)$(PREFIX)/share'
$(INSTALL) -d '$(DESTDIR)$(PREFIX)/share/limine'
$(INSTALL) -m 644 limine.sys '$(DESTDIR)$(PREFIX)/share/limine/'
$(INSTALL) -m 644 limine-cd.bin '$(DESTDIR)$(PREFIX)/share/limine/'
$(INSTALL) -m 644 limine-eltorito-efi.bin '$(DESTDIR)$(PREFIX)/share/limine/'
$(INSTALL) -m 644 limine-pxe.bin '$(DESTDIR)$(PREFIX)/share/limine/'
$(INSTALL) -m 644 BOOTX64.EFI '$(DESTDIR)$(PREFIX)/share/limine/'
$(INSTALL) -m 644 BOOTIA32.EFI '$(DESTDIR)$(PREFIX)/share/limine/'
2022-01-02 14:45:15 +03:00
.PHONY: clean
clean:
rm -f limine-install limine-install.exe
limine-install: limine-install.c inc.S limine-hdd.bin
$(CC) $(CFLAGS) -std=c11 limine-install.c inc.S -o $@