1# 2# This file and its contents are supplied under the terms of the 3# Common Development and Distribution License ("CDDL"), version 1.0. 4# You may only use this file in accordance with the terms of version 5# 1.0 of the CDDL. 6# 7# A full copy of the text of the CDDL should have accompanied this 8# source. A copy of the CDDL is also available via the Internet at 9# http://www.illumos.org/license/CDDL. 10# 11 12# 13# Copyright 2025 Oxide Computer Company 14# 15 16include ../Makefile.lib 17 18HDRS = libi2c.h 19HDRDIR = common 20 21# 22# Verify all major ioctl types that don't use embedded pointers. 23# 24TYPECHECK_LIB = libi2c.so.1 25TYPELIST = \ 26 ui2c_ctrl_nprops_t \ 27 ui2c_prop_info_t \ 28 ui2c_prop_t \ 29 ui2c_dev_rem_t \ 30 ui2c_port_addr_info_t \ 31 ui2c_port_info_t \ 32 ui2c_dev_info_t \ 33 ui2c_mux_info_t 34 35SUBDIRS = $(MACH) 36$(BUILD64)SUBDIRS += $(MACH64) 37 38all := TARGET = all 39clean := TARGET = clean 40clobber := TARGET = clobber 41install := TARGET = install 42 43.KEEP_STATE: 44 45all clean clobber install: $(SUBDIRS) 46 47install: install_h $(SUBDIRS) 48 49install_h: $(ROOTHDRS) 50 51check: $(CHECKHDRS) $(TYPECHECK) 52 53$(SUBDIRS): FRC 54 @cd $@; pwd; $(MAKE) $(TARGET) 55 56FRC: 57 58include ../Makefile.targ 59