Print this page
10080 smatch Makefile changes for usr/src/cmd
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/cmd-inet/usr.lib/ilbd/Makefile
+++ new/usr/src/cmd/cmd-inet/usr.lib/ilbd/Makefile
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
↓ open down ↓ |
12 lines elided |
↑ open up ↑ |
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 # Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
22 22 #
23 +# Copyright (c) 2018, Joyent, Inc.
23 24
24 25 ILBD= ilbd
25 26 PROG= $(ILBD)
26 27 MANIFEST= ilbd.xml
27 28
28 29 ILBD_OBJS= ilbd_main.o ilbd_support.o ilbd_sg.o ilbd_rules.o ilbd_hc.o \
29 30 ilbd_nat.o ilbd_scf.o
30 31 ILBD_SRCS= $(ILBD_OBJS:%.o=%.c)
31 32 HDRS= ilbd.h
32 33
33 34 LIB_INC= $(SRC)/lib/libilb/common
34 35
35 36 OBJS= $(ILBD_OBJS)
36 37 SRCS= $(ILBD_SRCS)
37 38
38 39 ILBSUBDIRS= ilb
39 40
40 41 include ../../../Makefile.cmd
41 42 include ../../../Makefile.ctf
42 43 include ../../Makefile.cmd-inet
43 44
44 45 ROOTMANIFESTDIR= $(ROOTSVCNETWORK)/loadbalancer
45 46
↓ open down ↓ |
13 lines elided |
↑ open up ↑ |
46 47 CHECKHDRS= $(HDRS:%.h=%.check)
47 48
48 49 CPPFLAGS += -D_FILE_OFFSET_BITS=64 -I$(CMDINETCOMMONDIR) -D_REENTRANT
49 50 CPPFLAGS += -I$(LIB_INC)
50 51 CPPFLAGS += -I$(SRC)/uts/common
51 52
52 53 CERRWARN += -_gcc=-Wno-switch
53 54 CERRWARN += -_gcc=-Wno-uninitialized
54 55 CERRWARN += -_gcc=-Wno-unused-label
55 56
57 +# not linted
58 +SMATCH=off
59 +
56 60 CSTD = $(CSTD_GNU99)
57 61
58 62 # I18n
59 63 POFILE = $(ILBD).po
60 64 POFILES = $(ILBD_SRCS:%.c=%.po)
61 65
62 66 all:= TARGET= all
63 67 install:= TARGET= install
64 68 clean:= TARGET= clean
65 69 clobber:= TARGET= clobber
66 70 lint:= TARGET= lint
67 71
68 72
69 73 LDLIBS += -lcmdutils -lsocket -lsecdb -lnsl -lilb -lscf -linetutil -lbsm
70 74
71 75 .KEEP_STATE:
72 76
73 77 all: $(PROG)
74 78
75 79 $(ILBD): $(OBJS)
76 80 $(LINK.c) $(OBJS) -o $@ $(LDLIBS) $(CTFMERGE_HOOK)
77 81 $(POST_PROCESS)
78 82
79 83 include ../Makefile.lib
80 84
81 85 install: all $(ROOTLIBINETPROG) $(ETCILBDFILES) $(ROOTMANIFEST)
82 86
83 87 check: $(CHKMANIFEST) $(CHECKHDRS)
84 88
85 89 clean:
86 90 $(RM) $(OBJS)
87 91
88 92 lint:
89 93 $(LINT.c) $(ILBD_SRCS) $(LDLIBS)
90 94
91 95 $(POFILE): $(POFILES)
92 96 $(RM) $@
93 97 $(CAT) $(POFILES) > $@
94 98
95 99 all install clean clobber lint: $(ILBSUBDIRS)
96 100
97 101 include ../../../Makefile.targ
98 102
99 103 $(ILBSUBDIRS): FRC
100 104 @cd $@; pwd; $(MAKE) $(TARGET)
101 105
102 106 FRC:
↓ open down ↓ |
37 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX