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) 20*22028508SToomas SoomeDYNLIB= libsa_pics.a 2183b4671eSToomas Soome 22ff5d4039SToomas Soomeall install: $(DYNLIB) 2383b4671eSToomas Soome 24199767f8SToomas Soomeinclude ../Makefile.com 25199767f8SToomas Soome 26411d06f4SToomas SoomeASFLAGS = $(amd64_AS_XARCH) -I$(SRC)/uts/common -D_ASM 2786fec011SToomas SoomeCFLAGS += -m64 $(CFLAGS64) 2886fec011SToomas SoomeCCASFLAGS += -m64 29199767f8SToomas Soome 30199767f8SToomas Soome# _setjmp/_longjmp 3186fec011SToomas SoomeSRCS += $(SASRC)/amd64/_setjmp.S 32ff5d4039SToomas SoomeOBJECTS += _setjmp.o 33411d06f4SToomas SoomeSRCS += sha1-x86_64.s 34ff5d4039SToomas SoomeOBJECTS += sha1-x86_64.o 35ff5d4039SToomas Soome 368c653870SToomas SoomeSRCS += $(SASRC)/x86/hypervisor.c 378c653870SToomas SoomeOBJECTS += hypervisor.o 388c653870SToomas Soome 39ff5d4039SToomas SoomeCLEANFILES += sha1-x86_64.s 40199767f8SToomas Soome 41ff5d4039SToomas Soomepics/%.o: $(SASRC)/amd64/%.S 42ff5d4039SToomas Soome $(COMPILE.S) -o $@ $< 43199767f8SToomas Soome 448c653870SToomas Soomepics/%.o: $(SASRC)/x86/%.c 458c653870SToomas Soome $(COMPILE.c) -o $@ $< 468c653870SToomas Soome 47*22028508SToomas Soomeinclude $(BOOTSRC)/Makefile.lib 4883b4671eSToomas Soome 49ff5d4039SToomas SoomeFRC: 50