xref: /illumos-gate/usr/src/boot/libsa/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
1983b4671eSToomas SoomeMACHINE=	$(MACH)
20*22028508SToomas SoomeLIBRARY=	libsa.a
21*22028508SToomas SoomeDYNLIB=		libsa_pics.a
2283b4671eSToomas Soome
23ff5d4039SToomas Soomeall install:	$(LIBRARY) $(DYNLIB)
2483b4671eSToomas Soome
25199767f8SToomas Soomeinclude ../Makefile.com
26199767f8SToomas Soome
2783b4671eSToomas SoomeCFLAGS +=	-m32
28cc7e66e6SToomas SoomeCCASFLAGS +=	-m32
29199767f8SToomas Soome
30199767f8SToomas Soome# _setjmp/_longjmp
3186fec011SToomas SoomeSRCS += $(SASRC)/i386/_setjmp.S
32ff5d4039SToomas SoomeOBJECTS += _setjmp.o
33199767f8SToomas Soome
348c653870SToomas SoomeSRCS += $(SASRC)/x86/hypervisor.c
358c653870SToomas SoomeOBJECTS += hypervisor.o
368c653870SToomas Soome
37ff5d4039SToomas Soomepics/%.o objs/%.o: $(SASRC)/i386/%.S
38ff5d4039SToomas Soome	$(COMPILE.S) -o $@ $<
39199767f8SToomas Soome
408c653870SToomas Soomepics/%.o objs/%.o: $(SASRC)/x86/%.c
418c653870SToomas Soome	$(COMPILE.c) -o $@ $<
428c653870SToomas Soome
43*22028508SToomas Soomeinclude $(BOOTSRC)/Makefile.lib
4483b4671eSToomas Soome
45ff5d4039SToomas SoomeFRC: