xref: /illumos-gate/usr/src/test/os-tests/tests/secure_getenv/Makefile (revision 7216809591be497087c98047f2a145b1dcc5873d)
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 = secure_getenv checker
17
18ROOTOPTDIR = $(ROOT)/opt/os-tests/tests
19ROOTOPTTEST = $(ROOTOPTDIR)/secure_getenv
20ROOTOPTPROGS =	$(PROGS:%=$(ROOTOPTTEST)/%)
21
22include $(SRC)/cmd/Makefile.cmd
23include $(SRC)/cmd/Makefile.cmd.64
24include $(SRC)/cmd/Makefile.ctf
25
26CSTD = $(CSTD_GNU17)
27CPPFLAGS += -D_REENTRANT
28CTF_MODE = link
29
30.KEEP_STATE:
31
32all: $(PROGS)
33
34install: $(ROOTOPTPROGS)
35
36$(ROOTOPTPROGS): $(PROGS) $(ROOTOPTTEST)
37
38$(ROOTOPTDIR):
39	$(INS.dir)
40
41$(ROOTOPTTEST): $(ROOTOPTDIR)
42	$(INS.dir)
43
44$(ROOTOPTTEST)/%: %
45	$(INS.file)
46
47clean:
48
49clobber: clean
50	$(RM) $(PROGS)
51