xref: /illumos-gate/usr/src/uts/intel/i2csim/Makefile (revision 0cbe48189888d02563dba9c90132ac391ba233b6)
1*0cbe4818SRobert Mustacchi#
2*0cbe4818SRobert Mustacchi# This file and its contents are supplied under the terms of the
3*0cbe4818SRobert Mustacchi# Common Development and Distribution License ("CDDL"), version 1.0.
4*0cbe4818SRobert Mustacchi# You may only use this file in accordance with the terms of version
5*0cbe4818SRobert Mustacchi# 1.0 of the CDDL.
6*0cbe4818SRobert Mustacchi#
7*0cbe4818SRobert Mustacchi# A full copy of the text of the CDDL should have accompanied this
8*0cbe4818SRobert Mustacchi# source.  A copy of the CDDL is also available via the Internet at
9*0cbe4818SRobert Mustacchi# http://www.illumos.org/license/CDDL.
10*0cbe4818SRobert Mustacchi#
11*0cbe4818SRobert Mustacchi
12*0cbe4818SRobert Mustacchi#
13*0cbe4818SRobert Mustacchi# Copyright 2025 Oxide Computer Company
14*0cbe4818SRobert Mustacchi#
15*0cbe4818SRobert Mustacchi
16*0cbe4818SRobert MustacchiUTSBASE = ../..
17*0cbe4818SRobert Mustacchi
18*0cbe4818SRobert MustacchiMODULE		= i2csim
19*0cbe4818SRobert MustacchiOBJECTS		= $(I2CSIM_OBJS:%=$(OBJS_DIR)/%)
20*0cbe4818SRobert MustacchiROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
21*0cbe4818SRobert MustacchiCONF_SRCDIR	= $(UTSBASE)/common/io/i2c/ctrl/i2csim
22*0cbe4818SRobert Mustacchi
23*0cbe4818SRobert Mustacchiinclude $(UTSBASE)/intel/Makefile.intel
24*0cbe4818SRobert Mustacchi
25*0cbe4818SRobert MustacchiALL_TARGET	= $(BINARY) $(CONFMOD)
26*0cbe4818SRobert MustacchiINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
27*0cbe4818SRobert MustacchiLDFLAGS		+= -N drv/i2cnex
28*0cbe4818SRobert Mustacchi
29*0cbe4818SRobert Mustacchi.KEEP_STATE:
30*0cbe4818SRobert Mustacchi
31*0cbe4818SRobert Mustacchidef:		$(DEF_DEPS)
32*0cbe4818SRobert Mustacchi
33*0cbe4818SRobert Mustacchiall:		$(ALL_DEPS)
34*0cbe4818SRobert Mustacchi
35*0cbe4818SRobert Mustacchiclean:		$(CLEAN_DEPS)
36*0cbe4818SRobert Mustacchi
37*0cbe4818SRobert Mustacchiclobber:	$(CLOBBER_DEPS)
38*0cbe4818SRobert Mustacchi
39*0cbe4818SRobert Mustacchiinstall:	$(INSTALL_DEPS)
40*0cbe4818SRobert Mustacchi
41*0cbe4818SRobert Mustacchiinclude $(UTSBASE)/intel/Makefile.targ
42