6 # You may not use this file except in compliance with the License.
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
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)
86
87 DIRMODE = 0755
88 FILEMODE = 0555
89
90 OBJSQLITE =
91 LIBSQLITE = -lsqlite-sys
92 $(NATIVE_BUILD)OBJSQLITE = $(ROOT)/lib/libsqlite-native.o
93 $(NATIVE_BUILD)LIBSQLITE =
94
95 OBJS += $(OBJSQLITE)
96 LDLIBS += $(LIBSQLITE)
97
98 install := TARGET = install
99 clobber := TARGET = clobber
100
101 .KEEP_STATE:
102 .PARALLEL: $(MYOBJS) $(MYOBJS:%.o=%-native.o)
103
104 all: $(PROG)
105
106 native: FRC
107 @cd $(LIBUUTIL)/native; pwd; $(MAKE) $(MFLAGS) install
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
|
6 # You may not use this file except in compliance with the License.
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 # Copyright 2017 Gary Mills
27 #
28
29 MYPROG = svc.configd
30 MYOBJS = \
31 backend.o \
32 configd.o \
33 client.o \
34 file_object.o \
35 maindoor.o \
36 object.o \
37 rc_node.o \
38 snapshot.o
39
40 PROG = $(MYPROG)
41 OBJS = $(MYOBJS)
42
43 SRCS = $(MYOBJS:%.o=%.c)
44
45 include ../../Makefile.cmd
46 include ../../Makefile.ctf
79 $(NATIVE_BUILD)CC = $(NATIVECC)
80 $(NATIVE_BUILD)LD = $(NATIVELD)
81 $(NATIVE_BUILD)CFLAGS = $(NATIVE_CFLAGS)
82 $(NATIVE_BUILD)CPPFLAGS = $(MYCPPFLAGS) -I$(LIBUUTIL)/common -I$(LIBSCF)/inc
83 $(NATIVE_BUILD)CPPFLAGS += -DNATIVE_BUILD
84 $(NATIVE_BUILD)LDFLAGS =
85 $(NATIVE_BUILD)LDLIBS = -L$(ADJUNCT_PROTO)/usr/lib -R$(ADJUNCT_PROTO)/usr/lib \
86 -L$(LIBUUTIL)/native -R $(LIBUUTIL)/native $(MYLDLIBS)
87
88 DIRMODE = 0755
89 FILEMODE = 0555
90
91 OBJSQLITE =
92 LIBSQLITE = -lsqlite-sys
93 $(NATIVE_BUILD)OBJSQLITE = $(ROOT)/lib/libsqlite-native.o
94 $(NATIVE_BUILD)LIBSQLITE =
95
96 OBJS += $(OBJSQLITE)
97 LDLIBS += $(LIBSQLITE)
98
99 # Suppress error for: event_id
100 rc_node-native.o := CERRWARN += -_gcc=-Wno-unused-but-set-variable
101
102 install := TARGET = install
103 clobber := TARGET = clobber
104
105 .KEEP_STATE:
106 .PARALLEL: $(MYOBJS) $(MYOBJS:%.o=%-native.o)
107
108 all: $(PROG)
109
110 native: FRC
111 @cd $(LIBUUTIL)/native; pwd; $(MAKE) $(MFLAGS) install
112 @NATIVE_BUILD= $(MAKE) $(MFLAGS) all
113
114 $(PROG): $(OBJS)
115 $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
116 $(POST_PROCESS)
117
118 %-native.o: %.c
119 $(COMPILE.c) -o $@ $<
120 $(POST_PROCESS_O)
121
|