2022-03-26 05:38:46 +03:00
|
|
|
CC ?= cc
|
|
|
|
INSTALL ?= ./install-sh
|
|
|
|
|
|
|
|
PREFIX ?= /usr/local
|
|
|
|
|
|
|
|
CFLAGS ?= -g -O2 -pipe -Wall -Wextra
|
|
|
|
|
|
|
|
.PHONY: all
|
2022-04-02 11:45:34 +03:00
|
|
|
all: limine-deploy
|
2022-03-26 05:38:46 +03:00
|
|
|
|
|
|
|
.PHONY: install-data
|
|
|
|
install-data: all
|
|
|
|
$(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/'
|
2022-03-30 16:40:48 +03:00
|
|
|
$(INSTALL) -m 644 limine-cd-efi.bin '$(DESTDIR)$(PREFIX)/share/limine/'
|
2022-03-26 05:38:46 +03:00
|
|
|
$(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-04-13 03:02:54 +03:00
|
|
|
$(INSTALL) -d '$(DESTDIR)$(PREFIX)/include'
|
|
|
|
$(INSTALL) -m 644 limine.h '$(DESTDIR)$(PREFIX)/include/'
|
2022-03-26 05:38:46 +03:00
|
|
|
|
|
|
|
.PHONY: install
|
|
|
|
install: install-data
|
|
|
|
$(INSTALL) -d '$(DESTDIR)$(PREFIX)/bin'
|
2022-04-02 11:45:34 +03:00
|
|
|
$(INSTALL) limine-deploy '$(DESTDIR)$(PREFIX)/bin/'
|
2022-03-26 05:38:46 +03:00
|
|
|
|
|
|
|
.PHONY: install-strip
|
|
|
|
install-strip: install-data
|
|
|
|
$(INSTALL) -d '$(DESTDIR)$(PREFIX)/bin'
|
2022-04-02 11:45:34 +03:00
|
|
|
$(INSTALL) -s limine-deploy '$(DESTDIR)$(PREFIX)/bin/'
|
2022-03-26 05:38:46 +03:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
2022-04-02 11:45:34 +03:00
|
|
|
rm -f limine-deploy limine-deploy.exe
|
2022-03-26 05:38:46 +03:00
|
|
|
|
2022-04-02 11:45:34 +03:00
|
|
|
limine-deploy: limine-deploy.c
|
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -std=c99 limine-deploy.c -o $@
|