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/Makefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/GNU_efi_HelloWorld/Makefile b/GNU_efi_HelloWorld/Makefile
index 4f00d4a..31195ee 100644
--- a/GNU_efi_HelloWorld/Makefile
+++ b/GNU_efi_HelloWorld/Makefile
@@ -1,12 +1,11 @@
ARCH = $(shell uname -m | sed s,i[3456789]86,ia32,)
-OBJS = main.o
+OBJS = hello.o
TARGET = hello.efi
EFIINC = /usr/include/efi
-EFFINCS = -I$(EFFINC) -I$(EFIINC)/$(ARCH) -I$(EFIINC)/protocol
-LIB = /usr/lib64
-EFILIB = /usr/lib64/gnuefi
+EFFINCS = -I$(EFIINC) -I$(EFIINC)/$(ARCH) -I$(EFIINC)/protocol
+EFILIB = /usr/lib
EFI_CRT_OBJS = $(EFILIB)/crt0-efi-$(ARCH).o
EFI_LDS = $(EFILIB)/elf_$(ARCH)_efi.lds
@@ -18,7 +17,7 @@ ifeq ($(ARCH),x86_64)
endif
LDFLAGS = -nostdlib -znocombreloc -T $(EFI_LDS) -shared \
- -Bsymbolic -L $(EFILIB) -L $(LIB) $(EFI_CRT_OBJS)
+ -Bsymbolic -L $(EFILIB) $(EFI_CRT_OBJS)
all: $(TARGET)