xref: /illumos-gate/usr/src/test/os-tests/tests/pf_key/Makefile (revision 32640292339b07090f10ce34d455f98711077343)
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 2017 Joyent, Inc.
14# Copyright 2022 MNX Cloud, Inc.
15#
16
17include $(SRC)/cmd/Makefile.cmd
18include $(SRC)/test/Makefile.com
19
20# Shell scripts...
21PROG =	15146 \
22	acquire-spray \
23	acquire-compare \
24	kmc-update
25
26# Binaries
27PROG +=	eacq-enabler \
28	kmc-updater
29
30ROOTOPTPKG = $(ROOT)/opt/os-tests
31TESTDIR = $(ROOTOPTPKG)/tests/pf_key
32
33CMDS = $(PROG:%=$(TESTDIR)/%)
34$(CMDS) := FILEMODE = 0555
35
36LDLIBS += -lsocket
37kmc-updater := LDLIBS += -lipsecutil
38
39all: $(PROG)
40
41install: all $(CMDS)
42
43lint:
44
45clobber: clean
46	-$(RM) $(PROG)
47
48clean:
49	-$(RM) $(CLEANFILES)
50
51$(CMDS): $(TESTDIR) $(PROG)
52
53$(TESTDIR):
54	$(INS.dir)
55
56$(TESTDIR)/%: %
57	$(INS.file)
58