xref: /illumos-gate/usr/src/lib/libnvme/Makefile (revision 1edba515a3484e0f74b638b203d462b3112ac84d)
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 2024 Oxide Computer Company
14#
15
16include ../Makefile.lib
17
18HDRS = libnvme.h
19HDRDIR = common
20
21#
22# Most of the types that we use to talk to the kernel have embedded pointers or
23# sizes in them. For the ones that should be agnostic, verify that here.
24#
25TYPECHECK_LIB =	libnvme.so.1
26TYPELIST = \
27	nvme_ioctl_ctrl_info_t	\
28	nvme_ioctl_common_t	\
29	nvme_ioctl_format_t	\
30	nvme_ioctl_fw_commit_t	\
31	nvme_ioctl_lock_t	\
32	nvme_ioctl_unlock_t
33
34SUBDIRS = $(MACH)
35$(BUILD64)SUBDIRS += $(MACH64)
36
37all := TARGET = all
38clean := TARGET = clean
39clobber := TARGET = clobber
40install := TARGET = install
41
42.KEEP_STATE:
43
44all clean clobber install: $(SUBDIRS)
45
46install: install_h $(SUBDIRS)
47
48install_h: $(ROOTHDRS)
49
50check: $(CHECKHDRS) $(TYPECHECK)
51
52$(SUBDIRS): FRC
53	@cd $@; pwd; $(MAKE) $(TARGET)
54
55FRC:
56
57include ../Makefile.targ
58