2021-04-08 20:41:46 +03:00
|
|
|
CC = cc
|
|
|
|
|
2021-03-18 07:24:40 +03:00
|
|
|
PREFIX = /usr/local
|
|
|
|
DESTDIR =
|
|
|
|
|
2021-11-20 10:32:06 +03:00
|
|
|
BUILDDIR = .
|
2021-03-17 20:38:47 +03:00
|
|
|
LIMINE_HDD_BIN = limine-hdd.bin
|
|
|
|
|
|
|
|
CFLAGS = -O2 -pipe -Wall -Wextra
|
|
|
|
|
2021-07-29 16:54:18 +03:00
|
|
|
.PHONY: all install clean
|
2021-03-17 20:38:47 +03:00
|
|
|
|
2021-11-25 20:44:10 +03:00
|
|
|
all:
|
|
|
|
$(CC) $(CFLAGS) -std=c11 -DLIMINE_HDD_BIN='"$(LIMINE_HDD_BIN)"' limine-install.c inc.S -o "$(BUILDDIR)/limine-install"
|
2021-03-17 20:38:47 +03:00
|
|
|
|
2021-03-18 07:24:40 +03:00
|
|
|
install: all
|
2021-04-11 10:56:48 +03:00
|
|
|
install -d "$(DESTDIR)$(PREFIX)/bin"
|
2021-11-20 10:32:06 +03:00
|
|
|
install -s "$(BUILDDIR)/limine-install" "$(DESTDIR)$(PREFIX)/bin/"
|
2021-04-11 10:56:48 +03:00
|
|
|
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/"
|
2021-07-20 15:46:19 +03:00
|
|
|
install -m 644 limine-eltorito-efi.bin "$(DESTDIR)$(PREFIX)/share/limine/"
|
2021-04-11 10:56:48 +03:00
|
|
|
install -m 644 limine-pxe.bin "$(DESTDIR)$(PREFIX)/share/limine/"
|
|
|
|
install -m 644 BOOTX64.EFI "$(DESTDIR)$(PREFIX)/share/limine/"
|
2021-07-20 15:46:19 +03:00
|
|
|
install -m 644 BOOTIA32.EFI "$(DESTDIR)$(PREFIX)/share/limine/"
|
2021-03-18 07:24:40 +03:00
|
|
|
|
2021-03-17 20:38:47 +03:00
|
|
|
clean:
|
2021-11-20 10:32:06 +03:00
|
|
|
rm -f "$(BUILDDIR)/limine-install" "$(BUILDDIR)/limine-install.exe"
|