X-Git-Url: https://code.delx.au/refind/blobdiff_plain/12cfc677aad6ab1519212ee74eae05b2d04b8dc6..4db5e22152813f5a21f7856f9e2121438bfab64d:/Make.common diff --git a/Make.common b/Make.common index 331b76f..55755e2 100644 --- a/Make.common +++ b/Make.common @@ -3,6 +3,12 @@ # Common make rules for building with gnu-efi # +#EFIINC = /usr/include/efi +#GNUEFILIB = /usr/lib64 +#EFILIB = /usr/lib64 +#EFICRT0 = /usr/lib64 + +# Comment out above and uncomment below if using locally-compiled GNU-EFI.... EFIINC = /usr/local/include/efi GNUEFILIB = /usr/local/lib EFILIB = /usr/local/lib @@ -11,14 +17,14 @@ EFICRT0 = /usr/local/lib HOSTARCH = $(shell uname -m | sed s,i[3456789]86,ia32,) ARCH := $(HOSTARCH) OS = $(shell uname -s) -CPPFLAGS = -I$(EFIINC) -I$(EFIINC)/$(ARCH) -I$(EFIINC)/protocol -DCONFIG_$(ARCH) -D__MAKEWITH_GNUEFI +CPPFLAGS = -I$(EFIINC) -I$(EFIINC)/$(ARCH) -I$(EFIINC)/protocol -I../include -I../refind -I../libeg -DCONFIG_$(ARCH) -D__MAKEWITH_GNUEFI OPTIMFLAGS = -O2 -fno-strict-aliasing DEBUGFLAGS = -Wall #CFLAGS = $(ARCH3264) $(OPTIMFLAGS) -fpic -fshort-wchar $(DEBUGFLAGS) -CFLAGS = $(ARCH3264) $(OPTIMFLAGS) -fno-stack-protector -fpic -fshort-wchar $(DEBUGFLAGS) +CFLAGS = $(ARCH3264) $(OPTIMFLAGS) -fno-stack-protector -fpic -fshort-wchar -mno-red-zone $(DEBUGFLAGS) ASFLAGS = $(ARCH3264) -LDFLAGS = -nostdlib -znocombreloc +LDFLAGS = -nostdlib -znocombreloc -zdefs prefix = /usr/bin/ CC = $(prefix)gcc