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