xref: /illumos-gate/usr/src/boot/libsa/amd64/Makefile (revision 763f1f5f)
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=	$(MACH64)
2022028508SToomas SoomeDYNLIB=		libsa_pics.a
2183b4671eSToomas Soome
22ff5d4039SToomas Soomeall install:    $(DYNLIB)
2383b4671eSToomas Soome
24199767f8SToomas Soomeinclude ../Makefile.com
25199767f8SToomas Soome
26*763f1f5fSRichard Lowe.KEEP_STATE:
27*763f1f5fSRichard Lowe
28*763f1f5fSRichard LoweASFLAGS +=	$(amd64_XARCH) -I$(SRC)/uts/common -I$(ROOT)/usr/include -D_ASM
29*763f1f5fSRichard LoweASFLAGS64 +=	$(amd64_XARCH) -I$(SRC)/uts/common -I$(ROOT)/usr/include -D_ASM
3086fec011SToomas SoomeCFLAGS +=	-m64 $(CFLAGS64)
3186fec011SToomas SoomeCCASFLAGS +=	-m64
32199767f8SToomas Soome
33199767f8SToomas Soome# _setjmp/_longjmp
3486fec011SToomas SoomeSRCS += $(SASRC)/amd64/_setjmp.S
35ff5d4039SToomas SoomeOBJECTS += _setjmp.o
365d9d9091SRichard LoweSRCS += sha1-x86_64.S
37ff5d4039SToomas SoomeOBJECTS += sha1-x86_64.o
38ff5d4039SToomas Soome
398c653870SToomas SoomeSRCS += $(SASRC)/x86/hypervisor.c
408c653870SToomas SoomeOBJECTS += hypervisor.o
418c653870SToomas Soome
425d9d9091SRichard LoweCLEANFILES += sha1-x86_64.S sha1-x86_64.s
43199767f8SToomas Soome
44ff5d4039SToomas Soomepics/%.o: $(SASRC)/amd64/%.S
45ff5d4039SToomas Soome	$(COMPILE.S) -o $@ $<
46199767f8SToomas Soome
478c653870SToomas Soomepics/%.o: $(SASRC)/x86/%.c
488c653870SToomas Soome	$(COMPILE.c) -o $@ $<
498c653870SToomas Soome
5022028508SToomas Soomeinclude $(BOOTSRC)/Makefile.lib
5183b4671eSToomas Soome
52ff5d4039SToomas SoomeFRC:
53