xref: /illumos-gate/usr/src/boot/userboot/libsa/amd64/Makefile (revision 10a869258e300c530ae56b29aa3bf43461ca98ff)
1*10a86925SToomas Soome#
2*10a86925SToomas Soome# This file and its contents are supplied under the terms of the
3*10a86925SToomas Soome# Common Development and Distribution License ("CDDL"), version 1.0.
4*10a86925SToomas Soome# You may only use this file in accordance with the terms of version
5*10a86925SToomas Soome# 1.0 of the CDDL.
6*10a86925SToomas Soome#
7*10a86925SToomas Soome# A full copy of the text of the CDDL should have accompanied this
8*10a86925SToomas Soome# source.  A copy of the CDDL is also available via the Internet at
9*10a86925SToomas Soome# http://www.illumos.org/license/CDDL.
10*10a86925SToomas Soome#
11*10a86925SToomas Soome
12*10a86925SToomas Soome#
13*10a86925SToomas Soome# Copyright 2016 Toomas Soome <tsoome@me.com>
14*10a86925SToomas Soome# Copyright 2016 RackTop Systems.
15*10a86925SToomas Soome#
16*10a86925SToomas Soome
17*10a86925SToomas Soomeinclude $(SRC)/Makefile.master
18*10a86925SToomas Soome
19*10a86925SToomas SoomeMACHINE=	$(MACH64)
20*10a86925SToomas SoomeDYNLIB=		libsa.a
21*10a86925SToomas Soome
22*10a86925SToomas Soomeall install:    $(DYNLIB)
23*10a86925SToomas Soome
24*10a86925SToomas Soomeinclude ../../../libsa/Makefile.com
25*10a86925SToomas Soomeinclude ../../Makefile.inc
26*10a86925SToomas Soome
27*10a86925SToomas Soome.KEEP_STATE:
28*10a86925SToomas Soome
29*10a86925SToomas SoomeASFLAGS +=	$(amd64_XARCH) -I$(SRC)/uts/common -I$(ROOT)/usr/include -D_ASM
30*10a86925SToomas SoomeASFLAGS64 +=	$(amd64_XARCH) -I$(SRC)/uts/common -I$(ROOT)/usr/include -D_ASM
31*10a86925SToomas SoomeCFLAGS +=	-m64 $(CFLAGS64)
32*10a86925SToomas SoomeCCASFLAGS +=	-m64
33*10a86925SToomas Soome
34*10a86925SToomas Soome# _setjmp/_longjmp
35*10a86925SToomas SoomeSRCS += $(SASRC)/amd64/_setjmp.S
36*10a86925SToomas SoomeOBJECTS += _setjmp.o
37*10a86925SToomas SoomeSRCS += sha1-x86_64.S
38*10a86925SToomas SoomeOBJECTS += sha1-x86_64.o
39*10a86925SToomas Soome
40*10a86925SToomas SoomeSRCS += $(SASRC)/x86/hypervisor.c
41*10a86925SToomas SoomeOBJECTS += hypervisor.o
42*10a86925SToomas Soome
43*10a86925SToomas SoomeCLEANFILES += sha1-x86_64.S sha1-x86_64.s
44*10a86925SToomas Soome
45*10a86925SToomas Soomepics/%.o: $(SASRC)/amd64/%.S
46*10a86925SToomas Soome	$(COMPILE.S) -o $@ $<
47*10a86925SToomas Soome
48*10a86925SToomas Soomepics/%.o: $(SASRC)/x86/%.c
49*10a86925SToomas Soome	$(COMPILE.c) -o $@ $<
50*10a86925SToomas Soome
51*10a86925SToomas Soomeinclude $(BOOTSRC)/Makefile.lib
52*10a86925SToomas Soome
53*10a86925SToomas SoomeFRC:
54