Print this page
8699 Want NIC transceiver visibility (fix lint)
| Split |
Close |
| Expand all |
| Collapse all |
--- old/usr/src/test/util-tests/tests/libsff/Makefile
+++ new/usr/src/test/util-tests/tests/libsff/Makefile
1 1 #
2 2 # This file and its contents are supplied under the terms of the
3 3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 4 # You may only use this file in accordance with the terms of version
5 5 # 1.0 of the CDDL.
6 6 #
7 7 # A full copy of the text of the CDDL should have accompanied this
8 8 # source. A copy of the CDDL is also available via the Internet at
9 9 # http://www.illumos.org/license/CDDL.
10 10 #
11 11
12 12 #
13 13 # Copyright (c) 2017, Joyent, Inc.
14 14 #
15 15
16 16 include $(SRC)/Makefile.master
17 17
18 18 ROOTOPTPKG = $(ROOT)/opt/util-tests
19 19 TESTDIR = $(ROOTOPTPKG)/tests/libsff
20 20
21 21 DIFF_PROGS = \
22 22 libsff_8472 \
23 23 libsff_8636_diag \
24 24 libsff_8636_extspec \
25 25 libsff_8636_tech \
26 26 libsff_8636_temp \
27 27 libsff_br \
28 28 libsff_conn \
29 29 libsff_compliance \
30 30 libsff_enc \
31 31 libsff_ident \
32 32 libsff_lengths \
33 33 libsff_opts \
|
↓ open down ↓ |
33 lines elided |
↑ open up ↑ |
34 34 libsff_wave
35 35
36 36 ERR_PROGS = \
37 37 libsff_efault \
38 38 libsff_einval
39 39
40 40 PROGS = $(DIFF_PROGS) \
41 41 $(ERR_PROGS) \
42 42 libsff_strings
43 43
44 +LINTS = $(PROGS:%=%.ln)
45 +
44 46 SCRIPTS = libsff
45 47
46 48 include $(SRC)/cmd/Makefile.cmd
47 49 include $(SRC)/test/Makefile.com
48 50
49 51 CMDS = $(PROGS:%=$(TESTDIR)/%) $(SCRIPTS:%=$(TESTDIR)/%)
50 52 OUTFILES = $(DIFF_PROGS:%=$(TESTDIR)/%.out)
51 53 $(CMDS) := FILEMODE = 0555
52 54 $(OUTFILES) := FILEMODE = 0444
53 55
54 56 CPPFLAGS += -I$(SRC)/lib/libsff/common
55 57
56 58 #
57 59 # Different tests require different sets of libraries. If we try and use
58 60 # the same set, we'll get guidance errors from ld.
59 61 #
60 62 $(ERR_PROGS) := LDLIBS += -lsff
61 63 $(DIFF_PROGS) := LDLIBS += -lsff -lnvpair
62 64 libsff_strings := LDLIBS += -lsff -lnvpair
65 +$(ERR_PROGS).ln := LDLIBS += -lsff
66 +$(DIFF_PROGS).ln := LDLIBS += -lsff -lnvpair
67 +libsff_strings.ln := LDLIBS += -lsff -lnvpair
63 68
64 69 all: $(PROGS)
65 70
66 71 install: all $(CMDS) $(OUTFILES)
67 72
68 -lint: lint_SRCS
73 +lint: $(LINTS)
69 74
75 +%.ln: %.c
76 + $(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 $< $(LDLIBS)
77 +
70 78 clobber: clean
71 - -$(RM) $(PROGS)
79 + -$(RM) $(PROGS) $(LINTS)
72 80
73 81 clean:
74 82
75 83 $(CMDS): $(TESTDIR) $(PROG)
76 84
77 85 $(TESTDIR):
78 86 $(INS.dir)
79 87
80 88 $(TESTDIR)/%: %
81 89 $(INS.file)
82 90
83 91 $(TESTDIR)/%: %.ksh
84 92 $(INS.rename)
85 93
86 94 %: %.c
87 95 $(LINK.c) -o $@ $< $(LDLIBS)
88 96 $(POST_PROCESS)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX