450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# CDDL HEADER START
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# The contents of this file are subject to the terms of the
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# Common Development and Distribution License (the "License").
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# You may not use this file except in compliance with the License.
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# or http://www.opensolaris.org/os/licensing.
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# See the License for the specific language governing permissions
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# and limitations under the License.
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# When distributing Covered Code, include this CDDL HEADER in each
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# If applicable, add the following below this CDDL HEADER, with the
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# fields enclosed by brackets "[]" replaced with your own identifying
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# information: Portions Copyright [yyyy] [name of copyright owner]
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# CDDL HEADER END
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# Use is subject to license terms.
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# cmd/iscsid/Makefile
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn FortePROG = aluaadm
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forteinclude ../../Makefile.cmd
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteCOMMONBASE = ../../../common
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteDEMOBINFILES = \
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte $(PROG)
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteROOTDEMODIR = $(ROOT)/usr/demo/comstar
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteROOTDEMOBINDIR = $(ROOTDEMODIR)/bin
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteROOTDEMOFILES = $(DEMOFILES:%=$(ROOTDEMODIR)/%)
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteROOTDEMOBINFILES = $(DEMOBINFILES:%=$(ROOTDEMOBINDIR)/%)
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteLOCAL_OBJS = aluaadm.o
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteLOCAL_SRCS = $(LOCAL_OBJS:%.o=%.c)
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteCOMMON_OBJS = cmdparse.o
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteCOMMON_SRCS = $(COMMON_OBJS:%.o=$(COMMONBASE)/cmdparse/%.c)
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteOBJS = $(LOCAL_OBJS) $(COMMON_OBJS)
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteSRCS = $(LOCAL_SRCS) $(COMMON_SRCS)
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteCPPFLAGS += -I. -I$(COMMONBASE)/cmdparse
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteLDLIBS += -lstmf
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte.KEEP_STATE:
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forteall: $(PROG)
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte$(PROG): $(OBJS)
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte $(POST_PROCESS)
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forteclean:
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte $(RM) $(OBJS)
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forteinstall: all $(ROOTDEMOBINFILES)
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte$(ROOTDEMODIR) $(ROOTDEMOBINDIR):
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte $(INS.dir)
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte$(ROOTDEMODIR)/% $(ROOTDEMOBINDIR)/% : %
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte $(INS.file)
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte$(ROOTDEMOBINFILES): $(ROOTDEMOBINDIR)
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Fortecmdparse.o: $(COMMONBASE)/cmdparse/cmdparse.c
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte $(COMPILE.c) -o $@ $(COMMONBASE)/cmdparse/cmdparse.c
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte $(POST_PROCESS_O)
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Fortelint: lint_SRCS
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forteinclude ../../Makefile.targ