4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
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.
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]
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
25 # Makefile definitions for Domain Configuration Server (DCS)
30 include ..
/..
/..
/Makefile.cmd
31 include ..
/..
/..
/..
/Makefile.psm
39 SVCMETHOD
= svc-
$(PROG
)
42 # Set CONCURR_MODE to one of the following:
44 # MULTI_THR - multiple threads with _no_ i18n support*
45 # MULTI_PROC - multiple processes with i18n support
47 # * Currently, there is no per thread locale support in Solaris.
48 # Thus, multiple processes is the only way to fully support i18n.
50 CONCURR_MODE
= MULTI_PROC
65 $(USR_PSM_ISYS_DIR
)/sbd_ioctl.h
70 LINT_FILES
= $(LINT_SRCS
:%.c
=%.ln
)
74 $(ROOTLIBPROG
) := FILEMODE
= 0755
76 ROOTMANIFESTDIR
= $(ROOTSVCPLATFORMSUN4U
)
81 MULTI_THR_FLAGS
= -D_REENTRANT
-DDCS_MULTI_THREAD
83 MULTI_PROC_FLAGS
= -D__EXTENSIONS__
85 CPPFLAGS
= -I
$(USR_PSM_INCL_DIR
) $(CPPFLAGS.master
) \
86 $($(CONCURR_MODE
)_FLAGS
)
88 LINT_FLAGS
= -c
-Nlevel
=4 -Ncheck
$($(CONCURR_MODE
)_FLAGS
)
90 XGETFLAGS
+= -a
-s
-x
$(PROG
).xcl
92 CERRWARN
+= -_gcc
=-Wno-parentheses
93 CERRWARN
+= -_gcc
=-Wno-uninitialized
98 MULTI_THR_LIBS
= -D_REENTRANT
102 LDLIBS
+= $($(CONCURR_MODE
)_LIBS
) \
115 $(PROG
): $(OBJS
) $(HDRS
)
116 $(CC
) -o
$@
$(OBJS
) $(LDFLAGS
) $(LDLIBS
)
119 install: all .WAIT
$(ROOTLIBPROG
) $(ROOTMANIFEST
) $(ROOTSVCMETHOD
)
121 check: $(CHKMANIFEST
)
124 $(LINT
) $(LINT_FLAGS
) $(CPPFLAGS
) $(LINT_SRCS
)
127 $(RM
) $(PROG
) $(OBJS
) $(LINT_FILES
)
129 $(POFILE
): $(POFILES
)
131 cat
$(POFILES
) > $(POFILE
)
133 include ..
/..
/..
/Makefile.targ
134 include ..
/..
/..
/..
/Makefile.psm.targ