build: Get proper mkdir -p from autoconf
This commit is contained in:
parent
e3c4fbea25
commit
4422ebd61c
@ -35,6 +35,9 @@ CC := @CC@
|
|||||||
endif
|
endif
|
||||||
export CC
|
export CC
|
||||||
|
|
||||||
|
MKDIR_P ?= @MKDIR_P@
|
||||||
|
export MKDIR_P
|
||||||
|
|
||||||
INSTALL ?= @INSTALL@
|
INSTALL ?= @INSTALL@
|
||||||
export INSTALL
|
export INSTALL
|
||||||
|
|
||||||
@ -66,7 +69,7 @@ all: limine-version @BUILD_UEFI_X86_64@ @BUILD_UEFI_IA32@ @BUILD_BIOS@
|
|||||||
$(MAKE) '$(call SHESCAPE,$(BINDIR))/limine-cd-efi.bin'
|
$(MAKE) '$(call SHESCAPE,$(BINDIR))/limine-cd-efi.bin'
|
||||||
|
|
||||||
$(call MKESCAPE,$(BINDIR))/limine-hdd.h: $(call MKESCAPE,$(BINDIR))/limine-hdd.bin
|
$(call MKESCAPE,$(BINDIR))/limine-hdd.h: $(call MKESCAPE,$(BINDIR))/limine-hdd.bin
|
||||||
mkdir -p '$(call SHESCAPE,$(BINDIR))'
|
$(MKDIR_P) '$(call SHESCAPE,$(BINDIR))'
|
||||||
cd '$(call SHESCAPE,$(BINDIR))' && '$(call SHESCAPE,$(SRCDIR))/host/hgen.sh' >limine-hdd.h
|
cd '$(call SHESCAPE,$(BINDIR))' && '$(call SHESCAPE,$(SRCDIR))/host/hgen.sh' >limine-hdd.h
|
||||||
|
|
||||||
$(call MKESCAPE,$(BINDIR))/limine-deploy: $(call MKESCAPE,$(BINDIR))/Makefile $(call MKESCAPE,$(SRCDIR))/host/limine-deploy.c $(call MKESCAPE,$(BINDIR))/limine-hdd.h
|
$(call MKESCAPE,$(BINDIR))/limine-deploy: $(call MKESCAPE,$(BINDIR))/Makefile $(call MKESCAPE,$(SRCDIR))/host/limine-deploy.c $(call MKESCAPE,$(BINDIR))/limine-hdd.h
|
||||||
@ -78,7 +81,7 @@ $(call MKESCAPE,$(BINDIR))/limine-version: $(call MKESCAPE,$(BINDIR))/Makefile $
|
|||||||
$(MAKE) -C '$(call SHESCAPE,$(BINDIR))' limine-version
|
$(MAKE) -C '$(call SHESCAPE,$(BINDIR))' limine-version
|
||||||
|
|
||||||
$(call MKESCAPE,$(BINDIR))/Makefile: $(call MKESCAPE,$(SRCDIR))/host/Makefile $(call MKESCAPE,$(SRCDIR))/host/.gitignore
|
$(call MKESCAPE,$(BINDIR))/Makefile: $(call MKESCAPE,$(SRCDIR))/host/Makefile $(call MKESCAPE,$(SRCDIR))/host/.gitignore
|
||||||
mkdir -p '$(call SHESCAPE,$(BINDIR))'
|
$(MKDIR_P) '$(call SHESCAPE,$(BINDIR))'
|
||||||
cp '$(call SHESCAPE,$(SRCDIR))/host/Makefile' '$(call SHESCAPE,$(SRCDIR))/host/.gitignore' '$(call SHESCAPE,$(BINDIR))/'
|
cp '$(call SHESCAPE,$(SRCDIR))/host/Makefile' '$(call SHESCAPE,$(SRCDIR))/host/.gitignore' '$(call SHESCAPE,$(BINDIR))/'
|
||||||
|
|
||||||
.PHONY: limine-deploy
|
.PHONY: limine-deploy
|
||||||
@ -126,7 +129,7 @@ uninstall:
|
|||||||
rm -f '$(call SHESCAPE,$(DESTDIR)$(ACINCLUDEDIR))/limine.h'
|
rm -f '$(call SHESCAPE,$(DESTDIR)$(ACINCLUDEDIR))/limine.h'
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/stage1.stamp: $(STAGE1_FILES) $(call MKESCAPE,$(BUILDDIR))/decompressor-build/decompressor.bin $(call MKESCAPE,$(BUILDDIR))/common-bios/stage2.bin.gz
|
$(call MKESCAPE,$(BUILDDIR))/stage1.stamp: $(STAGE1_FILES) $(call MKESCAPE,$(BUILDDIR))/decompressor-build/decompressor.bin $(call MKESCAPE,$(BUILDDIR))/common-bios/stage2.bin.gz
|
||||||
mkdir -p '$(call SHESCAPE,$(BINDIR))'
|
$(MKDIR_P) '$(call SHESCAPE,$(BINDIR))'
|
||||||
cd '$(call SHESCAPE,$(SRCDIR))/stage1/hdd' && nasm bootsect.asm @WERROR@ -fbin -DBUILDDIR="'"'$(call NASMESCAPE,$(BUILDDIR))'"'" -o '$(call SHESCAPE,$(BINDIR))/limine-hdd.bin'
|
cd '$(call SHESCAPE,$(SRCDIR))/stage1/hdd' && nasm bootsect.asm @WERROR@ -fbin -DBUILDDIR="'"'$(call NASMESCAPE,$(BUILDDIR))'"'" -o '$(call SHESCAPE,$(BINDIR))/limine-hdd.bin'
|
||||||
ifneq ($(BUILD_CD), no)
|
ifneq ($(BUILD_CD), no)
|
||||||
cd '$(call SHESCAPE,$(SRCDIR))/stage1/cd' && nasm bootsect.asm @WERROR@ -fbin -DBUILDDIR="'"'$(call NASMESCAPE,$(BUILDDIR))'"'" -o '$(call SHESCAPE,$(BINDIR))/limine-cd.bin'
|
cd '$(call SHESCAPE,$(SRCDIR))/stage1/cd' && nasm bootsect.asm @WERROR@ -fbin -DBUILDDIR="'"'$(call NASMESCAPE,$(BUILDDIR))'"'" -o '$(call SHESCAPE,$(BINDIR))/limine-cd.bin'
|
||||||
@ -146,7 +149,7 @@ endif
|
|||||||
|
|
||||||
$(call MKESCAPE,$(BINDIR))/limine-cd-efi.bin: $(if @BUILD_UEFI_IA32@, $(call MKESCAPE,$(BUILDDIR))/common-uefi-ia32/BOOTIA32.EFI) $(if @BUILD_UEFI_X86_64@, $(call MKESCAPE,$(BUILDDIR))/common-uefi-x86-64/BOOTX64.EFI)
|
$(call MKESCAPE,$(BINDIR))/limine-cd-efi.bin: $(if @BUILD_UEFI_IA32@, $(call MKESCAPE,$(BUILDDIR))/common-uefi-ia32/BOOTIA32.EFI) $(if @BUILD_UEFI_X86_64@, $(call MKESCAPE,$(BUILDDIR))/common-uefi-x86-64/BOOTX64.EFI)
|
||||||
ifneq ($(BUILD_CD_EFI), no)
|
ifneq ($(BUILD_CD_EFI), no)
|
||||||
mkdir -p '$(call SHESCAPE,$(BINDIR))'
|
$(MKDIR_P) '$(call SHESCAPE,$(BINDIR))'
|
||||||
rm -f '$(call SHESCAPE,$(BINDIR))/limine-cd-efi.bin'
|
rm -f '$(call SHESCAPE,$(BINDIR))/limine-cd-efi.bin'
|
||||||
dd if=/dev/zero of='$(call SHESCAPE,$(BINDIR))/limine-cd-efi.bin' bs=512 count=2880 2>/dev/null
|
dd if=/dev/zero of='$(call SHESCAPE,$(BINDIR))/limine-cd-efi.bin' bs=512 count=2880 2>/dev/null
|
||||||
( mformat -i '$(call SHESCAPE,$(BINDIR))/limine-cd-efi.bin' -f 1440 :: && \
|
( mformat -i '$(call SHESCAPE,$(BINDIR))/limine-cd-efi.bin' -f 1440 :: && \
|
||||||
@ -166,13 +169,13 @@ limine-cd-efi:
|
|||||||
.PHONY: limine-uefi-x86-64
|
.PHONY: limine-uefi-x86-64
|
||||||
limine-uefi-x86-64: $(call MKESCAPE,$(SRCDIR))/limine-efi
|
limine-uefi-x86-64: $(call MKESCAPE,$(SRCDIR))/limine-efi
|
||||||
$(MAKE) common-uefi-x86-64
|
$(MAKE) common-uefi-x86-64
|
||||||
mkdir -p '$(call SHESCAPE,$(BINDIR))'
|
$(MKDIR_P) '$(call SHESCAPE,$(BINDIR))'
|
||||||
cp '$(call SHESCAPE,$(BUILDDIR))/common-uefi-x86-64/BOOTX64.EFI' '$(call SHESCAPE,$(BINDIR))/'
|
cp '$(call SHESCAPE,$(BUILDDIR))/common-uefi-x86-64/BOOTX64.EFI' '$(call SHESCAPE,$(BINDIR))/'
|
||||||
|
|
||||||
.PHONY: limine-uefi-ia32
|
.PHONY: limine-uefi-ia32
|
||||||
limine-uefi-ia32: $(call MKESCAPE,$(SRCDIR))/limine-efi
|
limine-uefi-ia32: $(call MKESCAPE,$(SRCDIR))/limine-efi
|
||||||
$(MAKE) common-uefi-ia32
|
$(MAKE) common-uefi-ia32
|
||||||
mkdir -p '$(call SHESCAPE,$(BINDIR))'
|
$(MKDIR_P) '$(call SHESCAPE,$(BINDIR))'
|
||||||
cp '$(call SHESCAPE,$(BUILDDIR))/common-uefi-ia32/BOOTIA32.EFI' '$(call SHESCAPE,$(BINDIR))/'
|
cp '$(call SHESCAPE,$(BUILDDIR))/common-uefi-ia32/BOOTIA32.EFI' '$(call SHESCAPE,$(BINDIR))/'
|
||||||
|
|
||||||
.PHONY: limine-bios-clean
|
.PHONY: limine-bios-clean
|
||||||
@ -187,7 +190,7 @@ limine-uefi-ia32-clean: common-uefi-ia32-clean
|
|||||||
.PHONY: dist
|
.PHONY: dist
|
||||||
dist:
|
dist:
|
||||||
rm -rf '$(call SHESCAPE,$(BUILDDIR))'/"limine-$(LIMINE_VERSION)"
|
rm -rf '$(call SHESCAPE,$(BUILDDIR))'/"limine-$(LIMINE_VERSION)"
|
||||||
mkdir -p '$(call SHESCAPE,$(BUILDDIR))'/"limine-$(LIMINE_VERSION)"
|
$(MKDIR_P) '$(call SHESCAPE,$(BUILDDIR))'/"limine-$(LIMINE_VERSION)"
|
||||||
cp -r '$(call SHESCAPE,$(SRCDIR))'/.git '$(call SHESCAPE,$(BUILDDIR))'/"limine-$(LIMINE_VERSION)"/
|
cp -r '$(call SHESCAPE,$(SRCDIR))'/.git '$(call SHESCAPE,$(BUILDDIR))'/"limine-$(LIMINE_VERSION)"/
|
||||||
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)" && ./bootstrap
|
cd '$(call SHESCAPE,$(BUILDDIR))'/"limine-$(LIMINE_VERSION)" && ./bootstrap
|
||||||
@ -268,11 +271,11 @@ test-clean:
|
|||||||
rm -rf test_image test.hdd test.iso
|
rm -rf test_image test.hdd test.iso
|
||||||
|
|
||||||
ovmf-x64:
|
ovmf-x64:
|
||||||
mkdir -p ovmf-x64
|
$(MKDIR_P) ovmf-x64
|
||||||
cd ovmf-x64 && curl -o OVMF-X64.zip https://efi.akeo.ie/OVMF/OVMF-X64.zip && 7z x OVMF-X64.zip
|
cd ovmf-x64 && curl -o OVMF-X64.zip https://efi.akeo.ie/OVMF/OVMF-X64.zip && 7z x OVMF-X64.zip
|
||||||
|
|
||||||
ovmf-ia32:
|
ovmf-ia32:
|
||||||
mkdir -p ovmf-ia32
|
$(MKDIR_P) ovmf-ia32
|
||||||
cd ovmf-ia32 && curl -o OVMF-IA32.zip https://efi.akeo.ie/OVMF/OVMF-IA32.zip && 7z x OVMF-IA32.zip
|
cd ovmf-ia32 && curl -o OVMF-IA32.zip https://efi.akeo.ie/OVMF/OVMF-IA32.zip && 7z x OVMF-IA32.zip
|
||||||
|
|
||||||
.PHONY: test.hdd
|
.PHONY: test.hdd
|
||||||
@ -411,7 +414,7 @@ iso9660-test:
|
|||||||
$(MAKE) limine-bios
|
$(MAKE) limine-bios
|
||||||
$(MAKE) -C test
|
$(MAKE) -C test
|
||||||
rm -rf test_image/
|
rm -rf test_image/
|
||||||
mkdir -p test_image/boot
|
$(MKDIR_P) test_image/boot
|
||||||
sudo cp -rv $(BINDIR)/* test_image/boot/
|
sudo cp -rv $(BINDIR)/* test_image/boot/
|
||||||
sudo cp -rv test/* test_image/boot/
|
sudo cp -rv test/* test_image/boot/
|
||||||
xorriso -as mkisofs -b boot/limine-cd.bin -no-emul-boot -boot-load-size 4 -boot-info-table test_image/ -o test.iso
|
xorriso -as mkisofs -b boot/limine-cd.bin -no-emul-boot -boot-load-size 4 -boot-info-table test_image/ -o test.iso
|
||||||
@ -448,7 +451,7 @@ full-hybrid-test:
|
|||||||
$(MAKE) all
|
$(MAKE) all
|
||||||
$(MAKE) -C test
|
$(MAKE) -C test
|
||||||
rm -rf test_image/
|
rm -rf test_image/
|
||||||
mkdir -p test_image/boot
|
$(MKDIR_P) test_image/boot
|
||||||
sudo cp -rv $(BINDIR)/* test_image/boot/
|
sudo cp -rv $(BINDIR)/* test_image/boot/
|
||||||
sudo cp -rv test/* test_image/boot/
|
sudo cp -rv test/* test_image/boot/
|
||||||
xorriso -as mkisofs -b boot/limine-cd.bin -no-emul-boot -boot-load-size 4 -boot-info-table --efi-boot boot/limine-cd-efi.bin -efi-boot-part --efi-boot-image --protective-msdos-label test_image/ -o test.iso
|
xorriso -as mkisofs -b boot/limine-cd.bin -no-emul-boot -boot-load-size 4 -boot-info-table --efi-boot boot/limine-cd-efi.bin -efi-boot-part --efi-boot-image --protective-msdos-label test_image/ -o test.iso
|
||||||
@ -466,7 +469,7 @@ pxe-test:
|
|||||||
$(MAKE) limine-bios
|
$(MAKE) limine-bios
|
||||||
$(MAKE) -C test
|
$(MAKE) -C test
|
||||||
rm -rf test_image/
|
rm -rf test_image/
|
||||||
mkdir -p test_image/boot
|
$(MKDIR_P) test_image/boot
|
||||||
sudo cp -rv $(BINDIR)/* test_image/boot/
|
sudo cp -rv $(BINDIR)/* test_image/boot/
|
||||||
sudo cp -rv test/* test_image/boot/
|
sudo cp -rv test/* test_image/boot/
|
||||||
qemu-system-x86_64 -smp 4 -netdev user,id=n0,tftp=./test_image,bootfile=boot/limine-pxe.bin -device rtl8139,netdev=n0,mac=00:00:00:11:11:11 -debugcon stdio
|
qemu-system-x86_64 -smp 4 -netdev user,id=n0,tftp=./test_image,bootfile=boot/limine-pxe.bin -device rtl8139,netdev=n0,mac=00:00:00:11:11:11 -debugcon stdio
|
||||||
@ -487,7 +490,7 @@ uefi-test:
|
|||||||
sudo mkdir test_image/boot
|
sudo mkdir test_image/boot
|
||||||
sudo cp -rv $(BINDIR)/* test_image/boot/
|
sudo cp -rv $(BINDIR)/* test_image/boot/
|
||||||
sudo cp -rv test/* test_image/boot/
|
sudo cp -rv test/* test_image/boot/
|
||||||
sudo mkdir -p test_image/EFI/BOOT
|
sudo $(MKDIR_P) test_image/EFI/BOOT
|
||||||
sudo cp $(BINDIR)/BOOTX64.EFI test_image/EFI/BOOT/
|
sudo cp $(BINDIR)/BOOTX64.EFI test_image/EFI/BOOT/
|
||||||
sync
|
sync
|
||||||
sudo umount test_image/
|
sudo umount test_image/
|
||||||
@ -511,7 +514,7 @@ uefi-ia32-test:
|
|||||||
sudo mkdir test_image/boot
|
sudo mkdir test_image/boot
|
||||||
sudo cp -rv $(BINDIR)/* test_image/boot/
|
sudo cp -rv $(BINDIR)/* test_image/boot/
|
||||||
sudo cp -rv test/* test_image/boot/
|
sudo cp -rv test/* test_image/boot/
|
||||||
sudo mkdir -p test_image/EFI/BOOT
|
sudo $(MKDIR_P) test_image/EFI/BOOT
|
||||||
sudo cp $(BINDIR)/BOOTIA32.EFI test_image/EFI/BOOT/
|
sudo cp $(BINDIR)/BOOTIA32.EFI test_image/EFI/BOOT/
|
||||||
sync
|
sync
|
||||||
sudo umount test_image/
|
sudo umount test_image/
|
||||||
|
@ -174,21 +174,21 @@ all: $(call MKESCAPE,$(BUILDDIR))/BOOTIA32.EFI
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/font.o: font.bin
|
$(call MKESCAPE,$(BUILDDIR))/font.o: font.bin
|
||||||
mkdir -p "$$(dirname '$(call SHESCAPE,$@)')"
|
$(MKDIR_P) "$$(dirname '$(call SHESCAPE,$@)')"
|
||||||
$(CROSS_OBJCOPY) -B i8086 -I binary -O $(OBJCOPY_ARCH) font.bin '$(call SHESCAPE,$@)'
|
$(CROSS_OBJCOPY) -B i8086 -I binary -O $(OBJCOPY_ARCH) font.bin '$(call SHESCAPE,$@)'
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/tinf-copied: ../tinf/*
|
$(call MKESCAPE,$(BUILDDIR))/tinf-copied: ../tinf/*
|
||||||
rm -rf '$(call SHESCAPE,$(BUILDDIR))/tinf'
|
rm -rf '$(call SHESCAPE,$(BUILDDIR))/tinf'
|
||||||
mkdir -p '$(call SHESCAPE,$(BUILDDIR))'
|
$(MKDIR_P) '$(call SHESCAPE,$(BUILDDIR))'
|
||||||
cp -r ../tinf '$(call SHESCAPE,$(BUILDDIR))/'
|
cp -r ../tinf '$(call SHESCAPE,$(BUILDDIR))/'
|
||||||
touch '$(call SHESCAPE,$(BUILDDIR))/tinf-copied'
|
touch '$(call SHESCAPE,$(BUILDDIR))/tinf-copied'
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/tinf/tinfgzip.o: $(call MKESCAPE,$(BUILDDIR))/tinf-copied
|
$(call MKESCAPE,$(BUILDDIR))/tinf/tinfgzip.o: $(call MKESCAPE,$(BUILDDIR))/tinf-copied
|
||||||
mkdir -p "$$(dirname '$(call SHESCAPE,$@)')"
|
$(MKDIR_P) "$$(dirname '$(call SHESCAPE,$@)')"
|
||||||
$(CROSS_CC) $(CROSS_CFLAGS) $(INTERNAL_CFLAGS) -c '$(call SHESCAPE,$(@:.o=.c))' -o '$(call SHESCAPE,$@)'
|
$(CROSS_CC) $(CROSS_CFLAGS) $(INTERNAL_CFLAGS) -c '$(call SHESCAPE,$(@:.o=.c))' -o '$(call SHESCAPE,$@)'
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/tinf/tinflate.o: $(call MKESCAPE,$(BUILDDIR))/tinf-copied
|
$(call MKESCAPE,$(BUILDDIR))/tinf/tinflate.o: $(call MKESCAPE,$(BUILDDIR))/tinf-copied
|
||||||
mkdir -p "$$(dirname '$(call SHESCAPE,$@)')"
|
$(MKDIR_P) "$$(dirname '$(call SHESCAPE,$@)')"
|
||||||
$(CROSS_CC) $(CROSS_CFLAGS) $(INTERNAL_CFLAGS) -c '$(call SHESCAPE,$(@:.o=.c))' -o '$(call SHESCAPE,$@)'
|
$(CROSS_CC) $(CROSS_CFLAGS) $(INTERNAL_CFLAGS) -c '$(call SHESCAPE,$(@:.o=.c))' -o '$(call SHESCAPE,$@)'
|
||||||
|
|
||||||
ifeq ($(TARGET), bios)
|
ifeq ($(TARGET), bios)
|
||||||
@ -211,7 +211,7 @@ $(call MKESCAPE,$(BUILDDIR))/limine.sys: $(call MKESCAPE,$(BUILDDIR))/limine.elf
|
|||||||
$(CROSS_OBJCOPY) -O binary '$(call SHESCAPE,$<)' '$(call SHESCAPE,$@)'
|
$(CROSS_OBJCOPY) -O binary '$(call SHESCAPE,$<)' '$(call SHESCAPE,$@)'
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/linker_stage2only.ld: linker_bios.ld.in
|
$(call MKESCAPE,$(BUILDDIR))/linker_stage2only.ld: linker_bios.ld.in
|
||||||
mkdir -p '$(call SHESCAPE,$(BUILDDIR))'
|
$(MKDIR_P) '$(call SHESCAPE,$(BUILDDIR))'
|
||||||
$(CROSS_CC) -x c -E -P -undef -DLINKER_STAGE2ONLY linker_bios.ld.in -o '$(call SHESCAPE,$(BUILDDIR))/linker_stage2only.ld'
|
$(CROSS_CC) -x c -E -P -undef -DLINKER_STAGE2ONLY linker_bios.ld.in -o '$(call SHESCAPE,$(BUILDDIR))/linker_stage2only.ld'
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/limine_stage2only.elf: $(OBJ_S2) ../libgcc-binaries/libgcc-i686.a
|
$(call MKESCAPE,$(BUILDDIR))/limine_stage2only.elf: $(OBJ_S2) ../libgcc-binaries/libgcc-i686.a
|
||||||
@ -221,7 +221,7 @@ $(call MKESCAPE,$(BUILDDIR))/limine_stage2only.elf: $(OBJ_S2) ../libgcc-binaries
|
|||||||
false )
|
false )
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/linker_nomap.ld: linker_bios.ld.in
|
$(call MKESCAPE,$(BUILDDIR))/linker_nomap.ld: linker_bios.ld.in
|
||||||
mkdir -p '$(call SHESCAPE,$(BUILDDIR))'
|
$(MKDIR_P) '$(call SHESCAPE,$(BUILDDIR))'
|
||||||
$(CROSS_CC) -x c -E -P -undef -DLINKER_NOMAP linker_bios.ld.in -o '$(call SHESCAPE,$(BUILDDIR))/linker_nomap.ld'
|
$(CROSS_CC) -x c -E -P -undef -DLINKER_NOMAP linker_bios.ld.in -o '$(call SHESCAPE,$(BUILDDIR))/linker_nomap.ld'
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/limine_nomap.elf: $(OBJ) ../libgcc-binaries/libgcc-i686.a $(call MKESCAPE,$(BUILDDIR))/tinf/tinfgzip.o $(call MKESCAPE,$(BUILDDIR))/tinf/tinflate.o $(call MKESCAPE,$(BUILDDIR))/font.o $(call MKESCAPE,$(BUILDDIR))/stage2.map.o
|
$(call MKESCAPE,$(BUILDDIR))/limine_nomap.elf: $(OBJ) ../libgcc-binaries/libgcc-i686.a $(call MKESCAPE,$(BUILDDIR))/tinf/tinfgzip.o $(call MKESCAPE,$(BUILDDIR))/tinf/tinflate.o $(call MKESCAPE,$(BUILDDIR))/font.o $(call MKESCAPE,$(BUILDDIR))/stage2.map.o
|
||||||
@ -236,7 +236,7 @@ $(call MKESCAPE,$(BUILDDIR))/limine_nomap.elf: $(OBJ) ../libgcc-binaries/libgcc-
|
|||||||
$(CROSS_LD) '$(call OBJESCAPE,$^)' '$(call SHESCAPE,$(BUILDDIR))/build-id.s2.o' '$(call SHESCAPE,$(BUILDDIR))/build-id.s3.o' $(CROSS_LDFLAGS) $(INTERNAL_LDFLAGS) -T'$(call SHESCAPE,$(BUILDDIR))/linker_nomap.ld' -o '$(call SHESCAPE,$@)'
|
$(CROSS_LD) '$(call OBJESCAPE,$^)' '$(call SHESCAPE,$(BUILDDIR))/build-id.s2.o' '$(call SHESCAPE,$(BUILDDIR))/build-id.s3.o' $(CROSS_LDFLAGS) $(INTERNAL_LDFLAGS) -T'$(call SHESCAPE,$(BUILDDIR))/linker_nomap.ld' -o '$(call SHESCAPE,$@)'
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/linker.ld: linker_bios.ld.in
|
$(call MKESCAPE,$(BUILDDIR))/linker.ld: linker_bios.ld.in
|
||||||
mkdir -p '$(call SHESCAPE,$(BUILDDIR))'
|
$(MKDIR_P) '$(call SHESCAPE,$(BUILDDIR))'
|
||||||
$(CROSS_CC) -x c -E -P -undef linker_bios.ld.in -o '$(call SHESCAPE,$(BUILDDIR))/linker.ld'
|
$(CROSS_CC) -x c -E -P -undef linker_bios.ld.in -o '$(call SHESCAPE,$(BUILDDIR))/linker.ld'
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/limine.elf: $(OBJ) ../libgcc-binaries/libgcc-i686.a $(call MKESCAPE,$(BUILDDIR))/tinf/tinfgzip.o $(call MKESCAPE,$(BUILDDIR))/tinf/tinflate.o $(call MKESCAPE,$(BUILDDIR))/font.o $(call MKESCAPE,$(BUILDDIR))/stage2.map.o $(call MKESCAPE,$(BUILDDIR))/full.map.o
|
$(call MKESCAPE,$(BUILDDIR))/limine.elf: $(OBJ) ../libgcc-binaries/libgcc-i686.a $(call MKESCAPE,$(BUILDDIR))/tinf/tinfgzip.o $(call MKESCAPE,$(BUILDDIR))/tinf/tinflate.o $(call MKESCAPE,$(BUILDDIR))/font.o $(call MKESCAPE,$(BUILDDIR))/stage2.map.o $(call MKESCAPE,$(BUILDDIR))/full.map.o
|
||||||
@ -253,7 +253,7 @@ $(call MKESCAPE,$(BUILDDIR))/limine.elf: $(OBJ) ../libgcc-binaries/libgcc-i686.a
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/limine-efi: ../limine-efi/*
|
$(call MKESCAPE,$(BUILDDIR))/limine-efi: ../limine-efi/*
|
||||||
mkdir -p '$(call SHESCAPE,$(BUILDDIR))/'
|
$(MKDIR_P) '$(call SHESCAPE,$(BUILDDIR))'
|
||||||
cp -r ../limine-efi '$(call SHESCAPE,$(BUILDDIR))/'
|
cp -r ../limine-efi '$(call SHESCAPE,$(BUILDDIR))/'
|
||||||
|
|
||||||
ifeq ($(TARGET), uefi-x86-64)
|
ifeq ($(TARGET), uefi-x86-64)
|
||||||
@ -274,7 +274,7 @@ $(call MKESCAPE,$(BUILDDIR))/limine-efi/gnuefi/crt0-efi-x86_64.o $(call MKESCAPE
|
|||||||
ARCH=x86_64
|
ARCH=x86_64
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/linker_nomap.ld: linker_uefi_x86_64.ld.in
|
$(call MKESCAPE,$(BUILDDIR))/linker_nomap.ld: linker_uefi_x86_64.ld.in
|
||||||
mkdir -p '$(call SHESCAPE,$(BUILDDIR))'
|
$(MKDIR_P) '$(call SHESCAPE,$(BUILDDIR))'
|
||||||
$(CROSS_CC) -x c -E -P -undef -DLINKER_NOMAP linker_uefi_x86_64.ld.in -o '$(call SHESCAPE,$(BUILDDIR))/linker_nomap.ld'
|
$(CROSS_CC) -x c -E -P -undef -DLINKER_NOMAP linker_uefi_x86_64.ld.in -o '$(call SHESCAPE,$(BUILDDIR))/linker_nomap.ld'
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/limine_nomap.elf: $(call MKESCAPE,$(BUILDDIR))/limine-efi/gnuefi/crt0-efi-x86_64.o $(call MKESCAPE,$(BUILDDIR))/limine-efi/gnuefi/reloc_x86_64.o $(OBJ) ../libgcc-binaries/libgcc-x86_64-no-red-zone.a $(call MKESCAPE,$(BUILDDIR))/tinf/tinfgzip.o $(call MKESCAPE,$(BUILDDIR))/tinf/tinflate.o $(call MKESCAPE,$(BUILDDIR))/font.o
|
$(call MKESCAPE,$(BUILDDIR))/limine_nomap.elf: $(call MKESCAPE,$(BUILDDIR))/limine-efi/gnuefi/crt0-efi-x86_64.o $(call MKESCAPE,$(BUILDDIR))/limine-efi/gnuefi/reloc_x86_64.o $(OBJ) ../libgcc-binaries/libgcc-x86_64-no-red-zone.a $(call MKESCAPE,$(BUILDDIR))/tinf/tinfgzip.o $(call MKESCAPE,$(BUILDDIR))/tinf/tinflate.o $(call MKESCAPE,$(BUILDDIR))/font.o
|
||||||
@ -284,7 +284,7 @@ $(call MKESCAPE,$(BUILDDIR))/limine_nomap.elf: $(call MKESCAPE,$(BUILDDIR))/limi
|
|||||||
'$(call OBJESCAPE,$^)' $(CROSS_LDFLAGS) $(INTERNAL_LDFLAGS) -o '$(call SHESCAPE,$@)'
|
'$(call OBJESCAPE,$^)' $(CROSS_LDFLAGS) $(INTERNAL_LDFLAGS) -o '$(call SHESCAPE,$@)'
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/linker.ld: linker_uefi_x86_64.ld.in
|
$(call MKESCAPE,$(BUILDDIR))/linker.ld: linker_uefi_x86_64.ld.in
|
||||||
mkdir -p '$(call SHESCAPE,$(BUILDDIR))'
|
$(MKDIR_P) '$(call SHESCAPE,$(BUILDDIR))'
|
||||||
$(CROSS_CC) -x c -E -P -undef linker_uefi_x86_64.ld.in -o '$(call SHESCAPE,$(BUILDDIR))/linker.ld'
|
$(CROSS_CC) -x c -E -P -undef linker_uefi_x86_64.ld.in -o '$(call SHESCAPE,$(BUILDDIR))/linker.ld'
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/limine.elf: $(call MKESCAPE,$(BUILDDIR))/limine-efi/gnuefi/crt0-efi-x86_64.o $(call MKESCAPE,$(BUILDDIR))/limine-efi/gnuefi/reloc_x86_64.o $(OBJ) ../libgcc-binaries/libgcc-x86_64-no-red-zone.a $(call MKESCAPE,$(BUILDDIR))/tinf/tinfgzip.o $(call MKESCAPE,$(BUILDDIR))/tinf/tinflate.o $(call MKESCAPE,$(BUILDDIR))/font.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/reloc_x86_64.o $(OBJ) ../libgcc-binaries/libgcc-x86_64-no-red-zone.a $(call MKESCAPE,$(BUILDDIR))/tinf/tinfgzip.o $(call MKESCAPE,$(BUILDDIR))/tinf/tinflate.o $(call MKESCAPE,$(BUILDDIR))/font.o $(call MKESCAPE,$(BUILDDIR))/full.map.o
|
||||||
@ -313,7 +313,7 @@ $(call MKESCAPE,$(BUILDDIR))/limine-efi/gnuefi/crt0-efi-ia32.o $(call MKESCAPE,$
|
|||||||
ARCH=ia32
|
ARCH=ia32
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/linker_nomap.ld: linker_uefi_ia32.ld.in
|
$(call MKESCAPE,$(BUILDDIR))/linker_nomap.ld: linker_uefi_ia32.ld.in
|
||||||
mkdir -p '$(call SHESCAPE,$(BUILDDIR))'
|
$(MKDIR_P) '$(call SHESCAPE,$(BUILDDIR))'
|
||||||
$(CROSS_CC) -x c -E -P -undef -DLINKER_NOMAP linker_uefi_ia32.ld.in -o '$(call SHESCAPE,$(BUILDDIR))/linker_nomap.ld'
|
$(CROSS_CC) -x c -E -P -undef -DLINKER_NOMAP linker_uefi_ia32.ld.in -o '$(call SHESCAPE,$(BUILDDIR))/linker_nomap.ld'
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/limine_nomap.elf: $(call MKESCAPE,$(BUILDDIR))/limine-efi/gnuefi/crt0-efi-ia32.o $(call MKESCAPE,$(BUILDDIR))/limine-efi/gnuefi/reloc_ia32.o $(OBJ) ../libgcc-binaries/libgcc-i686.a $(call MKESCAPE,$(BUILDDIR))/tinf/tinfgzip.o $(call MKESCAPE,$(BUILDDIR))/tinf/tinflate.o $(call MKESCAPE,$(BUILDDIR))/font.o
|
$(call MKESCAPE,$(BUILDDIR))/limine_nomap.elf: $(call MKESCAPE,$(BUILDDIR))/limine-efi/gnuefi/crt0-efi-ia32.o $(call MKESCAPE,$(BUILDDIR))/limine-efi/gnuefi/reloc_ia32.o $(OBJ) ../libgcc-binaries/libgcc-i686.a $(call MKESCAPE,$(BUILDDIR))/tinf/tinfgzip.o $(call MKESCAPE,$(BUILDDIR))/tinf/tinflate.o $(call MKESCAPE,$(BUILDDIR))/font.o
|
||||||
@ -323,7 +323,7 @@ $(call MKESCAPE,$(BUILDDIR))/limine_nomap.elf: $(call MKESCAPE,$(BUILDDIR))/limi
|
|||||||
'$(call OBJESCAPE,$^)' $(CROSS_LDFLAGS) $(INTERNAL_LDFLAGS) -o '$(call SHESCAPE,$@)'
|
'$(call OBJESCAPE,$^)' $(CROSS_LDFLAGS) $(INTERNAL_LDFLAGS) -o '$(call SHESCAPE,$@)'
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/linker.ld: linker_uefi_ia32.ld.in
|
$(call MKESCAPE,$(BUILDDIR))/linker.ld: linker_uefi_ia32.ld.in
|
||||||
mkdir -p '$(call SHESCAPE,$(BUILDDIR))'
|
$(MKDIR_P) '$(call SHESCAPE,$(BUILDDIR))'
|
||||||
$(CROSS_CC) -x c -E -P -undef linker_uefi_ia32.ld.in -o '$(call SHESCAPE,$(BUILDDIR))/linker.ld'
|
$(CROSS_CC) -x c -E -P -undef linker_uefi_ia32.ld.in -o '$(call SHESCAPE,$(BUILDDIR))/linker.ld'
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/limine.elf: $(call MKESCAPE,$(BUILDDIR))/limine-efi/gnuefi/crt0-efi-ia32.o $(call MKESCAPE,$(BUILDDIR))/limine-efi/gnuefi/reloc_ia32.o $(OBJ) ../libgcc-binaries/libgcc-i686.a $(call MKESCAPE,$(BUILDDIR))/tinf/tinfgzip.o $(call MKESCAPE,$(BUILDDIR))/tinf/tinflate.o $(call MKESCAPE,$(BUILDDIR))/font.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/reloc_ia32.o $(OBJ) ../libgcc-binaries/libgcc-i686.a $(call MKESCAPE,$(BUILDDIR))/tinf/tinfgzip.o $(call MKESCAPE,$(BUILDDIR))/tinf/tinflate.o $(call MKESCAPE,$(BUILDDIR))/font.o $(call MKESCAPE,$(BUILDDIR))/full.map.o
|
||||||
@ -338,19 +338,19 @@ endif
|
|||||||
|
|
||||||
ifeq ($(TARGET), uefi-x86-64)
|
ifeq ($(TARGET), uefi-x86-64)
|
||||||
$(call MKESCAPE,$(BUILDDIR))/%.o: %.c $(call MKESCAPE,$(BUILDDIR))/tinf-copied $(call MKESCAPE,$(BUILDDIR))/limine-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,$@)')"
|
||||||
$(CROSS_CC) $(CROSS_CFLAGS) $(INTERNAL_CFLAGS) -c '$(call SHESCAPE,$<)' -o '$(call SHESCAPE,$@)'
|
$(CROSS_CC) $(CROSS_CFLAGS) $(INTERNAL_CFLAGS) -c '$(call SHESCAPE,$<)' -o '$(call SHESCAPE,$@)'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(TARGET), uefi-ia32)
|
ifeq ($(TARGET), uefi-ia32)
|
||||||
$(call MKESCAPE,$(BUILDDIR))/%.o: %.c $(call MKESCAPE,$(BUILDDIR))/tinf-copied $(call MKESCAPE,$(BUILDDIR))/limine-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,$@)')"
|
||||||
$(CROSS_CC) $(CROSS_CFLAGS) $(INTERNAL_CFLAGS) -c '$(call SHESCAPE,$<)' -o '$(call SHESCAPE,$@)'
|
$(CROSS_CC) $(CROSS_CFLAGS) $(INTERNAL_CFLAGS) -c '$(call SHESCAPE,$<)' -o '$(call SHESCAPE,$@)'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(TARGET), bios)
|
ifeq ($(TARGET), bios)
|
||||||
$(call MKESCAPE,$(BUILDDIR))/%.o: %.c $(call MKESCAPE,$(BUILDDIR))/tinf-copied
|
$(call MKESCAPE,$(BUILDDIR))/%.o: %.c $(call MKESCAPE,$(BUILDDIR))/tinf-copied
|
||||||
mkdir -p "$$(dirname '$(call SHESCAPE,$@)')"
|
$(MKDIR_P) "$$(dirname '$(call SHESCAPE,$@)')"
|
||||||
$(CROSS_CC) $(CROSS_CFLAGS) $(INTERNAL_CFLAGS) -c '$(call SHESCAPE,$<)' -o '$(call SHESCAPE,$@)'
|
$(CROSS_CC) $(CROSS_CFLAGS) $(INTERNAL_CFLAGS) -c '$(call SHESCAPE,$<)' -o '$(call SHESCAPE,$@)'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -358,7 +358,7 @@ endif
|
|||||||
|
|
||||||
ifeq ($(TARGET), bios)
|
ifeq ($(TARGET), bios)
|
||||||
$(call MKESCAPE,$(BUILDDIR))/%.s2.o: %.s2.c
|
$(call MKESCAPE,$(BUILDDIR))/%.s2.o: %.s2.c
|
||||||
mkdir -p "$$(dirname '$(call SHESCAPE,$@)')"
|
$(MKDIR_P) "$$(dirname '$(call SHESCAPE,$@)')"
|
||||||
$(CROSS_CC) $(S2CFLAGS) $(INTERNAL_CFLAGS) -c '$(call SHESCAPE,$<)' -o '$(call SHESCAPE,$@)'
|
$(CROSS_CC) $(S2CFLAGS) $(INTERNAL_CFLAGS) -c '$(call SHESCAPE,$<)' -o '$(call SHESCAPE,$@)'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -366,42 +366,42 @@ endif
|
|||||||
|
|
||||||
ifeq ($(TARGET), bios)
|
ifeq ($(TARGET), bios)
|
||||||
$(call MKESCAPE,$(BUILDDIR))/%.o: %.asm_ia32
|
$(call MKESCAPE,$(BUILDDIR))/%.o: %.asm_ia32
|
||||||
mkdir -p "$$(dirname '$(call SHESCAPE,$@)')"
|
$(MKDIR_P) "$$(dirname '$(call SHESCAPE,$@)')"
|
||||||
nasm '$(call SHESCAPE,$<)' -F dwarf -g $(WERROR) -f elf32 -o '$(call SHESCAPE,$@)'
|
nasm '$(call SHESCAPE,$<)' -F dwarf -g $(WERROR) -f elf32 -o '$(call SHESCAPE,$@)'
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/%.o: %.asm_bios_ia32
|
$(call MKESCAPE,$(BUILDDIR))/%.o: %.asm_bios_ia32
|
||||||
mkdir -p "$$(dirname '$(call SHESCAPE,$@)')"
|
$(MKDIR_P) "$$(dirname '$(call SHESCAPE,$@)')"
|
||||||
nasm '$(call SHESCAPE,$<)' -F dwarf -g $(WERROR) -f elf32 -o '$(call SHESCAPE,$@)'
|
nasm '$(call SHESCAPE,$<)' -F dwarf -g $(WERROR) -f elf32 -o '$(call SHESCAPE,$@)'
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/%.o: %.asm_x86
|
$(call MKESCAPE,$(BUILDDIR))/%.o: %.asm_x86
|
||||||
mkdir -p "$$(dirname '$(call SHESCAPE,$@)')"
|
$(MKDIR_P) "$$(dirname '$(call SHESCAPE,$@)')"
|
||||||
nasm '$(call SHESCAPE,$<)' -F dwarf -g $(WERROR) -f elf32 -o '$(call SHESCAPE,$@)'
|
nasm '$(call SHESCAPE,$<)' -F dwarf -g $(WERROR) -f elf32 -o '$(call SHESCAPE,$@)'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(TARGET), uefi-x86-64)
|
ifeq ($(TARGET), uefi-x86-64)
|
||||||
$(call MKESCAPE,$(BUILDDIR))/%.o: %.asm_x86_64
|
$(call MKESCAPE,$(BUILDDIR))/%.o: %.asm_x86_64
|
||||||
mkdir -p "$$(dirname '$(call SHESCAPE,$@)')"
|
$(MKDIR_P) "$$(dirname '$(call SHESCAPE,$@)')"
|
||||||
nasm '$(call SHESCAPE,$<)' -F dwarf -g $(WERROR) -f elf64 -o '$(call SHESCAPE,$@)'
|
nasm '$(call SHESCAPE,$<)' -F dwarf -g $(WERROR) -f elf64 -o '$(call SHESCAPE,$@)'
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/%.o: %.asm_uefi_x86_64
|
$(call MKESCAPE,$(BUILDDIR))/%.o: %.asm_uefi_x86_64
|
||||||
mkdir -p "$$(dirname '$(call SHESCAPE,$@)')"
|
$(MKDIR_P) "$$(dirname '$(call SHESCAPE,$@)')"
|
||||||
nasm '$(call SHESCAPE,$<)' -F dwarf -g $(WERROR) -f elf64 -o '$(call SHESCAPE,$@)'
|
nasm '$(call SHESCAPE,$<)' -F dwarf -g $(WERROR) -f elf64 -o '$(call SHESCAPE,$@)'
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/%.o: %.asm_x86
|
$(call MKESCAPE,$(BUILDDIR))/%.o: %.asm_x86
|
||||||
mkdir -p "$$(dirname '$(call SHESCAPE,$@)')"
|
$(MKDIR_P) "$$(dirname '$(call SHESCAPE,$@)')"
|
||||||
nasm '$(call SHESCAPE,$<)' -F dwarf -g $(WERROR) -f elf64 -o '$(call SHESCAPE,$@)'
|
nasm '$(call SHESCAPE,$<)' -F dwarf -g $(WERROR) -f elf64 -o '$(call SHESCAPE,$@)'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(TARGET), uefi-ia32)
|
ifeq ($(TARGET), uefi-ia32)
|
||||||
$(call MKESCAPE,$(BUILDDIR))/%.o: %.asm_ia32
|
$(call MKESCAPE,$(BUILDDIR))/%.o: %.asm_ia32
|
||||||
mkdir -p "$$(dirname '$(call SHESCAPE,$@)')"
|
$(MKDIR_P) "$$(dirname '$(call SHESCAPE,$@)')"
|
||||||
nasm '$(call SHESCAPE,$<)' -F dwarf -g $(WERROR) -f elf32 -o '$(call SHESCAPE,$@)'
|
nasm '$(call SHESCAPE,$<)' -F dwarf -g $(WERROR) -f elf32 -o '$(call SHESCAPE,$@)'
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/%.o: %.asm_uefi_ia32
|
$(call MKESCAPE,$(BUILDDIR))/%.o: %.asm_uefi_ia32
|
||||||
mkdir -p "$$(dirname '$(call SHESCAPE,$@)')"
|
$(MKDIR_P) "$$(dirname '$(call SHESCAPE,$@)')"
|
||||||
nasm '$(call SHESCAPE,$<)' -F dwarf -g $(WERROR) -f elf32 -o '$(call SHESCAPE,$@)'
|
nasm '$(call SHESCAPE,$<)' -F dwarf -g $(WERROR) -f elf32 -o '$(call SHESCAPE,$@)'
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/%.o: %.asm_x86
|
$(call MKESCAPE,$(BUILDDIR))/%.o: %.asm_x86
|
||||||
mkdir -p "$$(dirname '$(call SHESCAPE,$@)')"
|
$(MKDIR_P) "$$(dirname '$(call SHESCAPE,$@)')"
|
||||||
nasm '$(call SHESCAPE,$<)' -F dwarf -g $(WERROR) -f elf32 -o '$(call SHESCAPE,$@)'
|
nasm '$(call SHESCAPE,$<)' -F dwarf -g $(WERROR) -f elf32 -o '$(call SHESCAPE,$@)'
|
||||||
endif
|
endif
|
||||||
|
@ -27,6 +27,7 @@ if test "$werror_state" = "yes"; then
|
|||||||
CFLAGS="$CFLAGS -Werror"
|
CFLAGS="$CFLAGS -Werror"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
AC_PROG_MKDIR_P
|
||||||
AC_PROG_INSTALL
|
AC_PROG_INSTALL
|
||||||
AC_PROG_GREP
|
AC_PROG_GREP
|
||||||
AC_PROG_SED
|
AC_PROG_SED
|
||||||
@ -65,7 +66,7 @@ if test "x$BUILD_BIOS" = "xno"; then
|
|||||||
BUILD_BIOS=""
|
BUILD_BIOS=""
|
||||||
else
|
else
|
||||||
(
|
(
|
||||||
mkdir -p "$BUILDDIR/cross-files"
|
$MKDIR_P "$BUILDDIR/cross-files"
|
||||||
cd "$BUILDDIR/cross-files"
|
cd "$BUILDDIR/cross-files"
|
||||||
TRIPLET=i686-elf "$SRCDIR/cross-detect/configure"
|
TRIPLET=i686-elf "$SRCDIR/cross-detect/configure"
|
||||||
) || exit 1
|
) || exit 1
|
||||||
@ -108,7 +109,7 @@ if test "x$BUILD_UEFI_IA32" = "xno"; then
|
|||||||
BUILD_UEFI_IA32=""
|
BUILD_UEFI_IA32=""
|
||||||
else
|
else
|
||||||
(
|
(
|
||||||
mkdir -p "$BUILDDIR/cross-files"
|
$MKDIR_P "$BUILDDIR/cross-files"
|
||||||
cd "$BUILDDIR/cross-files"
|
cd "$BUILDDIR/cross-files"
|
||||||
TRIPLET=i686-elf "$SRCDIR/cross-detect/configure"
|
TRIPLET=i686-elf "$SRCDIR/cross-detect/configure"
|
||||||
) || exit 1
|
) || exit 1
|
||||||
@ -127,7 +128,7 @@ if test "x$BUILD_UEFI_X86_64" = "xno"; then
|
|||||||
BUILD_UEFI_X86_64=""
|
BUILD_UEFI_X86_64=""
|
||||||
else
|
else
|
||||||
(
|
(
|
||||||
mkdir -p "$BUILDDIR/cross-files"
|
$MKDIR_P "$BUILDDIR/cross-files"
|
||||||
cd "$BUILDDIR/cross-files"
|
cd "$BUILDDIR/cross-files"
|
||||||
TRIPLET=x86_64-elf "$SRCDIR/cross-detect/configure"
|
TRIPLET=x86_64-elf "$SRCDIR/cross-detect/configure"
|
||||||
) || exit 1
|
) || exit 1
|
||||||
|
@ -61,24 +61,24 @@ $(call MKESCAPE,$(BUILDDIR))/decompressor.bin: $(OBJ) ../libgcc-binaries/libgcc-
|
|||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/tinf-copied: ../tinf/*
|
$(call MKESCAPE,$(BUILDDIR))/tinf-copied: ../tinf/*
|
||||||
rm -rf '$(call SHESCAPE,$(BUILDDIR))/tinf'
|
rm -rf '$(call SHESCAPE,$(BUILDDIR))/tinf'
|
||||||
mkdir -p '$(call SHESCAPE,$(BUILDDIR))'
|
$(MKDIR_P) '$(call SHESCAPE,$(BUILDDIR))'
|
||||||
cp -r ../tinf '$(call SHESCAPE,$(BUILDDIR))/'
|
cp -r ../tinf '$(call SHESCAPE,$(BUILDDIR))/'
|
||||||
touch '$(call SHESCAPE,$(BUILDDIR))/tinf-copied'
|
touch '$(call SHESCAPE,$(BUILDDIR))/tinf-copied'
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/tinf/tinfgzip.o: $(call MKESCAPE,$(BUILDDIR))/tinf-copied
|
$(call MKESCAPE,$(BUILDDIR))/tinf/tinfgzip.o: $(call MKESCAPE,$(BUILDDIR))/tinf-copied
|
||||||
mkdir -p "$$(dirname '$(call SHESCAPE,$@)')"
|
$(MKDIR_P) "$$(dirname '$(call SHESCAPE,$@)')"
|
||||||
$(CROSS_CC) $(CROSS_CFLAGS) -Os $(INTERNAL_CFLAGS) -c '$(call SHESCAPE,$(@:.o=.c))' -o '$(call SHESCAPE,$@)'
|
$(CROSS_CC) $(CROSS_CFLAGS) -Os $(INTERNAL_CFLAGS) -c '$(call SHESCAPE,$(@:.o=.c))' -o '$(call SHESCAPE,$@)'
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/tinf/tinflate.o: $(call MKESCAPE,$(BUILDDIR))/tinf-copied
|
$(call MKESCAPE,$(BUILDDIR))/tinf/tinflate.o: $(call MKESCAPE,$(BUILDDIR))/tinf-copied
|
||||||
mkdir -p "$$(dirname '$(call SHESCAPE,$@)')"
|
$(MKDIR_P) "$$(dirname '$(call SHESCAPE,$@)')"
|
||||||
$(CROSS_CC) $(CROSS_CFLAGS) -Os $(INTERNAL_CFLAGS) -c '$(call SHESCAPE,$(@:.o=.c))' -o '$(call SHESCAPE,$@)'
|
$(CROSS_CC) $(CROSS_CFLAGS) -Os $(INTERNAL_CFLAGS) -c '$(call SHESCAPE,$(@:.o=.c))' -o '$(call SHESCAPE,$@)'
|
||||||
|
|
||||||
-include $(HEADER_DEPS)
|
-include $(HEADER_DEPS)
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/%.o: %.c $(call MKESCAPE,$(BUILDDIR))/tinf-copied
|
$(call MKESCAPE,$(BUILDDIR))/%.o: %.c $(call MKESCAPE,$(BUILDDIR))/tinf-copied
|
||||||
mkdir -p "$$(dirname '$(call SHESCAPE,$@)')"
|
$(MKDIR_P) "$$(dirname '$(call SHESCAPE,$@)')"
|
||||||
$(CROSS_CC) $(CROSS_CFLAGS) -Os $(INTERNAL_CFLAGS) -c '$(call SHESCAPE,$<)' -o '$(call SHESCAPE,$@)'
|
$(CROSS_CC) $(CROSS_CFLAGS) -Os $(INTERNAL_CFLAGS) -c '$(call SHESCAPE,$<)' -o '$(call SHESCAPE,$@)'
|
||||||
|
|
||||||
$(call MKESCAPE,$(BUILDDIR))/%.o: %.asm
|
$(call MKESCAPE,$(BUILDDIR))/%.o: %.asm
|
||||||
mkdir -p "$$(dirname '$(call SHESCAPE,$@)')"
|
$(MKDIR_P) "$$(dirname '$(call SHESCAPE,$@)')"
|
||||||
nasm '$(call SHESCAPE,$<)' -f elf32 -o '$(call SHESCAPE,$@)'
|
nasm '$(call SHESCAPE,$<)' -f elf32 -o '$(call SHESCAPE,$@)'
|
||||||
|
Loading…
Reference in New Issue
Block a user