1# 2# This file and its contents are supplied under the terms of the 3# Common Development and Distribution License ("CDDL"), version 1.0. 4# You may only use this file in accordance with the terms of version 5# 1.0 of the CDDL. 6# 7# A full copy of the text of the CDDL should have accompanied this 8# source. A copy of the CDDL is also available via the Internet at 9# http://www.illumos.org/license/CDDL. 10# 11 12# 13# Copyright 2016 Toomas Soome <tsoome@me.com> 14# 15 16include $(SRC)/Makefile.master 17include $(SRC)/boot/Makefile.inc 18 19install: 20 21OBJS += \ 22 acpi.o \ 23 delay.o \ 24 devicename.o \ 25 devpath.o \ 26 efi_console.o \ 27 efi_driver_utils.o \ 28 efichar.o \ 29 efienv.o \ 30 efinet.o \ 31 efipart.o \ 32 efiserialio.o \ 33 efiisaio.o \ 34 efizfs.o \ 35 env.o \ 36 errno.o \ 37 gfx_fb.o \ 38 handles.o \ 39 libefi.o \ 40 pnglite.o \ 41 wchar.o 42 43CPPFLAGS += -DEFI 44CPPFLAGS += -I. -I../../../include -I../../../sys 45CPPFLAGS += -I$(SRC)/common/ficl -I../../../libficl 46CPPFLAGS += -I../../include 47CPPFLAGS += -I../../include/$(MACHINE) 48CPPFLAGS += -I../../../libsa 49CPPFLAGS += -I$(ZFSSRC) 50CPPFLAGS += -I../../../sys/cddl/boot/zfs 51 52acpi.o := CPPFLAGS += -I$(SRC)/uts/intel/sys/acpi 53gfx_fb.o := CPPFLAGS += $(DEFAULT_CONSOLE_COLOR) -I$(LZ4) 54pnglite.o := CPPFLAGS += -I$(ZLIB) 55gfx_fb.o pnglite.o efi_console.o := CPPFLAGS += -I$(PNGLITE) 56 57# Pick up the bootstrap header for some interface items 58CPPFLAGS += -I../../../common 59 60include ../../Makefile.inc 61 62# For multiboot2.h, must be last, to avoid conflicts 63CPPFLAGS += -I$(SRC)/uts/common 64 65libefi.a: $(OBJS) 66 $(AR) $(ARFLAGS) $@ $(OBJS) 67 68clean: clobber 69clobber: 70 $(RM) $(CLEANFILES) $(OBJS) libefi.a 71 72machine: 73 $(RM) machine 74 $(SYMLINK) ../../../sys/$(MACHINE)/include machine 75 76x86: 77 $(RM) x86 78 $(SYMLINK) ../../../sys/x86/include x86 79 80%.o: ../%.c 81 $(COMPILE.c) $< 82 83%.o: ../../../common/%.c 84 $(COMPILE.c) $< 85 86%.o: $(PNGLITE)/%.c 87 $(COMPILE.c) $< 88