xref: /illumos-gate/usr/src/lib/libktest/Makefile (revision 6e4a39cc9c0ca330a6d67580711b9a9d3c37df37)
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 = libktest.h
19HDRDIR = common
20
21# The 32-bit library is omitted for now.  This can be changed when the ktest
22# device gains 32-bit compatibility in its ioctl handlers.
23$(BUILD64)SUBDIRS += $(MACH64)
24CHECKHDRS =
25
26all := TARGET = all
27clean := TARGET = clean
28clobber := TARGET = clobber
29install := TARGET = install
30
31.KEEP_STATE:
32
33all clean clobber install: $(SUBDIRS)
34
35install: install_h $(SUBDIRS)
36
37install_h: $(ROOTHDRS)
38
39check: $(CHECKHDRS)
40
41$(SUBDIRS): FRC
42	@cd $@; pwd; $(MAKE) $(TARGET)
43
44FRC:
45
46include ../Makefile.targ
47