Makefile revision 9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bb
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync#
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync# CDDL HEADER START
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync#
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync# The contents of this file are subject to the terms of the
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync# Common Development and Distribution License (the "License").
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync# You may not use this file except in compliance with the License.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync#
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync# or http://www.opensolaris.org/os/licensing.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync# See the License for the specific language governing permissions
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync# and limitations under the License.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync#
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync# When distributing Covered Code, include this CDDL HEADER in each
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync# If applicable, add the following below this CDDL HEADER, with the
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync# fields enclosed by brackets "[]" replaced with your own identifying
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync#
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync# CDDL HEADER END
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync#
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync#
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync# Use is subject to license terms.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync#
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync#
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncinclude ../Makefile.cmd
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncCOMMONBASE = ../../common
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncPROG = sasinfo
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncPRODUCT = $(PROG)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync$(ROOT_PROG_LINK) := FILEMODE = 0555
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncLOCAL_OBJS = sasinfo.o sasinfo-list.o printAttrs.o
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncCOMMON_OBJS = cmdparse.o
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncLOCAL_SRCS = $(LOCAL_OBJS:%.o=%.c)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncCOMMON_SRCS = $(COMMON_OBJS:%.o=$(COMMONBASE)/cmdparse/%.c)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncOBJS = $(LOCAL_OBJS) $(COMMON_OBJS)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncSRCS = $(LOCAL_SRCS) $(COMMON_SRCS)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncPOFILE = sasinfo_all.po
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncPOFILES = $(LOCAL_OBJS:%.o=%.po)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncLDLIBS += -lSMHBAAPI
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncINCS += -I.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncINCS += -I$(SRC)/lib/smhba/common
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncINCS += -I$(SRC)/lib/hbaapi/common
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncINCS += -I$(COMMONBASE)/cmdparse
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncCPPFLAGS += -D_LARGEFILE64_SOURCE=1 -D_REENTRANT $(INCS)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncLINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2
.KEEP_STATE:
all: $(PROG)
$(PROG): $(OBJS)
$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
$(POST_PROCESS)
cmdparse.o: $(COMMONBASE)/cmdparse/cmdparse.c
$(COMPILE.c) -o $@ $(COMMONBASE)/cmdparse/cmdparse.c
$(POST_PROCESS_O)
install: all $(ROOTUSRSBINPROG)
$(POFILE): $(POFILES)
$(RM) $@
cat $(POFILES) > $@
clean:
$(RM) $(OBJS)
lint: lint_SRCS
check: $(CHKMANIFEST)
include ../Makefile.targ