xref: /titanic_51/usr/src/test/libc-tests/tests/strerror/Makefile (revision b599bd937c305a895426e8c412ca920ce7824850)
1*b599bd93SRobert Mustacchi#
2*b599bd93SRobert Mustacchi# This file and its contents are supplied under the terms of the
3*b599bd93SRobert Mustacchi# Common Development and Distribution License ("CDDL"), version 1.0.
4*b599bd93SRobert Mustacchi# You may only use this file in accordance with the terms of version
5*b599bd93SRobert Mustacchi# 1.0 of the CDDL.
6*b599bd93SRobert Mustacchi#
7*b599bd93SRobert Mustacchi# A full copy of the text of the CDDL should have accompanied this
8*b599bd93SRobert Mustacchi# source.  A copy of the CDDL is also available via the Internet at
9*b599bd93SRobert Mustacchi# http://www.illumos.org/license/CDDL.
10*b599bd93SRobert Mustacchi#
11*b599bd93SRobert Mustacchi
12*b599bd93SRobert Mustacchi#
13*b599bd93SRobert Mustacchi# Copyright 2015 Joyent, Inc.
14*b599bd93SRobert Mustacchi#
15*b599bd93SRobert Mustacchi
16*b599bd93SRobert Mustacchiinclude $(SRC)/Makefile.master
17*b599bd93SRobert Mustacchi
18*b599bd93SRobert MustacchiROOTOPTPKG = $(ROOT)/opt/libc-tests
19*b599bd93SRobert MustacchiTESTDIR = $(ROOTOPTPKG)/tests
20*b599bd93SRobert Mustacchi
21*b599bd93SRobert MustacchiPROGS = strerror
22*b599bd93SRobert Mustacchi
23*b599bd93SRobert Mustacchiinclude $(SRC)/cmd/Makefile.cmd
24*b599bd93SRobert Mustacchiinclude $(SRC)/test/Makefile.com
25*b599bd93SRobert Mustacchi
26*b599bd93SRobert MustacchiCMDS = $(PROGS:%=$(TESTDIR)/%)
27*b599bd93SRobert Mustacchi$(CMDS) := FILEMODE = 0555
28*b599bd93SRobert Mustacchi
29*b599bd93SRobert Mustacchiall: $(PROGS)
30*b599bd93SRobert Mustacchi
31*b599bd93SRobert Mustacchiinstall: all $(CMDS)
32*b599bd93SRobert Mustacchi
33*b599bd93SRobert Mustacchilint:
34*b599bd93SRobert Mustacchi
35*b599bd93SRobert Mustacchiclobber: clean
36*b599bd93SRobert Mustacchi	-$(RM) $(PROGS)
37*b599bd93SRobert Mustacchi
38*b599bd93SRobert Mustacchiclean:
39*b599bd93SRobert Mustacchi	-$(RM) *.o
40*b599bd93SRobert Mustacchi
41*b599bd93SRobert Mustacchi$(CMDS): $(TESTDIR) $(PROGS)
42*b599bd93SRobert Mustacchi
43*b599bd93SRobert Mustacchi
44*b599bd93SRobert Mustacchi$(TESTDIR):
45*b599bd93SRobert Mustacchi	$(INS.dir)
46*b599bd93SRobert Mustacchi
47*b599bd93SRobert Mustacchi$(TESTDIR)/%: %
48*b599bd93SRobert Mustacchi	$(INS.file)
49*b599bd93SRobert Mustacchi
50*b599bd93SRobert Mustacchi$(TESTDIR)/%: %
51*b599bd93SRobert Mustacchi	$(INS.file)
52