xref: /titanic_52/usr/src/boot/sys/boot/libstand/i386/Makefile (revision 4a5d661a82b942b6538acd26209d959ce98b593a)
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 2016 Toomas Soome <tsoome@me.com>
14*4a5d661aSToomas Soome#
15*4a5d661aSToomas Soome
16*4a5d661aSToomas Soomeinclude ../Makefile.com
17*4a5d661aSToomas Soome
18*4a5d661aSToomas SoomeMACHINE=	$(MACH)
19*4a5d661aSToomas Soome
20*4a5d661aSToomas SoomeCFLAGS +=	-m32 -fno-reorder-functions
21*4a5d661aSToomas SoomeCFLAGS +=	-mpreferred-stack-boundary=2
22*4a5d661aSToomas Soome
23*4a5d661aSToomas Soome# _setjmp/_longjmp
24*4a5d661aSToomas SoomeSRCS += $(LIBSTAND_SRC)/i386/_setjmp.S
25*4a5d661aSToomas SoomeOBJS += _setjmp.o
26*4a5d661aSToomas Soome
27*4a5d661aSToomas Soome$(LIBRARY): $(SRCS) $(OBJS)
28*4a5d661aSToomas Soome
29*4a5d661aSToomas Soome%.o: $(LIBSTAND_SRC)/i386/%.S
30*4a5d661aSToomas Soome	$(COMPILE.S) $<
31