Makefile revision 24fe0b3bf671e123467ce1df0b67cadd3614c8e4
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# CDDL HEADER START
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# The contents of this file are subject to the terms of the
03831d35f7499c87d51205817c93e9a8d42c4baestevel# Common Development and Distribution License (the "License").
03831d35f7499c87d51205817c93e9a8d42c4baestevel# You may not use this file except in compliance with the License.
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
03831d35f7499c87d51205817c93e9a8d42c4baestevel# or http://www.opensolaris.org/os/licensing.
03831d35f7499c87d51205817c93e9a8d42c4baestevel# See the License for the specific language governing permissions
03831d35f7499c87d51205817c93e9a8d42c4baestevel# and limitations under the License.
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# When distributing Covered Code, include this CDDL HEADER in each
03831d35f7499c87d51205817c93e9a8d42c4baestevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
03831d35f7499c87d51205817c93e9a8d42c4baestevel# If applicable, add the following below this CDDL HEADER, with the
03831d35f7499c87d51205817c93e9a8d42c4baestevel# fields enclosed by brackets "[]" replaced with your own identifying
03831d35f7499c87d51205817c93e9a8d42c4baestevel# information: Portions Copyright [yyyy] [name of copyright owner]
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# CDDL HEADER END
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
03831d35f7499c87d51205817c93e9a8d42c4baestevel# Use is subject to license terms.
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# Makefile definitions for Domain Configuration Server (DCS)
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelMANIFEST= dcs.xml
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelinclude ../../../Makefile.cmd
03831d35f7499c87d51205817c93e9a8d42c4baestevelinclude ../../../../Makefile.psm
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelPROG= dcs
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelCLASS= 32
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelPLATFORM= sun4u
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelSVCMETHOD= svc-$(PROG)
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# Set CONCURR_MODE to one of the following:
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# MULTI_THR - multiple threads with _no_ i18n support*
03831d35f7499c87d51205817c93e9a8d42c4baestevel# MULTI_PROC - multiple processes with i18n support
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# * Currently, there is no per thread locale support in Solaris.
03831d35f7499c87d51205817c93e9a8d42c4baestevel# Thus, multiple processes is the only way to fully support i18n.
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevelCONCURR_MODE= MULTI_PROC
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelSRCS= dcs.c \
03831d35f7499c87d51205817c93e9a8d42c4baestevel dcs_ses.c \
03831d35f7499c87d51205817c93e9a8d42c4baestevel dcs_msg.c \
03831d35f7499c87d51205817c93e9a8d42c4baestevel rdr_messages.c \
03831d35f7499c87d51205817c93e9a8d42c4baestevel rsrc_info.c \
03831d35f7499c87d51205817c93e9a8d42c4baestevel ri_init.c
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelHDRS= dcs.h \
03831d35f7499c87d51205817c93e9a8d42c4baestevel rdr_messages.h \
03831d35f7499c87d51205817c93e9a8d42c4baestevel rdr_param_types.h \
03831d35f7499c87d51205817c93e9a8d42c4baestevel remote_cfg.h \
03831d35f7499c87d51205817c93e9a8d42c4baestevel rsrc_info.h \
03831d35f7499c87d51205817c93e9a8d42c4baestevel rsrc_info_impl.h \
03831d35f7499c87d51205817c93e9a8d42c4baestevel $(USR_PSM_ISYS_DIR)/sbd_ioctl.h
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelOBJS= $(SRCS:%.c=%.o)
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelLINT_SRCS= $(SRCS)
03831d35f7499c87d51205817c93e9a8d42c4baestevelLINT_FILES= $(LINT_SRCS:%.c=%.ln)
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelPOFILES= dcs_msg.po
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel$(ROOTLIBPROG) := FILEMODE= 0755
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelROOTMANIFESTDIR= $(ROOTSVCPLATFORMSUN4U)
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# FLAGS:
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevelMULTI_THR_FLAGS= -D_REENTRANT -DDCS_MULTI_THREAD
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelMULTI_PROC_FLAGS= -D__EXTENSIONS__
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelCPPFLAGS= -I$(USR_PSM_INCL_DIR) $(CPPFLAGS.master) \
03831d35f7499c87d51205817c93e9a8d42c4baestevel $($(CONCURR_MODE)_FLAGS)
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelLINT_FLAGS= -c -Nlevel=4 -Ncheck $($(CONCURR_MODE)_FLAGS)
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelXGETFLAGS += -a -s -x $(PROG).xcl
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# LIBRARIES:
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevelMULTI_THR_LIBS= -D_REENTRANT
03831d35f7499c87d51205817c93e9a8d42c4baestevel
MULTI_PROC_LIBS=
LDLIBS += $($(CONCURR_MODE)_LIBS) \
-lsocket \
-lcfgadm \
-ldevinfo \
-lrcm \
-lnvpair \
-lkstat
.KEEP_STATE:
all: $(PROG)
$(PROG): $(OBJS) $(HDRS)
$(CC) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS)
$(POST_PROCESS)
install: all .WAIT $(ROOTLIBPROG) $(ROOTMANIFEST) $(ROOTSVCMETHOD)
check: $(CHKMANIFEST)
lint:
$(LINT) $(LINT_FLAGS) $(CPPFLAGS) $(LINT_SRCS)
clean:
$(RM) $(PROG) $(OBJS) $(LINT_FILES) $(POFILES) $(POFILE) core
$(POFILE): $(POFILES)
$(RM) $(POFILE)
cat $(POFILES) > $(POFILE)
include ../../../Makefile.targ
include ../../../../Makefile.psm.targ