Print this page
12312 fix unused lib dependencies
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/cmd-inet/usr.sbin/in.routed/Makefile
+++ new/usr/src/cmd/cmd-inet/usr.sbin/in.routed/Makefile
1 1 #
2 2 #
3 3 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
4 4 # Use is subject to license terms.
5 5 #
6 -# Copyright (c) 2018, Joyent, Inc.
6 +# Copyright 2020 Joyent, Inc.
7 7
8 8 ROUTEDPROG= in.routed
9 9 ROUTEDOBJS= common.o if.o input.o main.o output.o parms.o radix.o \
10 10 rdisc.o table.o trace.o
11 11 ROUTEDSRCS= $(ROUTEDOBJS:.o=.c)
12 12 RTQUERYPROG= rtquery
13 13 RTQUERYOBJS= common.o rtquery.o
14 14 RTQUERYSRCS= $(RTQUERYOBJS:.o=.c)
15 15 POFILEOBJS= $(ROUTEDOBJS) $(RTQUERYOBJS)
16 16
17 17 PROG= $(ROUTEDPROG) $(RTQUERYPROG)
18 18 SRCS= $(ROUTEDSRCS) $(RTQUERYSRCS)
19 19
20 20 MANIFEST= route.xml
21 21 SVCMETHOD= svc-route
22 22
23 23 include ../../../Makefile.cmd
24 24
25 25 ROOTMANIFESTDIR= $(ROOTSVCNETWORKROUTING)
26 26
27 27 #
28 28 # in.routed uses ancillary data features available through
29 29 # the Open Group's Networking Services standard. The following
30 30 # pre-processor definitions enable these features.
31 31 #
32 32 _D_XOPEN_EXTN = -D_XOPEN_SOURCE=500 -D__EXTENSIONS__
33 33
34 34 # Turning on __EXTENSIONS__ breaks lint, and we need __EXTENSIONS__.
35 35 # This is really a lint problem, so around the breakage.
↓ open down ↓ |
19 lines elided |
↑ open up ↑ |
36 36 LINTFLAGS += -erroff=E_FUNC_DECL_VAR_ARG2 -erroff=E_INCONS_VAL_TYPE_DECL2 \
37 37 -erroff=E_INCONS_ARG_DECL2 -erroff=E_INCONS_ARG_USED2
38 38
39 39 CPPFLAGS += $(_D_XOPEN_EXTN)
40 40 CFLAGS += $(CCVERBOSE)
41 41 CERRWARN += -_gcc=-Wno-parentheses
42 42 CERRWARN += $(CNOWARN_UNINIT)
43 43 # not linted
44 44 SMATCH=off
45 45
46 -LDLIBS += -lxnet -lmd -lsocket
46 +LDLIBS += -lxnet -lmd
47 47 CLEAN_FILES += $(ROUTEDOBJS) $(RTQUERYOBJS)
48 48 CLOBBERFILES += $(ROUTEDPROG) $(RTQUERYPROG)
49 49 #
50 50 # Message catalog
51 51 #
52 52 POFILE= in.routed.po
53 53 POFILES= $(POFILEOBJS:.o=.po)
54 54 #
55 55 $(ROUTEDPROG):= LDLIBS += -lkstat
56 56 lint := LDLIBS += -lkstat
57 57
58 58 # This needs to be done because of SPARC/x86 differences. On x86,
59 59 # double has required alignment of only 4 bytes, but on SPARC it's 8
60 60 # bytes. This means that sockaddr_in can be casted to
61 61 # sockaddr_storage without complaint on x86, but requires a
62 62 # suppression directive on SPARC.
63 63 LINTFLAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
64 64
65 65 CTFCONVERT_HOOK = && $(CTFCONVERT_O)
66 66 CTFMERGE_HOOK = && $(CTFMERGE) -L VERSION -o $@ $(ROUTEDOBJS)
67 67 $(ROUTEDOBJS) := CFLAGS += $(CTF_FLAGS)
68 68 $(RTQUERYOBJS) := CFLAGS += $(CTF_FLAGS)
69 69
70 70 .KEEP_STATE:
71 71
72 72 .PARALLEL: $(ROUTEDPROG) $(RTQUERYOBJS)
73 73
74 74 all: $(PROG)
75 75
76 76 $(POFILE): $(POFILES)
77 77 $(RM) $@
78 78 cat $(POFILES) > $@
79 79
80 80 $(ROUTEDPROG): $(ROUTEDOBJS)
81 81 $(LINK.c) -o $@ $(ROUTEDOBJS) $(LDLIBS) $(CTFMERGE_HOOK)
82 82 $(POST_PROCESS)
83 83
84 84 $(RTQUERYPROG): $(RTQUERYOBJS)
85 85 $(LINK.c) -o $@ $(RTQUERYOBJS) $(LDLIBS) -lresolv $(CTFMERGE_HOOK)
86 86 $(POST_PROCESS)
87 87
88 88 lint:
89 89 $(LINT.c) $(ROUTEDSRCS) $(LDLIBS)
90 90 $(LINT.c) $(RTQUERYSRCS) $(LDLIBS)
91 91
92 92 install: all $(ROOTUSRSBINPROG) $(ROOTMANIFEST) $(ROOTSVCMETHOD)
93 93
94 94 check: $(CHKMANIFEST)
95 95
96 96 clean:
97 97 $(RM) $(CLEAN_FILES)
98 98
99 99 include ../../../Makefile.targ
↓ open down ↓ |
43 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX