]> code.delx.au - refind/blobdiff - refind/Makefile
Version 0.6.2 official release.
[refind] / refind / Makefile
index f1bbdb8d84be775da41d4102e2185be44d70252c..9b74ccc985020defac276f53ac2138ab19fe6316 100644 (file)
@@ -7,24 +7,35 @@ SRCDIR = .
 
 VPATH = $(SRCDIR)
 
+ARCH            = $(shell uname -m | sed s,i[3456789]86,ia32,)
+
+TARGET = refind.efi
+
 ifeq ($(ARCH),ia32)
   LIBEG = build32
+  TARGET = refind_ia32.efi
 endif
 
 ifeq ($(ARCH),x86_64)
   LIBEG = build64
+  TARGET = refind_x64.efi
 endif
 
-LOCAL_CPPFLAGS  = -I$(SRCDIR) -I$(SRCDIR)/../include -I$(SRCDIR)/../libeg -DDEBIAN_VERSION="L\"$(DEBVER)\""
-LOCAL_LDFLAGS   = -L$(SRCDIR)/../libeg/$(LIBEG)
-LOCAL_LIBS      = -leg
+LOCAL_CPPFLAGS  = -I$(SRCDIR) -I$(SRCDIR)/../include -I$(SRCDIR)/../libeg -I$(SRCDIR)/../mok
+LOCAL_LDFLAGS   = -L$(SRCDIR)/../libeg/ -L$(SRCDIR)/../mok/
+LOCAL_LIBS      = -leg -lmok
 
-OBJS            = main.o config.o menu.o screen.o icns.o lib.o bootsvcs.o
-TARGET          = refind.efi
+OBJS            = main.o config.o menu.o screen.o icns.o lib.o driver_support.o
+#OBJS            = main.o config.o menu.o screen.o icns.o lib.o mok.o driver_support.o variables.o sha256.o pecoff.o simple_file.o security_policy.o guid.o
 
 all: $(TARGET)
 
 include $(SRCDIR)/../Make.common
 
+$(TARGET): $(SHLIB_TARGET)
+       $(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic -j .dynsym -j .rel \
+                  -j .rela -j .reloc --target=$(FORMAT) $< $@
+       chmod a-x $(TARGET)
+
 # EOF
 # DO NOT DELETE