xref: /illumos-gate/usr/src/test/os-tests/tests/sockopt/Makefile (revision e8d3efa1c56e5f2b5368600a2baeb7b1d54a07f8)
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 2026 Oxide Computer Company
14#
15
16PROGS = \
17	v4mapped
18
19ROOTOPTDIR = $(ROOT)/opt/os-tests/tests
20ROOTOPTSOCKOPT = $(ROOTOPTDIR)/sockopt
21ROOTOPTPROGS = $(PROGS:%=$(ROOTOPTSOCKOPT)/%)
22
23include $(SRC)/cmd/Makefile.cmd
24include $(SRC)/cmd/Makefile.cmd.64
25include $(SRC)/cmd/Makefile.ctf
26
27CSTD = $(CSTD_GNU17)
28CTF_MODE = link
29LDLIBS += -lsocket
30CPPFLAGS += -D_XOPEN_SOURCE=700 -D__EXTENSIONS__
31
32.KEEP_STATE:
33
34all: $(PROGS)
35
36install: $(ROOTOPTPROGS)
37
38clean:
39	$(RM) *.o
40
41$(ROOTOPTPROGS): $(PROGS) $(ROOTOPTSOCKOPT)
42
43$(ROOTOPTDIR):
44	$(INS.dir)
45
46$(ROOTOPTSOCKOPT): $(ROOTOPTDIR)
47	$(INS.dir)
48
49$(ROOTOPTSOCKOPT)/%: %
50	$(INS.file)
51
52clobber: clean
53	$(RM) $(PROGS)
54
55FRC:
56