7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21 #
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
24 #
25 # Copyright 2015 RackTop Systems.
26 #
27
28 MYPROG = svc.configd
29 MYOBJS = \
30 backend.o \
31 configd.o \
32 client.o \
33 file_object.o \
34 maindoor.o \
35 object.o \
36 rc_node.o \
37 snapshot.o
38
39 PROG = $(MYPROG)
40 OBJS = $(MYOBJS)
41
42 SRCS = $(MYOBJS:%.o=%.c)
43
44 include ../../Makefile.cmd
45 include ../../Makefile.ctf
46
47 NATIVE_BUILD=$(POUND_SIGN)
48 $(NATIVE_BUILD)PROG = $(MYPROG:%=%-native)
49 $(NATIVE_BUILD)OBJS = $(MYOBJS:%.o=%-native.o)
50
51 ROOTCMDDIR= $(ROOT)/lib/svc/bin
52
53 MYCPPFLAGS = -I. -I../common -I../../../common/svc \
54 -I$(ROOT)/usr/include/sqlite-sys -D_REENTRANT
55 CPPFLAGS += $(MYCPPFLAGS)
56 CFLAGS += $(CCVERBOSE)
57 CERRWARN += -_gcc=-Wno-parentheses
58 CERRWARN += -_gcc=-Wno-type-limits
59 CERRWARN += -_gcc=-Wno-unused-label
60 CERRWARN += -_gcc=-Wno-unused-variable
61 CERRWARN += -_gcc=-Wno-unused-function
62 CERRWARN += -_gcc=-Wno-uninitialized
63 MYLDLIBS = -lumem -luutil
64 LDLIBS += -lsecdb -lbsm $(MYLDLIBS)
65 LINTFLAGS += -errtags -erroff=E_BAD_FORMAT_ARG_TYPE2 -erroff=E_NAME_DEF_NOT_USED2
66
67 CLOBBERFILES += $(MYPROG:%=%-native)
68
69 LIBUUTIL = $(SRC)/lib/libuutil
70 LIBSCF = $(SRC)/lib/libscf
71
72 SCRIPTFILE = restore_repository
73 ROOTSCRIPTFILE = $(ROOTCMDDIR)/$(SCRIPTFILE)
74
75 #
76 # Native variant (used in ../seed)
77 #
78 $(NATIVE_BUILD)CC = $(NATIVECC)
79 $(NATIVE_BUILD)LD = $(NATIVELD)
80 $(NATIVE_BUILD)CFLAGS = $(NATIVE_CFLAGS)
81 $(NATIVE_BUILD)CPPFLAGS = $(MYCPPFLAGS) -I$(LIBUUTIL)/common -I$(LIBSCF)/inc
82 $(NATIVE_BUILD)CPPFLAGS += -DNATIVE_BUILD
83 $(NATIVE_BUILD)LDFLAGS =
84 $(NATIVE_BUILD)LDLIBS = -L$(ADJUNCT_PROTO)/usr/lib -R$(ADJUNCT_PROTO)/usr/lib \
85 -L$(LIBUUTIL)/native -R $(LIBUUTIL)/native $(MYLDLIBS)
108 @NATIVE_BUILD= $(MAKE) $(MFLAGS) all
109
110 $(PROG): $(OBJS)
111 $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
112 $(POST_PROCESS)
113
114 %-native.o: %.c
115 $(COMPILE.c) -o $@ $<
116 $(POST_PROCESS_O)
117
118 $(ROOTCMDDIR)/%: %.sh
119 $(INS.rename)
120
121 install: all $(ROOTCMD) $(ROOTVARSADMFILE) $(ROOTSCRIPTFILE)
122
123 clean: FRC
124 $(RM) $(MYOBJS) $(MYOBJS:%.o=%-native.o)
125
126 clobber:
127
128 lint: lint_SRCS
129
130 lint_SRCS:
131
132 include ../../Makefile.targ
133
134 FRC:
|
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21 #
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
24 #
25 # Copyright 2015 RackTop Systems.
26 #
27 # Copyright 2019 Joyent, Inc.
28 #
29
30 MYPROG = svc.configd
31 MYOBJS = \
32 backend.o \
33 configd.o \
34 client.o \
35 file_object.o \
36 maindoor.o \
37 object.o \
38 rc_node.o \
39 snapshot.o
40
41 PROG = $(MYPROG)
42 OBJS = $(MYOBJS)
43
44 SRCS = $(MYOBJS:%.o=%.c)
45
46 include ../../Makefile.cmd
47 include ../../Makefile.ctf
48
49 NATIVE_BUILD=$(POUND_SIGN)
50 $(NATIVE_BUILD)PROG = $(MYPROG:%=%-native)
51 $(NATIVE_BUILD)OBJS = $(MYOBJS:%.o=%-native.o)
52
53 ROOTCMDDIR= $(ROOT)/lib/svc/bin
54
55 MYCPPFLAGS = -I. -I../common -I../../../common/svc \
56 -I$(ROOT)/usr/include/sqlite-sys -D_REENTRANT
57 CPPFLAGS += $(MYCPPFLAGS)
58 CFLAGS += $(CCVERBOSE)
59 CERRWARN += -_gcc=-Wno-parentheses
60 CERRWARN += -_gcc=-Wno-type-limits
61 CERRWARN += -_gcc=-Wno-unused-label
62 CERRWARN += -_gcc=-Wno-unused-variable
63 CERRWARN += -_gcc=-Wno-unused-function
64 CERRWARN += -_gcc=-Wno-uninitialized
65
66 # strange false positive
67 SMOFF += free
68
69 MYLDLIBS = -lumem -luutil
70 LDLIBS += -lsecdb -lbsm $(MYLDLIBS)
71
72 CLOBBERFILES += $(MYPROG:%=%-native)
73
74 LIBUUTIL = $(SRC)/lib/libuutil
75 LIBSCF = $(SRC)/lib/libscf
76
77 SCRIPTFILE = restore_repository
78 ROOTSCRIPTFILE = $(ROOTCMDDIR)/$(SCRIPTFILE)
79
80 #
81 # Native variant (used in ../seed)
82 #
83 $(NATIVE_BUILD)CC = $(NATIVECC)
84 $(NATIVE_BUILD)LD = $(NATIVELD)
85 $(NATIVE_BUILD)CFLAGS = $(NATIVE_CFLAGS)
86 $(NATIVE_BUILD)CPPFLAGS = $(MYCPPFLAGS) -I$(LIBUUTIL)/common -I$(LIBSCF)/inc
87 $(NATIVE_BUILD)CPPFLAGS += -DNATIVE_BUILD
88 $(NATIVE_BUILD)LDFLAGS =
89 $(NATIVE_BUILD)LDLIBS = -L$(ADJUNCT_PROTO)/usr/lib -R$(ADJUNCT_PROTO)/usr/lib \
90 -L$(LIBUUTIL)/native -R $(LIBUUTIL)/native $(MYLDLIBS)
113 @NATIVE_BUILD= $(MAKE) $(MFLAGS) all
114
115 $(PROG): $(OBJS)
116 $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
117 $(POST_PROCESS)
118
119 %-native.o: %.c
120 $(COMPILE.c) -o $@ $<
121 $(POST_PROCESS_O)
122
123 $(ROOTCMDDIR)/%: %.sh
124 $(INS.rename)
125
126 install: all $(ROOTCMD) $(ROOTVARSADMFILE) $(ROOTSCRIPTFILE)
127
128 clean: FRC
129 $(RM) $(MYOBJS) $(MYOBJS:%.o=%-native.o)
130
131 clobber:
132
133 include ../../Makefile.targ
134
135 FRC:
|