xref: /illumos-gate/usr/src/uts/intel/viorand/Makefile (revision b91bbe3818919523e866b0d622e2dd56874530a7)
1*b91bbe38SToomas Soome#
2*b91bbe38SToomas Soome# This file and its contents are supplied under the terms of the
3*b91bbe38SToomas Soome# Common Development and Distribution License ("CDDL"), version 1.0.
4*b91bbe38SToomas Soome# You may only use this file in accordance with the terms of version
5*b91bbe38SToomas Soome# 1.0 of the CDDL.
6*b91bbe38SToomas Soome#
7*b91bbe38SToomas Soome# A full copy of the text of the CDDL should have accompanied this
8*b91bbe38SToomas Soome# source.  A copy of the CDDL is also available via the Internet at
9*b91bbe38SToomas Soome# http://www.illumos.org/license/CDDL.
10*b91bbe38SToomas Soome#
11*b91bbe38SToomas Soome
12*b91bbe38SToomas Soome#
13*b91bbe38SToomas Soome# Copyright 2023 Toomas Soome <tsoome@me.com>
14*b91bbe38SToomas Soome#
15*b91bbe38SToomas Soome
16*b91bbe38SToomas Soome#
17*b91bbe38SToomas Soome#	Path to the base of the uts directory tree (usually /usr/src/uts).
18*b91bbe38SToomas Soome#
19*b91bbe38SToomas SoomeUTSBASE	= ../..
20*b91bbe38SToomas SoomeCOM_DIR = $(COMMONBASE)/crypto
21*b91bbe38SToomas Soome
22*b91bbe38SToomas Soome#
23*b91bbe38SToomas Soome#	Define the module and object file sets.
24*b91bbe38SToomas Soome#
25*b91bbe38SToomas SoomeMODULE		= viorand
26*b91bbe38SToomas SoomeOBJECTS		= $(VIORANDPROV_OBJS:%=$(OBJS_DIR)/%)
27*b91bbe38SToomas SoomeROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
28*b91bbe38SToomas Soome
29*b91bbe38SToomas Soome#
30*b91bbe38SToomas Soome#	Include common rules.
31*b91bbe38SToomas Soome#
32*b91bbe38SToomas Soomeinclude $(UTSBASE)/intel/Makefile.intel
33*b91bbe38SToomas Soome
34*b91bbe38SToomas Soome#
35*b91bbe38SToomas Soome#	Define targets
36*b91bbe38SToomas Soome#
37*b91bbe38SToomas SoomeALL_TARGET	= $(BINARY)
38*b91bbe38SToomas SoomeINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
39*b91bbe38SToomas Soome
40*b91bbe38SToomas SoomeCFLAGS		+= -I$(COM_DIR) -I$(UTSBASE)/common/io/virtio
41*b91bbe38SToomas Soome
42*b91bbe38SToomas Soome#
43*b91bbe38SToomas Soome# Linkage dependencies
44*b91bbe38SToomas Soome#
45*b91bbe38SToomas SoomeLDFLAGS += -N misc/kcf -N misc/virtio
46*b91bbe38SToomas Soome
47*b91bbe38SToomas Soome#
48*b91bbe38SToomas Soome#	Default build targets.
49*b91bbe38SToomas Soome#
50*b91bbe38SToomas Soome.KEEP_STATE:
51*b91bbe38SToomas Soome
52*b91bbe38SToomas Soomedef:		$(DEF_DEPS)
53*b91bbe38SToomas Soome
54*b91bbe38SToomas Soomeall:		$(ALL_DEPS)
55*b91bbe38SToomas Soome
56*b91bbe38SToomas Soomeclean:		$(CLEAN_DEPS)
57*b91bbe38SToomas Soome
58*b91bbe38SToomas Soomeclobber:	$(CLOBBER_DEPS)
59*b91bbe38SToomas Soome
60*b91bbe38SToomas Soomeinstall:	$(INSTALL_DEPS)
61*b91bbe38SToomas Soome
62*b91bbe38SToomas Soome#
63*b91bbe38SToomas Soome#	Include common targets.
64*b91bbe38SToomas Soome#
65*b91bbe38SToomas Soomeinclude $(UTSBASE)/intel/Makefile.targ
66