]> code.delx.au - refind/blob - refind/Makefile
Small menu improvements; bug fixes & improvements to install.sh
[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 # EOF
36 # DO NOT DELETE