limine/host/Makefile

39 lines
1.2 KiB
Makefile
Raw Normal View History

2022-01-02 14:45:15 +03:00
CC ?= cc
STRIP ?= strip
2022-01-22 05:46:48 +03:00
INSTALL ?= ./install-sh
2022-01-02 14:45:15 +03:00
PREFIX ?= /usr/local
2023-04-11 18:15:41 +03:00
CFLAGS ?= -g -O2 -pipe
2022-01-02 14:45:15 +03:00
.PHONY: all
all: limine
.PHONY: install
install: all
2022-01-22 05:46:48 +03:00
$(INSTALL) -d '$(DESTDIR)$(PREFIX)/share'
$(INSTALL) -d '$(DESTDIR)$(PREFIX)/share/limine'
2023-06-15 03:02:32 +03:00
$(INSTALL) -m 644 limine-bios.sys '$(DESTDIR)$(PREFIX)/share/limine/'
$(INSTALL) -m 644 limine-bios-cd.bin '$(DESTDIR)$(PREFIX)/share/limine/'
$(INSTALL) -m 644 limine-uefi-cd.bin '$(DESTDIR)$(PREFIX)/share/limine/'
$(INSTALL) -m 644 limine-bios-pxe.bin '$(DESTDIR)$(PREFIX)/share/limine/'
2022-01-22 05:46:48 +03:00
$(INSTALL) -m 644 BOOTX64.EFI '$(DESTDIR)$(PREFIX)/share/limine/'
$(INSTALL) -m 644 BOOTIA32.EFI '$(DESTDIR)$(PREFIX)/share/limine/'
$(INSTALL) -m 644 BOOTAA64.EFI '$(DESTDIR)$(PREFIX)/share/limine/'
$(INSTALL) -m 644 BOOTRISCV64.EFI '$(DESTDIR)$(PREFIX)/share/limine/'
2022-04-13 02:01:47 +03:00
$(INSTALL) -d '$(DESTDIR)$(PREFIX)/include'
$(INSTALL) -m 644 limine.h '$(DESTDIR)$(PREFIX)/include/'
2022-01-27 14:53:40 +03:00
$(INSTALL) -d '$(DESTDIR)$(PREFIX)/bin'
$(INSTALL) limine '$(DESTDIR)$(PREFIX)/bin/'
2022-01-27 14:53:40 +03:00
.PHONY: install-strip
install-strip: install
$(STRIP) '$(DESTDIR)$(PREFIX)/bin/limine'
2022-01-27 14:53:40 +03:00
2022-01-02 14:45:15 +03:00
.PHONY: clean
clean:
rm -f limine limine.exe
limine: limine.c
$(CC) $(CFLAGS) -Wall -Wextra $(WERROR_FLAG) $(CPPFLAGS) $(LDFLAGS) -std=c99 limine.c $(LIBS) -o $@