build: Update due to limine-efi rebranding
This commit is contained in:
parent
746d0ad529
commit
13b9a333ad
|
@ -1,7 +1,7 @@
|
||||||
/bin
|
/bin
|
||||||
/build
|
/build
|
||||||
/toolchain
|
/toolchain
|
||||||
/reduced-gnu-efi
|
/limine-efi
|
||||||
/freestanding_headers
|
/freestanding_headers
|
||||||
/ovmf*
|
/ovmf*
|
||||||
*.o
|
*.o
|
||||||
|
|
|
@ -170,13 +170,13 @@ limine-uefi: @BUILD_UEFI32@ @BUILD_UEFI64@
|
||||||
$(MAKE) limine-cd-efi
|
$(MAKE) limine-cd-efi
|
||||||
|
|
||||||
.PHONY: limine-uefi64
|
.PHONY: limine-uefi64
|
||||||
limine-uefi64: $(call MKESCAPE,$(SRCDIR))/reduced-gnu-efi
|
limine-uefi64: $(call MKESCAPE,$(SRCDIR))/limine-efi
|
||||||
$(MAKE) common-uefi64
|
$(MAKE) common-uefi64
|
||||||
mkdir -p '$(call SHESCAPE,$(BINDIR))'
|
mkdir -p '$(call SHESCAPE,$(BINDIR))'
|
||||||
cp '$(call SHESCAPE,$(BUILDDIR))/common-uefi64/BOOTX64.EFI' '$(call SHESCAPE,$(BINDIR))/'
|
cp '$(call SHESCAPE,$(BUILDDIR))/common-uefi64/BOOTX64.EFI' '$(call SHESCAPE,$(BINDIR))/'
|
||||||
|
|
||||||
.PHONY: limine-uefi32
|
.PHONY: limine-uefi32
|
||||||
limine-uefi32: $(call MKESCAPE,$(SRCDIR))/reduced-gnu-efi
|
limine-uefi32: $(call MKESCAPE,$(SRCDIR))/limine-efi
|
||||||
$(MAKE) common-uefi32
|
$(MAKE) common-uefi32
|
||||||
mkdir -p '$(call SHESCAPE,$(BINDIR))'
|
mkdir -p '$(call SHESCAPE,$(BINDIR))'
|
||||||
cp '$(call SHESCAPE,$(BUILDDIR))/common-uefi32/BOOTIA32.EFI' '$(call SHESCAPE,$(BINDIR))/'
|
cp '$(call SHESCAPE,$(BUILDDIR))/common-uefi32/BOOTIA32.EFI' '$(call SHESCAPE,$(BINDIR))/'
|
||||||
|
@ -198,7 +198,7 @@ dist:
|
||||||
cd '$(call SHESCAPE,$(BUILDDIR))'/"limine-$(LIMINE_VERSION)" && git checkout .
|
cd '$(call SHESCAPE,$(BUILDDIR))'/"limine-$(LIMINE_VERSION)" && git checkout .
|
||||||
cd '$(call SHESCAPE,$(BUILDDIR))'/"limine-$(LIMINE_VERSION)" && NOCONFIGURE=yes ./autogen.sh
|
cd '$(call SHESCAPE,$(BUILDDIR))'/"limine-$(LIMINE_VERSION)" && NOCONFIGURE=yes ./autogen.sh
|
||||||
rm -rf '$(call SHESCAPE,$(BUILDDIR))'/"limine-$(LIMINE_VERSION)/freestanding_headers/.git"
|
rm -rf '$(call SHESCAPE,$(BUILDDIR))'/"limine-$(LIMINE_VERSION)/freestanding_headers/.git"
|
||||||
rm -rf '$(call SHESCAPE,$(BUILDDIR))'/"limine-$(LIMINE_VERSION)/reduced-gnu-efi/.git"
|
rm -rf '$(call SHESCAPE,$(BUILDDIR))'/"limine-$(LIMINE_VERSION)/limine-efi/.git"
|
||||||
rm -rf '$(call SHESCAPE,$(BUILDDIR))'/"limine-$(LIMINE_VERSION)/.git"
|
rm -rf '$(call SHESCAPE,$(BUILDDIR))'/"limine-$(LIMINE_VERSION)/.git"
|
||||||
rm -rf '$(call SHESCAPE,$(BUILDDIR))'/"limine-$(LIMINE_VERSION)/autom4te.cache"
|
rm -rf '$(call SHESCAPE,$(BUILDDIR))'/"limine-$(LIMINE_VERSION)/autom4te.cache"
|
||||||
rm -rf '$(call SHESCAPE,$(BUILDDIR))'/"limine-$(LIMINE_VERSION)/test"
|
rm -rf '$(call SHESCAPE,$(BUILDDIR))'/"limine-$(LIMINE_VERSION)/test"
|
||||||
|
@ -214,7 +214,7 @@ distclean: clean
|
||||||
|
|
||||||
.PHONY: maintainer-clean
|
.PHONY: maintainer-clean
|
||||||
maintainer-clean: distclean
|
maintainer-clean: distclean
|
||||||
cd '$(call SHESCAPE,$(SRCDIR))' && rm -rf freestanding_headers reduced-gnu-efi configure build-aux *'~' autom4te.cache *.tar.xz *.tar.gz
|
cd '$(call SHESCAPE,$(SRCDIR))' && rm -rf freestanding_headers limine-efi configure build-aux *'~' autom4te.cache *.tar.xz *.tar.gz
|
||||||
|
|
||||||
.PHONY: common-uefi64
|
.PHONY: common-uefi64
|
||||||
common-uefi64:
|
common-uefi64:
|
||||||
|
|
|
@ -10,7 +10,7 @@ test -z "$srcdir" && srcdir=.
|
||||||
cd "$srcdir"
|
cd "$srcdir"
|
||||||
|
|
||||||
[ -d freestanding_headers ] || git clone https://github.com/mintsuki/freestanding_headers.git
|
[ -d freestanding_headers ] || git clone https://github.com/mintsuki/freestanding_headers.git
|
||||||
[ -d reduced-gnu-efi ] || git clone https://github.com/limine-bootloader/reduced-gnu-efi.git
|
[ -d limine-efi ] || git clone https://github.com/limine-bootloader/limine-efi.git
|
||||||
|
|
||||||
automake_libdir="$(automake --print-libdir)"
|
automake_libdir="$(automake --print-libdir)"
|
||||||
|
|
||||||
|
|
|
@ -101,8 +101,8 @@ override INTERNAL_CFLAGS += \
|
||||||
-mtune=generic \
|
-mtune=generic \
|
||||||
-mabi=sysv \
|
-mabi=sysv \
|
||||||
-DGNU_EFI_USE_MS_ABI \
|
-DGNU_EFI_USE_MS_ABI \
|
||||||
-I'$(call SHESCAPE,$(BUILDDIR))/reduced-gnu-efi/inc' \
|
-I'$(call SHESCAPE,$(BUILDDIR))/limine-efi/inc' \
|
||||||
-I'$(call SHESCAPE,$(BUILDDIR))/reduced-gnu-efi/inc/x86_64' \
|
-I'$(call SHESCAPE,$(BUILDDIR))/limine-efi/inc/x86_64' \
|
||||||
-fpie \
|
-fpie \
|
||||||
-mno-red-zone
|
-mno-red-zone
|
||||||
endif
|
endif
|
||||||
|
@ -116,8 +116,8 @@ override INTERNAL_CFLAGS += \
|
||||||
-mtune=generic \
|
-mtune=generic \
|
||||||
-mabi=sysv \
|
-mabi=sysv \
|
||||||
-DGNU_EFI_USE_MS_ABI \
|
-DGNU_EFI_USE_MS_ABI \
|
||||||
-I'$(call SHESCAPE,$(BUILDDIR))/reduced-gnu-efi/inc' \
|
-I'$(call SHESCAPE,$(BUILDDIR))/limine-efi/inc' \
|
||||||
-I'$(call SHESCAPE,$(BUILDDIR))/reduced-gnu-efi/inc/ia32' \
|
-I'$(call SHESCAPE,$(BUILDDIR))/limine-efi/inc/ia32' \
|
||||||
-fpie
|
-fpie
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -273,9 +273,9 @@ $(call MKESCAPE,$(BUILDDIR))/limine.elf: $(OBJ) $(call MKESCAPE,$(BUILDDIR))/tin
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/reduced-gnu-efi: ../reduced-gnu-efi/*
|
$(call MKESCAPE,$(BUILDDIR))/limine-efi: ../limine-efi/*
|
||||||
mkdir -p '$(call SHESCAPE,$(BUILDDIR))/'
|
mkdir -p '$(call SHESCAPE,$(BUILDDIR))/'
|
||||||
cp -r ../reduced-gnu-efi '$(call SHESCAPE,$(BUILDDIR))/'
|
cp -r ../limine-efi '$(call SHESCAPE,$(BUILDDIR))/'
|
||||||
|
|
||||||
ifeq ($(TARGET), uefi64)
|
ifeq ($(TARGET), uefi64)
|
||||||
|
|
||||||
|
@ -288,16 +288,16 @@ $(call MKESCAPE,$(BUILDDIR))/full.map.o: $(call MKESCAPE,$(BUILDDIR))/limine_nom
|
||||||
$(call MKESCAPE,$(BUILDDIR))/BOOTX64.EFI: $(call MKESCAPE,$(BUILDDIR))/limine.elf
|
$(call MKESCAPE,$(BUILDDIR))/BOOTX64.EFI: $(call MKESCAPE,$(BUILDDIR))/limine.elf
|
||||||
$(LIMINE_OBJCOPY) -O binary '$(call SHESCAPE,$<)' '$(call SHESCAPE,$@)'
|
$(LIMINE_OBJCOPY) -O binary '$(call SHESCAPE,$<)' '$(call SHESCAPE,$@)'
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/reduced-gnu-efi/gnuefi/crt0-efi-x86_64.o: reduced-gnu-efi
|
$(call MKESCAPE,$(BUILDDIR))/limine-efi/gnuefi/crt0-efi-x86_64.o: limine-efi
|
||||||
true
|
true
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/reduced-gnu-efi/gnuefi/libgnuefi.a: reduced-gnu-efi
|
$(call MKESCAPE,$(BUILDDIR))/limine-efi/gnuefi/libgnuefi.a: limine-efi
|
||||||
true
|
true
|
||||||
|
|
||||||
.PHONY: reduced-gnu-efi
|
.PHONY: limine-efi
|
||||||
reduced-gnu-efi: $(call MKESCAPE,$(BUILDDIR))/reduced-gnu-efi
|
limine-efi: $(call MKESCAPE,$(BUILDDIR))/limine-efi
|
||||||
unset ARFLAGS; unset CPPFLAGS; \
|
unset ARFLAGS; unset CPPFLAGS; \
|
||||||
$(MAKE) -C '$(call SHESCAPE,$(BUILDDIR))/reduced-gnu-efi/gnuefi' \
|
$(MAKE) -C '$(call SHESCAPE,$(BUILDDIR))/limine-efi/gnuefi' \
|
||||||
CC="$(LIMINE_CC) -m64 -march=x86-64 -mtune=generic" \
|
CC="$(LIMINE_CC) -m64 -march=x86-64 -mtune=generic" \
|
||||||
CFLAGS='-nostdinc' \
|
CFLAGS='-nostdinc' \
|
||||||
INCDIR='-I$(call SHESCAPE,$(SRCDIR))/../freestanding_headers' \
|
INCDIR='-I$(call SHESCAPE,$(SRCDIR))/../freestanding_headers' \
|
||||||
|
@ -308,7 +308,7 @@ $(call MKESCAPE,$(BUILDDIR))/linker_nomap.ld: linker_uefi64.ld.in
|
||||||
mkdir -p '$(call SHESCAPE,$(BUILDDIR))'
|
mkdir -p '$(call SHESCAPE,$(BUILDDIR))'
|
||||||
$(LIMINE_CC) -x c -E -P -undef -DLINKER_NOMAP linker_uefi64.ld.in -o '$(call SHESCAPE,$(BUILDDIR))/linker_nomap.ld'
|
$(LIMINE_CC) -x c -E -P -undef -DLINKER_NOMAP linker_uefi64.ld.in -o '$(call SHESCAPE,$(BUILDDIR))/linker_nomap.ld'
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/limine_nomap.elf: $(call MKESCAPE,$(BUILDDIR))/reduced-gnu-efi/gnuefi/crt0-efi-x86_64.o $(call MKESCAPE,$(BUILDDIR))/reduced-gnu-efi/gnuefi/libgnuefi.a $(OBJ) $(call MKESCAPE,$(BUILDDIR))/tinf/tinfgzip.o $(call MKESCAPE,$(BUILDDIR))/tinf/tinflate.o $(call MKESCAPE,$(BUILDDIR))/font.o $(call MKESCAPE,$(BUILDDIR))/sys/smp_trampoline.o
|
$(call MKESCAPE,$(BUILDDIR))/limine_nomap.elf: $(call MKESCAPE,$(BUILDDIR))/limine-efi/gnuefi/crt0-efi-x86_64.o $(call MKESCAPE,$(BUILDDIR))/limine-efi/gnuefi/libgnuefi.a $(OBJ) $(call MKESCAPE,$(BUILDDIR))/tinf/tinfgzip.o $(call MKESCAPE,$(BUILDDIR))/tinf/tinflate.o $(call MKESCAPE,$(BUILDDIR))/font.o $(call MKESCAPE,$(BUILDDIR))/sys/smp_trampoline.o
|
||||||
$(MAKE) '$(call SHESCAPE,$(BUILDDIR))/linker_nomap.ld'
|
$(MAKE) '$(call SHESCAPE,$(BUILDDIR))/linker_nomap.ld'
|
||||||
$(LIMINE_LD) \
|
$(LIMINE_LD) \
|
||||||
-T'$(call SHESCAPE,$(BUILDDIR))/linker_nomap.ld' \
|
-T'$(call SHESCAPE,$(BUILDDIR))/linker_nomap.ld' \
|
||||||
|
@ -318,7 +318,7 @@ $(call MKESCAPE,$(BUILDDIR))/linker.ld: linker_uefi64.ld.in
|
||||||
mkdir -p '$(call SHESCAPE,$(BUILDDIR))'
|
mkdir -p '$(call SHESCAPE,$(BUILDDIR))'
|
||||||
$(LIMINE_CC) -x c -E -P -undef linker_uefi64.ld.in -o '$(call SHESCAPE,$(BUILDDIR))/linker.ld'
|
$(LIMINE_CC) -x c -E -P -undef linker_uefi64.ld.in -o '$(call SHESCAPE,$(BUILDDIR))/linker.ld'
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/limine.elf: $(call MKESCAPE,$(BUILDDIR))/reduced-gnu-efi/gnuefi/crt0-efi-x86_64.o $(call MKESCAPE,$(BUILDDIR))/reduced-gnu-efi/gnuefi/libgnuefi.a $(OBJ) $(call MKESCAPE,$(BUILDDIR))/tinf/tinfgzip.o $(call MKESCAPE,$(BUILDDIR))/tinf/tinflate.o $(call MKESCAPE,$(BUILDDIR))/font.o $(call MKESCAPE,$(BUILDDIR))/sys/smp_trampoline.o $(call MKESCAPE,$(BUILDDIR))/full.map.o
|
$(call MKESCAPE,$(BUILDDIR))/limine.elf: $(call MKESCAPE,$(BUILDDIR))/limine-efi/gnuefi/crt0-efi-x86_64.o $(call MKESCAPE,$(BUILDDIR))/limine-efi/gnuefi/libgnuefi.a $(OBJ) $(call MKESCAPE,$(BUILDDIR))/tinf/tinfgzip.o $(call MKESCAPE,$(BUILDDIR))/tinf/tinflate.o $(call MKESCAPE,$(BUILDDIR))/font.o $(call MKESCAPE,$(BUILDDIR))/sys/smp_trampoline.o $(call MKESCAPE,$(BUILDDIR))/full.map.o
|
||||||
$(MAKE) '$(call SHESCAPE,$(BUILDDIR))/linker.ld'
|
$(MAKE) '$(call SHESCAPE,$(BUILDDIR))/linker.ld'
|
||||||
$(LIMINE_LD) \
|
$(LIMINE_LD) \
|
||||||
-T'$(call SHESCAPE,$(BUILDDIR))/linker.ld' \
|
-T'$(call SHESCAPE,$(BUILDDIR))/linker.ld' \
|
||||||
|
@ -337,16 +337,16 @@ $(call MKESCAPE,$(BUILDDIR))/full.map.o: $(call MKESCAPE,$(BUILDDIR))/limine_nom
|
||||||
$(call MKESCAPE,$(BUILDDIR))/BOOTIA32.EFI: $(call MKESCAPE,$(BUILDDIR))/limine.elf
|
$(call MKESCAPE,$(BUILDDIR))/BOOTIA32.EFI: $(call MKESCAPE,$(BUILDDIR))/limine.elf
|
||||||
$(LIMINE_OBJCOPY) -O binary '$(call SHESCAPE,$<)' '$(call SHESCAPE,$@)'
|
$(LIMINE_OBJCOPY) -O binary '$(call SHESCAPE,$<)' '$(call SHESCAPE,$@)'
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/reduced-gnu-efi/gnuefi/crt0-efi-ia32.o: reduced-gnu-efi
|
$(call MKESCAPE,$(BUILDDIR))/limine-efi/gnuefi/crt0-efi-ia32.o: limine-efi
|
||||||
true
|
true
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/reduced-gnu-efi/gnuefi/libgnuefi.a: reduced-gnu-efi
|
$(call MKESCAPE,$(BUILDDIR))/limine-efi/gnuefi/libgnuefi.a: limine-efi
|
||||||
true
|
true
|
||||||
|
|
||||||
.PHONY: reduced-gnu-efi
|
.PHONY: limine-efi
|
||||||
reduced-gnu-efi: $(call MKESCAPE,$(BUILDDIR))/reduced-gnu-efi
|
limine-efi: $(call MKESCAPE,$(BUILDDIR))/limine-efi
|
||||||
unset ARFLAGS; unset CPPFLAGS; \
|
unset ARFLAGS; unset CPPFLAGS; \
|
||||||
$(MAKE) -C '$(call SHESCAPE,$(BUILDDIR))/reduced-gnu-efi/gnuefi' \
|
$(MAKE) -C '$(call SHESCAPE,$(BUILDDIR))/limine-efi/gnuefi' \
|
||||||
CC="$(LIMINE_CC) -m32 -march=i686 -mtune=generic" \
|
CC="$(LIMINE_CC) -m32 -march=i686 -mtune=generic" \
|
||||||
CFLAGS='-nostdinc' \
|
CFLAGS='-nostdinc' \
|
||||||
INCDIR='-I$(call SHESCAPE,$(SRCDIR))/../freestanding_headers' \
|
INCDIR='-I$(call SHESCAPE,$(SRCDIR))/../freestanding_headers' \
|
||||||
|
@ -357,7 +357,7 @@ $(call MKESCAPE,$(BUILDDIR))/linker_nomap.ld: linker_uefi32.ld.in
|
||||||
mkdir -p '$(call SHESCAPE,$(BUILDDIR))'
|
mkdir -p '$(call SHESCAPE,$(BUILDDIR))'
|
||||||
$(LIMINE_CC) -x c -E -P -undef -DLINKER_NOMAP linker_uefi32.ld.in -o '$(call SHESCAPE,$(BUILDDIR))/linker_nomap.ld'
|
$(LIMINE_CC) -x c -E -P -undef -DLINKER_NOMAP linker_uefi32.ld.in -o '$(call SHESCAPE,$(BUILDDIR))/linker_nomap.ld'
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/limine_nomap.elf: $(call MKESCAPE,$(BUILDDIR))/reduced-gnu-efi/gnuefi/crt0-efi-ia32.o $(call MKESCAPE,$(BUILDDIR))/reduced-gnu-efi/gnuefi/libgnuefi.a $(OBJ) $(call MKESCAPE,$(BUILDDIR))/tinf/tinfgzip.o $(call MKESCAPE,$(BUILDDIR))/tinf/tinflate.o $(call MKESCAPE,$(BUILDDIR))/font.o $(call MKESCAPE,$(BUILDDIR))/sys/smp_trampoline.o
|
$(call MKESCAPE,$(BUILDDIR))/limine_nomap.elf: $(call MKESCAPE,$(BUILDDIR))/limine-efi/gnuefi/crt0-efi-ia32.o $(call MKESCAPE,$(BUILDDIR))/limine-efi/gnuefi/libgnuefi.a $(OBJ) $(call MKESCAPE,$(BUILDDIR))/tinf/tinfgzip.o $(call MKESCAPE,$(BUILDDIR))/tinf/tinflate.o $(call MKESCAPE,$(BUILDDIR))/font.o $(call MKESCAPE,$(BUILDDIR))/sys/smp_trampoline.o
|
||||||
$(MAKE) '$(call SHESCAPE,$(BUILDDIR))/linker_nomap.ld'
|
$(MAKE) '$(call SHESCAPE,$(BUILDDIR))/linker_nomap.ld'
|
||||||
$(LIMINE_LD) \
|
$(LIMINE_LD) \
|
||||||
-T'$(call SHESCAPE,$(BUILDDIR))/linker_nomap.ld' \
|
-T'$(call SHESCAPE,$(BUILDDIR))/linker_nomap.ld' \
|
||||||
|
@ -367,7 +367,7 @@ $(call MKESCAPE,$(BUILDDIR))/linker.ld: linker_uefi32.ld.in
|
||||||
mkdir -p '$(call SHESCAPE,$(BUILDDIR))'
|
mkdir -p '$(call SHESCAPE,$(BUILDDIR))'
|
||||||
$(LIMINE_CC) -x c -E -P -undef linker_uefi32.ld.in -o '$(call SHESCAPE,$(BUILDDIR))/linker.ld'
|
$(LIMINE_CC) -x c -E -P -undef linker_uefi32.ld.in -o '$(call SHESCAPE,$(BUILDDIR))/linker.ld'
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/limine.elf: $(call MKESCAPE,$(BUILDDIR))/reduced-gnu-efi/gnuefi/crt0-efi-ia32.o $(call MKESCAPE,$(BUILDDIR))/reduced-gnu-efi/gnuefi/libgnuefi.a $(OBJ) $(call MKESCAPE,$(BUILDDIR))/tinf/tinfgzip.o $(call MKESCAPE,$(BUILDDIR))/tinf/tinflate.o $(call MKESCAPE,$(BUILDDIR))/font.o $(call MKESCAPE,$(BUILDDIR))/sys/smp_trampoline.o $(call MKESCAPE,$(BUILDDIR))/full.map.o
|
$(call MKESCAPE,$(BUILDDIR))/limine.elf: $(call MKESCAPE,$(BUILDDIR))/limine-efi/gnuefi/crt0-efi-ia32.o $(call MKESCAPE,$(BUILDDIR))/limine-efi/gnuefi/libgnuefi.a $(OBJ) $(call MKESCAPE,$(BUILDDIR))/tinf/tinfgzip.o $(call MKESCAPE,$(BUILDDIR))/tinf/tinflate.o $(call MKESCAPE,$(BUILDDIR))/font.o $(call MKESCAPE,$(BUILDDIR))/sys/smp_trampoline.o $(call MKESCAPE,$(BUILDDIR))/full.map.o
|
||||||
$(MAKE) '$(call SHESCAPE,$(BUILDDIR))/linker.ld'
|
$(MAKE) '$(call SHESCAPE,$(BUILDDIR))/linker.ld'
|
||||||
$(LIMINE_LD) \
|
$(LIMINE_LD) \
|
||||||
-T'$(call SHESCAPE,$(BUILDDIR))/linker.ld' \
|
-T'$(call SHESCAPE,$(BUILDDIR))/linker.ld' \
|
||||||
|
@ -378,13 +378,13 @@ endif
|
||||||
-include $(HEADER_DEPS)
|
-include $(HEADER_DEPS)
|
||||||
|
|
||||||
ifeq ($(TARGET), uefi64)
|
ifeq ($(TARGET), uefi64)
|
||||||
$(call MKESCAPE,$(BUILDDIR))/%.o: %.c $(call MKESCAPE,$(BUILDDIR))/tinf-copied $(call MKESCAPE,$(BUILDDIR))/reduced-gnu-efi
|
$(call MKESCAPE,$(BUILDDIR))/%.o: %.c $(call MKESCAPE,$(BUILDDIR))/tinf-copied $(call MKESCAPE,$(BUILDDIR))/limine-efi
|
||||||
mkdir -p "$$(dirname '$(call SHESCAPE,$@)')"
|
mkdir -p "$$(dirname '$(call SHESCAPE,$@)')"
|
||||||
$(LIMINE_CC) $(LIMINE_CFLAGS) $(INTERNAL_CFLAGS) -c '$(call SHESCAPE,$<)' -o '$(call SHESCAPE,$@)'
|
$(LIMINE_CC) $(LIMINE_CFLAGS) $(INTERNAL_CFLAGS) -c '$(call SHESCAPE,$<)' -o '$(call SHESCAPE,$@)'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(TARGET), uefi32)
|
ifeq ($(TARGET), uefi32)
|
||||||
$(call MKESCAPE,$(BUILDDIR))/%.o: %.c $(call MKESCAPE,$(BUILDDIR))/tinf-copied $(call MKESCAPE,$(BUILDDIR))/reduced-gnu-efi
|
$(call MKESCAPE,$(BUILDDIR))/%.o: %.c $(call MKESCAPE,$(BUILDDIR))/tinf-copied $(call MKESCAPE,$(BUILDDIR))/limine-efi
|
||||||
mkdir -p "$$(dirname '$(call SHESCAPE,$@)')"
|
mkdir -p "$$(dirname '$(call SHESCAPE,$@)')"
|
||||||
$(LIMINE_CC) $(LIMINE_CFLAGS) $(INTERNAL_CFLAGS) -c '$(call SHESCAPE,$<)' -o '$(call SHESCAPE,$@)'
|
$(LIMINE_CC) $(LIMINE_CFLAGS) $(INTERNAL_CFLAGS) -c '$(call SHESCAPE,$<)' -o '$(call SHESCAPE,$@)'
|
||||||
endif
|
endif
|
||||||
|
@ -406,7 +406,7 @@ endif
|
||||||
-include $(HEADER_DEPS)
|
-include $(HEADER_DEPS)
|
||||||
|
|
||||||
ifeq ($(TARGET), uefi64)
|
ifeq ($(TARGET), uefi64)
|
||||||
$(call MKESCAPE,$(BUILDDIR))/%.32.o: %.32.c $(call MKESCAPE,$(BUILDDIR))/reduced-gnu-efi
|
$(call MKESCAPE,$(BUILDDIR))/%.32.o: %.32.c $(call MKESCAPE,$(BUILDDIR))/limine-efi
|
||||||
mkdir -p "$$(dirname '$(call SHESCAPE,$@)')"
|
mkdir -p "$$(dirname '$(call SHESCAPE,$@)')"
|
||||||
$(LIMINE_CC) $(LIMINE_CFLAGS) $(INTERNAL_CFLAGS32) -c '$(call SHESCAPE,$<)' -o '$(call SHESCAPE,$@).32'
|
$(LIMINE_CC) $(LIMINE_CFLAGS) $(INTERNAL_CFLAGS32) -c '$(call SHESCAPE,$<)' -o '$(call SHESCAPE,$@).32'
|
||||||
$(LIMINE_OBJCOPY) -I elf32-i386 -O elf64-x86-64 '$(call SHESCAPE,$@).32' '$(call SHESCAPE,$@)'
|
$(LIMINE_OBJCOPY) -I elf32-i386 -O elf64-x86-64 '$(call SHESCAPE,$@).32' '$(call SHESCAPE,$@)'
|
||||||
|
|
Loading…
Reference in New Issue