xref: /illumos-gate/usr/src/boot/efi/loader/i386/Makefile (revision 22028508)
1199767f8SToomas Soome#
2199767f8SToomas Soome# This file and its contents are supplied under the terms of the
3199767f8SToomas Soome# Common Development and Distribution License ("CDDL"), version 1.0.
4199767f8SToomas Soome# You may only use this file in accordance with the terms of version
5199767f8SToomas Soome# 1.0 of the CDDL.
6199767f8SToomas Soome#
7199767f8SToomas Soome# A full copy of the text of the CDDL should have accompanied this
8199767f8SToomas Soome# source.  A copy of the CDDL is also available via the Internet at
9199767f8SToomas Soome# http://www.illumos.org/license/CDDL.
10199767f8SToomas Soome#
11199767f8SToomas Soome
12199767f8SToomas Soome#
13199767f8SToomas Soome# Copyright 2016 Toomas Soome <tsoome@me.com>
1483b4671eSToomas Soome# Copyright 2016 RackTop Systems.
15199767f8SToomas Soome#
16199767f8SToomas Soome
17ff5d4039SToomas Soomeinclude $(SRC)/Makefile.master
18ff5d4039SToomas Soome
19199767f8SToomas SoomeMACHINE=	$(MACH)
2083b4671eSToomas SoomeEFIPROG=	loader32.efi
2183b4671eSToomas Soome
2283b4671eSToomas Soomeall:		$(EFIPROG)
2383b4671eSToomas Soome
2483b4671eSToomas Soomeinclude ../Makefile.com
25199767f8SToomas Soome
2683b4671eSToomas SoomeEFI_TARGET=	pei-i386
2783b4671eSToomas SoomeLDFLAGS +=	-znocombreloc
28199767f8SToomas Soome
2983b4671eSToomas Soomeefi_main.o := CPPFLAGS += -DLOADER_EFI=L\"loader32.efi\"
3083b4671eSToomas SoomeCFLAGS +=	-m32
31cc7e66e6SToomas SoomeCCASFLAGS +=	-m32
32199767f8SToomas Soome
3383b4671eSToomas Soome$(OBJS):	machine x86
345ac07b12SToomas Soome
355ac07b12SToomas Soome%.o: ../../../i386/libi386/%.c
365ac07b12SToomas Soome	$(COMPILE.c) $<
37