xref: /titanic_41/usr/src/test/util-tests/tests/libnvpair_json/Makefile (revision ef26a926e54f934431066685d069cbf73bba1534)
1*ef26a926SJoshua M. Clulow#
2*ef26a926SJoshua M. Clulow# This file and its contents are supplied under the terms of the
3*ef26a926SJoshua M. Clulow# Common Development and Distribution License ("CDDL"), version 1.0.
4*ef26a926SJoshua M. Clulow# You may only use this file in accordance with the terms of version
5*ef26a926SJoshua M. Clulow# 1.0 of the CDDL.
6*ef26a926SJoshua M. Clulow#
7*ef26a926SJoshua M. Clulow# A full copy of the text of the CDDL should have accompanied this
8*ef26a926SJoshua M. Clulow# source.  A copy of the CDDL is also available via the Internet at
9*ef26a926SJoshua M. Clulow# http://www.illumos.org/license/CDDL.
10*ef26a926SJoshua M. Clulow#
11*ef26a926SJoshua M. Clulow
12*ef26a926SJoshua M. Clulow#
13*ef26a926SJoshua M. Clulow# Copyright (c) 2014 Joyent, Inc.
14*ef26a926SJoshua M. Clulow#
15*ef26a926SJoshua M. Clulow
16*ef26a926SJoshua M. Clulowinclude $(SRC)/Makefile.master
17*ef26a926SJoshua M. Clulow
18*ef26a926SJoshua M. ClulowROOTOPTPKG = $(ROOT)/opt/util-tests
19*ef26a926SJoshua M. ClulowTESTDIR = $(ROOTOPTPKG)/tests/libnvpair_json
20*ef26a926SJoshua M. ClulowROOTBINDIR = $(ROOTOPTPKG)/bin
21*ef26a926SJoshua M. Clulow
22*ef26a926SJoshua M. ClulowPROG = print_json
23*ef26a926SJoshua M. Clulow
24*ef26a926SJoshua M. ClulowSCRIPTS = \
25*ef26a926SJoshua M. Clulow	json_00_blank \
26*ef26a926SJoshua M. Clulow	json_01_boolean \
27*ef26a926SJoshua M. Clulow	json_02_numbers \
28*ef26a926SJoshua M. Clulow	json_03_empty_arrays \
29*ef26a926SJoshua M. Clulow	json_04_number_arrays \
30*ef26a926SJoshua M. Clulow	json_05_strings \
31*ef26a926SJoshua M. Clulow	json_06_nested \
32*ef26a926SJoshua M. Clulow	json_07_nested_arrays \
33*ef26a926SJoshua M. Clulow	json_common
34*ef26a926SJoshua M. Clulow
35*ef26a926SJoshua M. Clulowinclude $(SRC)/cmd/Makefile.cmd
36*ef26a926SJoshua M. Clulowinclude $(SRC)/test/Makefile.com
37*ef26a926SJoshua M. Clulow
38*ef26a926SJoshua M. ClulowOBJS = $(PROG:%=%.o)
39*ef26a926SJoshua M. ClulowSRCS = $(OBJS:%.o=%.c)
40*ef26a926SJoshua M. Clulow
41*ef26a926SJoshua M. ClulowCMDS = $(PROG:%=$(ROOTBINDIR)/%) $(SCRIPTS:%=$(TESTDIR)/%)
42*ef26a926SJoshua M. Clulow$(CMDS) := FILEMODE = 0555
43*ef26a926SJoshua M. Clulow
44*ef26a926SJoshua M. ClulowLDLIBS += -lnvpair
45*ef26a926SJoshua M. Clulow
46*ef26a926SJoshua M. ClulowLINTFLAGS += -erroff=E_FUNC_ARG_UNUSED
47*ef26a926SJoshua M. Clulow
48*ef26a926SJoshua M. Clulowall: $(PROG)
49*ef26a926SJoshua M. Clulow
50*ef26a926SJoshua M. Clulow$(PROG): $(OBJS)
51*ef26a926SJoshua M. Clulow	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
52*ef26a926SJoshua M. Clulow	$(POST_PROCESS)
53*ef26a926SJoshua M. Clulow
54*ef26a926SJoshua M. Clulowinstall: all $(CMDS)
55*ef26a926SJoshua M. Clulow
56*ef26a926SJoshua M. Clulowlint: lint_SRCS
57*ef26a926SJoshua M. Clulow
58*ef26a926SJoshua M. Clulowclobber: clean
59*ef26a926SJoshua M. Clulow	-$(RM) $(PROG)
60*ef26a926SJoshua M. Clulow
61*ef26a926SJoshua M. Clulowclean:
62*ef26a926SJoshua M. Clulow	-$(RM) $(OBJS)
63*ef26a926SJoshua M. Clulow
64*ef26a926SJoshua M. Clulow$(CMDS): $(TESTDIR) $(PROG)
65*ef26a926SJoshua M. Clulow
66*ef26a926SJoshua M. Clulow$(ROOTBINDIR):
67*ef26a926SJoshua M. Clulow	$(INS.dir)
68*ef26a926SJoshua M. Clulow
69*ef26a926SJoshua M. Clulow$(ROOTBINDIR)/%: %
70*ef26a926SJoshua M. Clulow	$(INS.file)
71*ef26a926SJoshua M. Clulow
72*ef26a926SJoshua M. Clulow$(TESTDIR):
73*ef26a926SJoshua M. Clulow	$(INS.dir)
74*ef26a926SJoshua M. Clulow
75*ef26a926SJoshua M. Clulow$(TESTDIR)/%: %.ksh
76*ef26a926SJoshua M. Clulow	$(INS.rename)
77