Print this page
11506 smatch resync
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/svc/configd/Makefile
+++ new/usr/src/cmd/svc/configd/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 #
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
↓ open down ↓ |
16 lines elided |
↑ open up ↑ |
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 25 # Copyright 2015 RackTop Systems.
26 26 #
27 +# Copyright 2019 Joyent, Inc.
28 +#
27 29
28 30 MYPROG = svc.configd
29 31 MYOBJS = \
30 32 backend.o \
31 33 configd.o \
32 34 client.o \
33 35 file_object.o \
34 36 maindoor.o \
35 37 object.o \
36 38 rc_node.o \
37 39 snapshot.o
38 40
39 41 PROG = $(MYPROG)
40 42 OBJS = $(MYOBJS)
41 43
42 44 SRCS = $(MYOBJS:%.o=%.c)
43 45
44 46 include ../../Makefile.cmd
45 47 include ../../Makefile.ctf
46 48
47 49 NATIVE_BUILD=$(POUND_SIGN)
48 50 $(NATIVE_BUILD)PROG = $(MYPROG:%=%-native)
49 51 $(NATIVE_BUILD)OBJS = $(MYOBJS:%.o=%-native.o)
50 52
51 53 ROOTCMDDIR= $(ROOT)/lib/svc/bin
52 54
↓ open down ↓ |
16 lines elided |
↑ open up ↑ |
53 55 MYCPPFLAGS = -I. -I../common -I../../../common/svc \
54 56 -I$(ROOT)/usr/include/sqlite-sys -D_REENTRANT
55 57 CPPFLAGS += $(MYCPPFLAGS)
56 58 CFLAGS += $(CCVERBOSE)
57 59 CERRWARN += -_gcc=-Wno-parentheses
58 60 CERRWARN += -_gcc=-Wno-type-limits
59 61 CERRWARN += -_gcc=-Wno-unused-label
60 62 CERRWARN += -_gcc=-Wno-unused-variable
61 63 CERRWARN += -_gcc=-Wno-unused-function
62 64 CERRWARN += -_gcc=-Wno-uninitialized
65 +
66 +# strange false positive
67 +SMOFF += free
68 +
63 69 MYLDLIBS = -lumem -luutil
64 70 LDLIBS += -lsecdb -lbsm $(MYLDLIBS)
65 -LINTFLAGS += -errtags -erroff=E_BAD_FORMAT_ARG_TYPE2 -erroff=E_NAME_DEF_NOT_USED2
66 71
67 72 CLOBBERFILES += $(MYPROG:%=%-native)
68 73
69 74 LIBUUTIL = $(SRC)/lib/libuutil
70 75 LIBSCF = $(SRC)/lib/libscf
71 76
72 77 SCRIPTFILE = restore_repository
73 78 ROOTSCRIPTFILE = $(ROOTCMDDIR)/$(SCRIPTFILE)
74 79
75 80 #
76 81 # Native variant (used in ../seed)
77 82 #
78 83 $(NATIVE_BUILD)CC = $(NATIVECC)
79 84 $(NATIVE_BUILD)LD = $(NATIVELD)
80 85 $(NATIVE_BUILD)CFLAGS = $(NATIVE_CFLAGS)
81 86 $(NATIVE_BUILD)CPPFLAGS = $(MYCPPFLAGS) -I$(LIBUUTIL)/common -I$(LIBSCF)/inc
82 87 $(NATIVE_BUILD)CPPFLAGS += -DNATIVE_BUILD
83 88 $(NATIVE_BUILD)LDFLAGS =
84 89 $(NATIVE_BUILD)LDLIBS = -L$(ADJUNCT_PROTO)/usr/lib -R$(ADJUNCT_PROTO)/usr/lib \
85 90 -L$(LIBUUTIL)/native -R $(LIBUUTIL)/native $(MYLDLIBS)
86 91
87 92 DIRMODE = 0755
88 93 FILEMODE = 0555
89 94
90 95 OBJSQLITE =
91 96 LIBSQLITE = -lsqlite-sys
92 97 $(NATIVE_BUILD)OBJSQLITE = $(ROOT)/lib/libsqlite-native.o
93 98 $(NATIVE_BUILD)LIBSQLITE =
94 99
95 100 OBJS += $(OBJSQLITE)
96 101 LDLIBS += $(LIBSQLITE)
97 102
98 103 install := TARGET = install
99 104 clobber := TARGET = clobber
100 105
101 106 .KEEP_STATE:
102 107 .PARALLEL: $(MYOBJS) $(MYOBJS:%.o=%-native.o)
103 108
104 109 all: $(PROG)
105 110
106 111 native: FRC
107 112 @cd $(LIBUUTIL)/native; pwd; $(MAKE) $(MFLAGS) install
108 113 @NATIVE_BUILD= $(MAKE) $(MFLAGS) all
109 114
110 115 $(PROG): $(OBJS)
111 116 $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
112 117 $(POST_PROCESS)
113 118
114 119 %-native.o: %.c
115 120 $(COMPILE.c) -o $@ $<
116 121 $(POST_PROCESS_O)
117 122
↓ open down ↓ |
42 lines elided |
↑ open up ↑ |
118 123 $(ROOTCMDDIR)/%: %.sh
119 124 $(INS.rename)
120 125
121 126 install: all $(ROOTCMD) $(ROOTVARSADMFILE) $(ROOTSCRIPTFILE)
122 127
123 128 clean: FRC
124 129 $(RM) $(MYOBJS) $(MYOBJS:%.o=%-native.o)
125 130
126 131 clobber:
127 132
128 -lint: lint_SRCS
129 -
130 -lint_SRCS:
131 -
132 133 include ../../Makefile.targ
133 134
134 135 FRC:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX