summaryrefslogtreecommitdiffstats
path: root/efi_memtest/Makefile
diff options
context:
space:
mode:
authorRegia König2021-04-09 14:56:30 +0200
committerRegia König2021-04-09 14:56:30 +0200
commit023dfa4e2d2816cbcfcc65b1a2b1367b4b3e8c32 (patch)
tree181be41ad8c5a84994563d61590fed41aaf97fb7 /efi_memtest/Makefile
parentRemove INCLUDE_FILES var (diff)
downloadmemtest86-023dfa4e2d2816cbcfcc65b1a2b1367b4b3e8c32.tar.gz
memtest86-023dfa4e2d2816cbcfcc65b1a2b1367b4b3e8c32.tar.xz
memtest86-023dfa4e2d2816cbcfcc65b1a2b1367b4b3e8c32.zip
Create UefiDebugLibStdErr.o
Diffstat (limited to 'efi_memtest/Makefile')
-rw-r--r--efi_memtest/Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/efi_memtest/Makefile b/efi_memtest/Makefile
index 66c8f26..1032a27 100644
--- a/efi_memtest/Makefile
+++ b/efi_memtest/Makefile
@@ -26,8 +26,7 @@ PREPROCESSOR=-DUEFI -DUSING_LTO -Os \
OBJS=AutoGen.obj main.o display.o test.o smp.o config.o screen_buffer.o lib.o init.o controller.o \
pci.o spd.o dmi.o reloc.o patn.o error.o vmem.o cpuid.o memsize.o \
random.o MemtestEfi.obj logger.o memory_tables.o ApplicationEntryPoint.o UefiLib2.o \
- UefiRuntimeServicesTableLib.o UefiBootServicesTableLib.o
- #UefiDebugLibStdErr.o
+ UefiRuntimeServicesTableLib.o UefiBootServicesTableLib.o UefiDebugLibStdErr.o
#BaseDebugPrintErrorLevelLib.o BaseMemoryLib.o
LIBRARIES=OUTPUT/MemtestEfi.lib
@@ -99,10 +98,12 @@ AutoGen.obj: memtest86+/efi/Include/AutoGen.c
UefiLib2.o: Acpi.o Console.o UefiDriverModel.o UefiLib.o UefiLibPrint.o UefiNotTiano.o
ld -r Acpi.o Console.o UefiDriverModel.o UefiLib.o UefiLibPrint.o UefiNotTiano.o -o UefiLib2.o
-# todo create UefiLib obj file
+%.o: memtest86+/efi/Include/src/UefiDebugLibStdErr/%.c
+ $(CC) $(CFLAGS) $(PREPROCESSOR) $(M) -c -o $@ $< \
+ -I"memtest86+/efi/Include"
-#%.o: memtest86+/efi/Include/src/UefiDebugLibStdErr/%.c
-# $(CC) $(CFLAGS) $(PREPROCESSOR) $(M)
+UefiDebugLibStdErr.o: DebugLib.o DebugLibConstructor.o
+ ld -r DebugLib.o DebugLibConstructor.o -o UefiDebugLibStdErr.o
%.o: memtest86+/efi/%.c
$(CC) $(CFLAGS) $(PREPROCESSOR) $(M) -c -o $@ $< \