xref: /illumos-gate/usr/src/test/nvme-tests/tests/libnvme/Makefile (revision f5f0964ce91892f7482efc86903b0ec7c7b6ba66)
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
16PROGS = \
17	bad-req \
18	bad-req-nsmgmt \
19	ctrl-disc \
20	format \
21	info-roundtrip \
22	missing-field \
23	missing-field-destruct \
24	need-write-lock \
25	ns-cap \
26	ns-disc \
27	ns-info \
28	ns-lifecycle \
29	ns-max \
30	pev \
31	sctostr
32
33#
34# These are programs that are only used as part of pre-checks for the
35# destructive tests.
36#
37PROGS64 = \
38	check-destruct.64 \
39	device-empty.64 \
40	device-reset.64
41
42COMMON_SRCS = libnvme_test_common.c
43TESTDIR = libnvme
44
45include $(SRC)/test/nvme-tests/Makefile.com
46
47LDLIBS += -lnvme
48LDLIBS64 += -lnvme
49
50bad-req.32 := LDLIBS += -lumem
51bad-req.64 := LDLIBS64 += -lumem
52bad-req-nsmgmt.32 := LDLIBS += -lumem
53bad-req-nsmgmt.64 := LDLIBS64 += -lumem
54
55ctrl-disc.32 := LDLIBS += -ldevinfo -lumem
56ctrl-disc.64 := LDLIBS64 += -ldevinfo -lumem
57
58format.32 := LDLIBS += -ldevinfo
59format.64 := LDLIBS64 += -ldevinfo
60
61ns-disc.32 := LDLIBS += -lumem
62ns-disc.64 := LDLIBS64 += -lumem
63
64ns-info.32 := LDLIBS += -lumem
65ns-info.64 := LDLIBS64 += -lumem
66
67check-destruct.64 := LDLIBS64 += -lpcidb
68