xref: /illumos-gate/usr/src/boot/libsa/amd64/Makefile (revision 763f1f5f97e4c16840af2ced98915f0ed0f46616)
122028508SToomas Soome#
222028508SToomas Soome# This file and its contents are supplied under the terms of the
322028508SToomas Soome# Common Development and Distribution License ("CDDL"), version 1.0.
422028508SToomas Soome# You may only use this file in accordance with the terms of version
522028508SToomas Soome# 1.0 of the CDDL.
622028508SToomas Soome#
722028508SToomas Soome# A full copy of the text of the CDDL should have accompanied this
822028508SToomas Soome# source.  A copy of the CDDL is also available via the Internet at
922028508SToomas Soome# http://www.illumos.org/license/CDDL.
1022028508SToomas Soome#
1122028508SToomas Soome
1222028508SToomas Soome#
1322028508SToomas Soome# Copyright 2016 Toomas Soome <tsoome@me.com>
1422028508SToomas Soome# Copyright 2016 RackTop Systems.
1522028508SToomas Soome#
1622028508SToomas Soome
1722028508SToomas Soomeinclude $(SRC)/Makefile.master
1822028508SToomas Soome
1922028508SToomas SoomeMACHINE=	$(MACH64)
2022028508SToomas SoomeDYNLIB=		libsa_pics.a
2122028508SToomas Soome
2222028508SToomas Soomeall install:    $(DYNLIB)
2322028508SToomas Soome
2422028508SToomas Soomeinclude ../Makefile.com
2522028508SToomas 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
3022028508SToomas SoomeCFLAGS +=	-m64 $(CFLAGS64)
3122028508SToomas SoomeCCASFLAGS +=	-m64
3222028508SToomas Soome
3322028508SToomas Soome# _setjmp/_longjmp
3422028508SToomas SoomeSRCS += $(SASRC)/amd64/_setjmp.S
3522028508SToomas SoomeOBJECTS += _setjmp.o
365d9d9091SRichard LoweSRCS += sha1-x86_64.S
3722028508SToomas SoomeOBJECTS += sha1-x86_64.o
3822028508SToomas Soome
3922028508SToomas SoomeSRCS += $(SASRC)/x86/hypervisor.c
4022028508SToomas SoomeOBJECTS += hypervisor.o
4122028508SToomas Soome
425d9d9091SRichard LoweCLEANFILES += sha1-x86_64.S sha1-x86_64.s
4322028508SToomas Soome
4422028508SToomas Soomepics/%.o: $(SASRC)/amd64/%.S
4522028508SToomas Soome	$(COMPILE.S) -o $@ $<
4622028508SToomas Soome
4722028508SToomas Soomepics/%.o: $(SASRC)/x86/%.c
4822028508SToomas Soome	$(COMPILE.c) -o $@ $<
4922028508SToomas Soome
5022028508SToomas Soomeinclude $(BOOTSRC)/Makefile.lib
5122028508SToomas Soome
5222028508SToomas SoomeFRC:
53