0N/A#
2362N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
2362N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2362N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
0N/A#
2362N/A#
2362N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
2362N/A# Use is subject to license terms.
0N/A#
0N/A# Makefile definitions for Domain Configuration Server (DCS)
0N/A#
0N/A
0N/AMANIFEST= dcs.xml
0N/A
0N/Ainclude ../../../Makefile.cmd
0N/Ainclude ../../../../Makefile.psm
0N/A
0N/APROG= dcs
0N/A
0N/ACLASS= 32
0N/A
0N/APLATFORM= sun4u
0N/A
0N/ASVCMETHOD= svc-$(PROG)
0N/A
0N/A#
0N/A# Set CONCURR_MODE to one of the following:
0N/A#
0N/A# MULTI_THR - multiple threads with _no_ i18n support*
0N/A# MULTI_PROC - multiple processes with i18n support
0N/A#
0N/A# * Currently, there is no per thread locale support in Solaris.
0N/A# Thus, multiple processes is the only way to fully support i18n.
0N/A#
0N/ACONCURR_MODE= MULTI_PROC
0N/A
0N/ASRCS= dcs.c \
0N/A dcs_ses.c \
0N/A dcs_msg.c \
0N/A rdr_messages.c \
0N/A rsrc_info.c \
0N/A ri_init.c
0N/A
0N/AHDRS= dcs.h \
0N/A rdr_messages.h \
0N/A rdr_param_types.h \
0N/A remote_cfg.h \
0N/A rsrc_info.h \
0N/A rsrc_info_impl.h \
0N/A $(USR_PSM_ISYS_DIR)/sbd_ioctl.h
0N/A
0N/AOBJS= $(SRCS:%.c=%.o)
0N/A
0N/ALINT_SRCS= $(SRCS)
0N/ALINT_FILES= $(LINT_SRCS:%.c=%.ln)
0N/A
0N/APOFILES= dcs_msg.po
0N/A
0N/A$(ROOTLIBPROG) := FILEMODE= 0755
0N/A
0N/AROOTMANIFESTDIR= $(ROOTSVCPLATFORMSUN4U)
0N/A
0N/A#
0N/A# FLAGS:
0N/A#
0N/AMULTI_THR_FLAGS= -D_REENTRANT -DDCS_MULTI_THREAD
0N/A
0N/AMULTI_PROC_FLAGS= -D__EXTENSIONS__
0N/A
0N/ACPPFLAGS= -I$(USR_PSM_INCL_DIR) $(CPPFLAGS.master) \
0N/A $($(CONCURR_MODE)_FLAGS)
0N/A
0N/ALINT_FLAGS= -c -Nlevel=4 -Ncheck $($(CONCURR_MODE)_FLAGS)
0N/A
0N/AXGETFLAGS += -a -s -x $(PROG).xcl
0N/A
0N/ACERRWARN += -_gcc=-Wno-parentheses
0N/ACERRWARN += -_gcc=-Wno-uninitialized
0N/A
0N/A#
0N/A# LIBRARIES:
0N/A#
0N/AMULTI_THR_LIBS= -D_REENTRANT
0N/A
0N/AMULTI_PROC_LIBS=
0N/A
0N/ALDLIBS += $($(CONCURR_MODE)_LIBS) \
0N/A -lsocket \
0N/A -lcfgadm \
0N/A -ldevinfo \
0N/A -lrcm \
0N/A -lnvpair \
0N/A -lkstat
0N/A
0N/A.KEEP_STATE:
0N/A
0N/A
0N/Aall: $(PROG)
0N/A
0N/A$(PROG): $(OBJS) $(HDRS)
0N/A $(CC) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS)
0N/A $(POST_PROCESS)
0N/A
0N/Ainstall: all .WAIT $(ROOTLIBPROG) $(ROOTMANIFEST) $(ROOTSVCMETHOD)
0N/A
0N/Acheck: $(CHKMANIFEST)
0N/A
0N/Alint:
0N/A $(LINT) $(LINT_FLAGS) $(CPPFLAGS) $(LINT_SRCS)
0N/A
0N/Aclean:
0N/A $(RM) $(PROG) $(OBJS) $(LINT_FILES)
0N/A
0N/A$(POFILE): $(POFILES)
0N/A $(RM) $(POFILE)
0N/A cat $(POFILES) > $(POFILE)
0N/A
0N/Ainclude ../../../Makefile.targ
0N/Ainclude ../../../../Makefile.psm.targ
0N/A