]> code.delx.au - refind/blob - refind/Makefile
Misc. small changes.
[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
25 #LOCAL_LDFLAGS = -L$(SRCDIR)/../libeg/$(LIBEG)
26 LOCAL_LDFLAGS = -L$(SRCDIR)/../libeg/
27 LOCAL_LIBS = -leg
28
29 OBJS = main.o config.o menu.o screen.o icns.o lib.o driver_support.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
39 # EOF
40 # DO NOT DELETE