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
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.
13 # Copyright 2016 Toomas Soome <tsoome@me.com>
16 include $(SRC)/Makefile.master
18 CC= $(GNUC_ROOT)/bin/gcc
42 CPPFLAGS= -D_STANDALONE
45 CPPFLAGS += -nostdinc -I. -I../../../../../include -I../../../..
46 CPPFLAGS += -I$(SRC)/common/ficl -I../../../libficl
47 CPPFLAGS += -I../../include
48 CPPFLAGS += -I../../include/$(MACHINE)
49 CPPFLAGS += -I../../../../../lib/libstand
50 CPPFLAGS += -I../../../zfs
51 CPPFLAGS += -I../../../../cddl/boot/zfs
53 # Pick up the bootstrap header for some interface items
54 CPPFLAGS += -I../../../common
55 CPPFLAGS += -DTERM_EMU
57 include ../../Makefile.inc
60 $(AR) $(ARFLAGS) $@ $(OBJS)
64 $(RM) $(CLEANFILES) $(OBJS) libefi.a
68 $(SYMLINK) ../../../../$(MACHINE)/include machine
72 $(SYMLINK) ../../../../x86/include x86