3 # Build control file for the rEFInd boot menu
10 ARCH
= $(shell uname
-m | sed s
,i
[3456789]86,ia32
,)
16 TARGET
= refind_ia32.efi
21 TARGET
= refind_x64.efi
24 LOCAL_CPPFLAGS
= -I
$(SRCDIR
) -I
$(SRCDIR
)/..
/include -I
$(SRCDIR
)/..
/libeg
-I
$(SRCDIR
)/..
/mok
25 LOCAL_LDFLAGS
= -L
$(SRCDIR
)/..
/libeg
/ -L
$(SRCDIR
)/..
/mok
/
26 LOCAL_LIBS
= -leg
-lmok
28 OBJS
= main.o config.o menu.o screen.o icns.o lib.o driver_support.o
29 #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
33 include $(SRCDIR
)/..
/Make.common
35 $(TARGET
): $(SHLIB_TARGET
)
36 $(OBJCOPY
) -j .text
-j .sdata
-j .data
-j .dynamic
-j .dynsym
-j .rel \
37 -j .rela
-j .reloc
--target
=$(FORMAT
) $< $@