]> code.delx.au - refind/blob - refind/Makefile
NTFS driver support, minor filesystem code tweaks, and changes to
[refind] / refind / Makefile
1 #
2 # refind/Makefile
3 # Build control file for the rEFInd boot menu
4 #
5
6 SRCDIR = .
7
8 VPATH = $(SRCDIR)
9
10 ARCH = $(shell uname -m | sed s,i[3456789]86,ia32,)
11
12 TARGET = refind.efi
13
14 ifeq ($(ARCH),ia32)
15 LIBEG = build32
16 TARGET = refind_ia32.efi
17 endif
18
19 ifeq ($(ARCH),x86_64)
20 LIBEG = build64
21 TARGET = refind_x64.efi
22 endif
23
24 LOCAL_CPPFLAGS = -I$(SRCDIR) -I$(SRCDIR)/../include -I$(SRCDIR)/../libeg -I$(SRCDIR)/../mok
25 LOCAL_LDFLAGS = -L$(SRCDIR)/../libeg/ -L$(SRCDIR)/../mok/ -L$(SRCDIR)/../EfiLib/
26 LOCAL_LIBS = -leg -lmok -lEfiLib
27
28 OBJS = main.o config.o menu.o screen.o icns.o gpt.o crc32.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
30
31 all: $(TARGET)
32
33 include $(SRCDIR)/../Make.common
34
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) $< $@
38 chmod a-x $(TARGET)
39
40 # EOF
41 # DO NOT DELETE