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