diff options
author | Regia König | 2021-04-08 16:45:56 +0200 |
---|---|---|
committer | Regia König | 2021-04-08 16:45:56 +0200 |
commit | 50ed50f8e272c06ec44d3c8c41a0de838e6e3705 (patch) | |
tree | b70e4b9e760544f4442381a6e349ad3117eb724c /efi_memtest/Makefile | |
parent | Build UefiApplicationEntryPoint.o instead of using lib" (diff) | |
download | memtest86-50ed50f8e272c06ec44d3c8c41a0de838e6e3705.tar.gz memtest86-50ed50f8e272c06ec44d3c8c41a0de838e6e3705.tar.xz memtest86-50ed50f8e272c06ec44d3c8c41a0de838e6e3705.zip |
Add additional header to compile BaseLib
Diffstat (limited to 'efi_memtest/Makefile')
-rw-r--r-- | efi_memtest/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/efi_memtest/Makefile b/efi_memtest/Makefile index 7d1672e..07deedf 100644 --- a/efi_memtest/Makefile +++ b/efi_memtest/Makefile @@ -31,12 +31,12 @@ INCLUDE_FILES=main cpuid test smp config screen_buffer lib init controller pci \ 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 UefiApplicationEntryPoint.o + random.o MemtestEfi.obj logger.o memory_tables.o ApplicationEntryPoint.o UefiLib.o #BaseDebugPrintErrorLevelLib.o LIBS_PATH=memtest86+/efi/Include/libs -LIBRARIES=OUTPUT/MemtestEfi.lib $(addprefix $(LIBS_PATH)/,UefiLib.lib BaseLib.lib \ +LIBRARIES=OUTPUT/MemtestEfi.lib $(addprefix $(LIBS_PATH)/,BaseLib.lib \ BaseMemoryLib.lib BasePcdLibNull.lib BasePrintLib.lib \ UefiBootServicesTableLib.lib UefiDebugLibStdErr.lib UefiDevicePathLib.lib \ UefiMemoryAllocationLib.lib UefiRuntimeServicesTableLib.lib) @@ -111,6 +111,12 @@ AutoGen.obj: memtest86+/efi/Include/AutoGen.c -I"memtest86+/efi/Include" \ -I"memtest86+/efi/Include/Library" +UefiLib.o: memtest86+/efi/Include/src/UefiLib/UefiLib.c + echo "CREATE UefiLib OBJECT" + $(CC) $(CFLAGS) $(PREPROCESSOR) $(M) -c -o $@ $< \ + -I"memtest86+/efi/Include" \ + -I"memtest86+/efi/Include/Protocol" + %.o: memtest86+/efi/%.c $(CC) $(CFLAGS) $(PREPROCESSOR) $(M) -c -o $@ $< \ -I"memtest86+" \ |