summaryrefslogtreecommitdiffstats
path: root/efi_memtest/Makefile
diff options
context:
space:
mode:
authorRegia König2021-04-14 12:14:52 +0200
committerRegia König2021-04-14 12:14:52 +0200
commitd931c7da631a73aa90e2169fe3be37de0a92d1e2 (patch)
treed207792fd4827c4a96968cc1981305135dc917e5 /efi_memtest/Makefile
parentOutcomment all unused GUIDs in Efi_Defs.h (diff)
downloadmemtest86-d931c7da631a73aa90e2169fe3be37de0a92d1e2.tar.gz
memtest86-d931c7da631a73aa90e2169fe3be37de0a92d1e2.tar.xz
memtest86-d931c7da631a73aa90e2169fe3be37de0a92d1e2.zip
Move GUID and Pcd definitions from Efi_Defs.h into separate files
Diffstat (limited to 'efi_memtest/Makefile')
-rw-r--r--efi_memtest/Makefile17
1 files changed, 9 insertions, 8 deletions
diff --git a/efi_memtest/Makefile b/efi_memtest/Makefile
index f39668c..7ca8698 100644
--- a/efi_memtest/Makefile
+++ b/efi_memtest/Makefile
@@ -5,11 +5,14 @@ CC = gcc
# Warnings
CFLAGS = -Werror -Wall -Wno-array-bounds -Wno-address
CFLAGS += -fno-builtin
-CFLAGS += -fshort-wchar # EFI requires -fshort-wchar
+# EFI requires -fshort-wchar
+CFLAGS += -fshort-wchar
CFLAGS += -fno-common
CFLAGS += -fno-strict-aliasing -g
-CFLAGS += -mno-red-zone # EFI uses Microsoft ABI so no red zone is defined
-CFLAGS += -fpie # use %rip-relative addressing wherever possible
+# EFI uses Microsoft ABI so no red zone is defined
+CFLAGS += -mno-red-zone
+# use %rip-relative addressing wherever possible
+CFLAGS += -fpie
CFLAGS += -fPIC
CFLAGS += -ffunction-sections
CFLAGS += -fdata-sections
@@ -17,9 +20,10 @@ CFLAGS += -flto
CFLAGS += -maccumulate-outgoing-args
CFLAGS += -fno-asynchronous-unwind-tables
CFLAGS += -nostdlib
+CFLAGS += -mcmodel=small
#CFLAGS += -fno-stack-protector e
-M64=-m64 -mcmodel=small
+M64=-m64
M32=-m32
@@ -97,10 +101,7 @@ $(MAIN_FILE).obj: $(MAIN_FILE).c
Efi_Defs.obj: memtest86+/efi/Include/Efi_Defs.c
$(CC) $(CFLAGS) $(PREPROCESSOR) $(M) -o $@ $< \
-c \
- -I"./" \
- -I"memtest86+/efi/Include/" \
- -I"memtest86+/efi/Include/Uefi" \
- -I"memtest86+/efi/Include/Library"
+ -I"memtest86+/efi/Include"
%.o: memtest86+/%.c
$(CC) $(CFLAGS) $(PREPROCESSOR) $(M) -c -o $@ $< \