1*4a5d661aSToomas Soome# 2*4a5d661aSToomas Soome# This file and its contents are supplied under the terms of the 3*4a5d661aSToomas Soome# Common Development and Distribution License ("CDDL"), version 1.0. 4*4a5d661aSToomas Soome# You may only use this file in accordance with the terms of version 5*4a5d661aSToomas Soome# 1.0 of the CDDL. 6*4a5d661aSToomas Soome# 7*4a5d661aSToomas Soome# A full copy of the text of the CDDL should have accompanied this 8*4a5d661aSToomas Soome# source. A copy of the CDDL is also available via the Internet at 9*4a5d661aSToomas Soome# http://www.illumos.org/license/CDDL. 10*4a5d661aSToomas Soome# 11*4a5d661aSToomas Soome 12*4a5d661aSToomas Soome# 13*4a5d661aSToomas Soome# Copyright 2015 Toomas Soome <tsoome@me.com> 14*4a5d661aSToomas Soome# 15*4a5d661aSToomas Soome 16*4a5d661aSToomas Soome# Common defines for all of /sys/boot/i386/ 17*4a5d661aSToomas Soome 18*4a5d661aSToomas SoomeROOT_BOOT= $(ROOT)/boot 19*4a5d661aSToomas SoomeROOTBOOTPROG=$(PROG:%=$(ROOT_BOOT)/%) 20*4a5d661aSToomas Soome 21*4a5d661aSToomas SoomeLOADER_ADDRESS=0x200000 22*4a5d661aSToomas SoomeCFLAGS += -march=i386 -ffreestanding 23*4a5d661aSToomas SoomeCFLAGS += -mpreferred-stack-boundary=2 24*4a5d661aSToomas SoomeCFLAGS += -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float 25*4a5d661aSToomas SoomeCFLAGS += -std=gnu99 -fno-reorder-functions 26*4a5d661aSToomas SoomeLDFLAGS += -nostdlib 27*4a5d661aSToomas Soome 28*4a5d661aSToomas SoomeCFLAGS += -m32 29*4a5d661aSToomas SoomeACFLAGS += -m32 30*4a5d661aSToomas SoomeAFLAGS += --32 31*4a5d661aSToomas Soome 32*4a5d661aSToomas Soome# BTX components 33*4a5d661aSToomas SoomeBTXDIR= $(SRC)/boot/sys/boot/i386/btx 34*4a5d661aSToomas SoomeBTXLDR= ${BTXDIR}/btxldr/btxldr 35*4a5d661aSToomas SoomeBTXKERN= ${BTXDIR}/btx/btx 36*4a5d661aSToomas SoomeBTXCRT= ${BTXDIR}/lib/crt0.o 37*4a5d661aSToomas Soome 38*4a5d661aSToomas Soome$(ROOT_BOOT)/%: % 39*4a5d661aSToomas Soome $(INS.file) 40