summaryrefslogtreecommitdiffstats
path: root/GNU_efi_HelloWorld/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'GNU_efi_HelloWorld/Makefile')
-rw-r--r--GNU_efi_HelloWorld/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/GNU_efi_HelloWorld/Makefile b/GNU_efi_HelloWorld/Makefile
index 448e3f7..e3a5956 100644
--- a/GNU_efi_HelloWorld/Makefile
+++ b/GNU_efi_HelloWorld/Makefile
@@ -10,7 +10,8 @@ EFI_CRT_OBJS = $(EFILIB)/crt0-efi-$(ARCH).o
EFI_LDS = $(EFILIB)/elf_$(ARCH)_efi.lds
CFLAGS = $(EFFINCS) -fno-stack-protector -fpic \
- -fshort-wchar -mno-red-zone -Wall
+ -fshort-wchar -mno-red-zone -Wall \
+ -ggdb
ifeq ($(ARCH),x86_64)
CFLAGS += -DEFI_FUNCTION_WRAPPER
@@ -29,3 +30,8 @@ hello.so: $(OBJS)
objcopy -j .text -j .sdata -j .data -j .dynamic \
-j .dynsym -j .rel -j .rela -j .reloc \
--target=efi-app-$(ARCH) $^ $@
+
+clear:
+ rm *.efi
+ rm *.o
+ rm *.so