Makefile revision b6805bf78d2bbbeeaea8909a05623587b42d58b3
4077N/A#
4077N/A# CDDL HEADER START
4077N/A#
4077N/A# The contents of this file are subject to the terms of the
4077N/A# Common Development and Distribution License (the "License").
4077N/A# You may not use this file except in compliance with the License.
4077N/A#
4077N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4077N/A# or http://www.opensolaris.org/os/licensing.
4077N/A# See the License for the specific language governing permissions
4077N/A# and limitations under the License.
4077N/A#
4077N/A# When distributing Covered Code, include this CDDL HEADER in each
4077N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4077N/A# If applicable, add the following below this CDDL HEADER, with the
4077N/A# fields enclosed by brackets "[]" replaced with your own identifying
4077N/A# information: Portions Copyright [yyyy] [name of copyright owner]
4077N/A#
4077N/A# CDDL HEADER END
4077N/A#
4077N/A#
4077N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5680N/A# Use is subject to license terms.
4077N/A#
5714N/A# Makefile definitions for Domain Configuration Server (DCS)
5680N/A#
5714N/A
5714N/AMANIFEST= dcs.xml
4077N/A
4077N/Ainclude ../../../Makefile.cmd
4077N/Ainclude ../../../../Makefile.psm
5714N/A
4077N/APROG= dcs
4077N/A
5714N/ACLASS= 32
4077N/A
4077N/APLATFORM= sun4u
5714N/A
4077N/ASVCMETHOD= svc-$(PROG)
5680N/A
5680N/A#
5680N/A# Set CONCURR_MODE to one of the following:
4077N/A#
4077N/A# MULTI_THR - multiple threads with _no_ i18n support*
4077N/A# MULTI_PROC - multiple processes with i18n support
4077N/A#
4077N/A# * Currently, there is no per thread locale support in Solaris.
4077N/A# Thus, multiple processes is the only way to fully support i18n.
4077N/A#
4077N/ACONCURR_MODE= MULTI_PROC
4077N/A
4077N/ASRCS= dcs.c \
4077N/A dcs_ses.c \
4077N/A dcs_msg.c \
4077N/A rdr_messages.c \
4077N/A rsrc_info.c \
4077N/A ri_init.c
4077N/A
4077N/AHDRS= dcs.h \
4077N/A rdr_messages.h \
4077N/A rdr_param_types.h \
4077N/A remote_cfg.h \
5680N/A rsrc_info.h \
4077N/A rsrc_info_impl.h \
4077N/A $(USR_PSM_ISYS_DIR)/sbd_ioctl.h
5680N/A
5680N/AOBJS= $(SRCS:%.c=%.o)
4077N/A
4077N/ALINT_SRCS= $(SRCS)
4077N/ALINT_FILES= $(LINT_SRCS:%.c=%.ln)
4077N/A
4077N/APOFILES= dcs_msg.po
4077N/A
4077N/A$(ROOTLIBPROG) := FILEMODE= 0755
5714N/A
4077N/AROOTMANIFESTDIR= $(ROOTSVCPLATFORMSUN4U)
4077N/A
4077N/A#
4077N/A# FLAGS:
4077N/A#
MULTI_THR_FLAGS= -D_REENTRANT -DDCS_MULTI_THREAD
MULTI_PROC_FLAGS= -D__EXTENSIONS__
CPPFLAGS= -I$(USR_PSM_INCL_DIR) $(CPPFLAGS.master) \
$($(CONCURR_MODE)_FLAGS)
LINT_FLAGS= -c -Nlevel=4 -Ncheck $($(CONCURR_MODE)_FLAGS)
XGETFLAGS += -a -s -x $(PROG).xcl
CERRWARN += -_gcc=-Wno-parentheses
CERRWARN += -_gcc=-Wno-uninitialized
#
# LIBRARIES:
#
MULTI_THR_LIBS= -D_REENTRANT
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)
$(POFILE): $(POFILES)
$(RM) $(POFILE)
cat $(POFILES) > $(POFILE)
include ../../../Makefile.targ
include ../../../../Makefile.psm.targ