xref: /titanic_52/usr/src/test/os-tests/tests/sigqueue/Makefile (revision 5e989a96186a37eb528fb7bb4d28a150874ec799)
1*5e989a96SDavid Höppner#
2*5e989a96SDavid Höppner# This file and its contents are supplied under the terms of the
3*5e989a96SDavid Höppner# Common Development and Distribution License ("CDDL"), version 1.0.
4*5e989a96SDavid Höppner# You may only use this file in accordance with the terms of version
5*5e989a96SDavid Höppner# 1.0 of the CDDL.
6*5e989a96SDavid Höppner#
7*5e989a96SDavid Höppner# A full copy of the text of the CDDL should have accompanied this
8*5e989a96SDavid Höppner# source.  A copy of the CDDL is also available via the Internet at
9*5e989a96SDavid Höppner# http://www.illumos.org/license/CDDL.
10*5e989a96SDavid Höppner#
11*5e989a96SDavid Höppner
12*5e989a96SDavid Höppner#
13*5e989a96SDavid Höppner# Copyright (c) 2012 by Delphix. All rights reserved.
14*5e989a96SDavid Höppner# Copyright (c) 2013 David Hoeppner. All rights reserved.
15*5e989a96SDavid Höppner#
16*5e989a96SDavid Höppner
17*5e989a96SDavid Höppnerinclude $(SRC)/cmd/Makefile.cmd
18*5e989a96SDavid Höppnerinclude $(SRC)/test/Makefile.com
19*5e989a96SDavid Höppner
20*5e989a96SDavid HöppnerPROG = sigqueue_queue_size
21*5e989a96SDavid HöppnerOBJS = $(PROG:%=%.o)
22*5e989a96SDavid HöppnerSRCS = $(OBJS:%.o=%.c)
23*5e989a96SDavid Höppner
24*5e989a96SDavid HöppnerC99MODE = -xc99=%all
25*5e989a96SDavid Höppner
26*5e989a96SDavid HöppnerROOTOPTPKG = $(ROOT)/opt/os-tests
27*5e989a96SDavid HöppnerTESTDIR = $(ROOTOPTPKG)/tests/sigqueue
28*5e989a96SDavid Höppner
29*5e989a96SDavid HöppnerCMDS = $(PROG:%=$(TESTDIR)/%)
30*5e989a96SDavid Höppner$(CMDS) := FILEMODE = 0555
31*5e989a96SDavid Höppner
32*5e989a96SDavid Höppnerall: $(PROG)
33*5e989a96SDavid Höppner
34*5e989a96SDavid Höppner$(PROG): $(OBJS)
35*5e989a96SDavid Höppner	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
36*5e989a96SDavid Höppner	$(POST_PROCESS)
37*5e989a96SDavid Höppner
38*5e989a96SDavid Höppner%.o: ../%.c
39*5e989a96SDavid Höppner	$(COMPILE.c) $<
40*5e989a96SDavid Höppner
41*5e989a96SDavid Höppnerinstall: all $(CMDS)
42*5e989a96SDavid Höppner
43*5e989a96SDavid Höppnerlint: lint_SRCS
44*5e989a96SDavid Höppner
45*5e989a96SDavid Höppnerclobber: clean
46*5e989a96SDavid Höppner	-$(RM) $(PROG)
47*5e989a96SDavid Höppner
48*5e989a96SDavid Höppnerclean:
49*5e989a96SDavid Höppner	-$(RM) $(OBJS)
50*5e989a96SDavid Höppner
51*5e989a96SDavid Höppner$(CMDS): $(TESTDIR) $(PROG)
52*5e989a96SDavid Höppner
53*5e989a96SDavid Höppner$(TESTDIR):
54*5e989a96SDavid Höppner	$(INS.dir)
55*5e989a96SDavid Höppner
56*5e989a96SDavid Höppner$(TESTDIR)/%: %
57*5e989a96SDavid Höppner	$(INS.file)
58