Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim#
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim# CDDL HEADER START
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim#
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim# The contents of this file are subject to the terms of the
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim# Common Development and Distribution License (the "License").
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim# You may not use this file except in compliance with the License.
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim#
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim# or http://www.opensolaris.org/os/licensing.
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim# See the License for the specific language governing permissions
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim# and limitations under the License.
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim#
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim# When distributing Covered Code, include this CDDL HEADER in each
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim# If applicable, add the following below this CDDL HEADER, with the
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim# fields enclosed by brackets "[]" replaced with your own identifying
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim# information: Portions Copyright [yyyy] [name of copyright owner]
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim#
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim# CDDL HEADER END
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim#
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim#
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim# Use is subject to license terms.
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim#
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim#
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kiminclude ../Makefile.cmd
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon KimCOMMONBASE = ../../common
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon KimPROG = sasinfo
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon KimPRODUCT = $(PROG)
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim$(ROOT_PROG_LINK) := FILEMODE = 0555
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon KimLOCAL_OBJS = sasinfo.o sasinfo-list.o printAttrs.o
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon KimCOMMON_OBJS = cmdparse.o
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon KimLOCAL_SRCS = $(LOCAL_OBJS:%.o=%.c)
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon KimCOMMON_SRCS = $(COMMON_OBJS:%.o=$(COMMONBASE)/cmdparse/%.c)
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon KimOBJS = $(LOCAL_OBJS) $(COMMON_OBJS)
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon KimSRCS = $(LOCAL_SRCS) $(COMMON_SRCS)
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon KimPOFILE = sasinfo_all.po
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon KimPOFILES = $(LOCAL_OBJS:%.o=%.po)
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon KimLDLIBS += -lSMHBAAPI
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-unused-value
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon KimINCS += -I.
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon KimINCS += -I$(SRC)/lib/smhba/common
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon KimINCS += -I$(SRC)/lib/hbaapi/common
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon KimINCS += -I$(COMMONBASE)/cmdparse
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon KimCPPFLAGS += -D_LARGEFILE64_SOURCE=1 -D_REENTRANT $(INCS)
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon KimLINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim.KEEP_STATE:
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kimall: $(PROG)
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim$(PROG): $(OBJS)
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim $(POST_PROCESS)
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kimcmdparse.o: $(COMMONBASE)/cmdparse/cmdparse.c
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim $(COMPILE.c) -o $@ $(COMMONBASE)/cmdparse/cmdparse.c
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim $(POST_PROCESS_O)
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kiminstall: all $(ROOTUSRSBINPROG)
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim$(POFILE): $(POFILES)
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim $(RM) $@
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim cat $(POFILES) > $@
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kimclean:
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim $(RM) $(OBJS)
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kimlint: lint_SRCS
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kimcheck: $(CHKMANIFEST)
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kiminclude ../Makefile.targ