xref: /titanic_52/usr/src/cmd/stmfproxy/aluaadm/Makefile (revision 450396635f70344c58b6b1e4db38cf17ff34445c)
1*45039663SJohn Forte#
2*45039663SJohn Forte# CDDL HEADER START
3*45039663SJohn Forte#
4*45039663SJohn Forte# The contents of this file are subject to the terms of the
5*45039663SJohn Forte# Common Development and Distribution License (the "License").
6*45039663SJohn Forte# You may not use this file except in compliance with the License.
7*45039663SJohn Forte#
8*45039663SJohn Forte# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*45039663SJohn Forte# or http://www.opensolaris.org/os/licensing.
10*45039663SJohn Forte# See the License for the specific language governing permissions
11*45039663SJohn Forte# and limitations under the License.
12*45039663SJohn Forte#
13*45039663SJohn Forte# When distributing Covered Code, include this CDDL HEADER in each
14*45039663SJohn Forte# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*45039663SJohn Forte# If applicable, add the following below this CDDL HEADER, with the
16*45039663SJohn Forte# fields enclosed by brackets "[]" replaced with your own identifying
17*45039663SJohn Forte# information: Portions Copyright [yyyy] [name of copyright owner]
18*45039663SJohn Forte#
19*45039663SJohn Forte# CDDL HEADER END
20*45039663SJohn Forte#
21*45039663SJohn Forte#
22*45039663SJohn Forte# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23*45039663SJohn Forte# Use is subject to license terms.
24*45039663SJohn Forte#
25*45039663SJohn Forte#
26*45039663SJohn Forte# cmd/iscsid/Makefile
27*45039663SJohn Forte#
28*45039663SJohn Forte
29*45039663SJohn FortePROG	= aluaadm
30*45039663SJohn Forte
31*45039663SJohn Forteinclude ../../Makefile.cmd
32*45039663SJohn Forte
33*45039663SJohn ForteCOMMONBASE = ../../../common
34*45039663SJohn Forte
35*45039663SJohn ForteDEMOBINFILES = \
36*45039663SJohn Forte	$(PROG)
37*45039663SJohn Forte
38*45039663SJohn ForteROOTDEMODIR	= $(ROOT)/usr/demo/comstar
39*45039663SJohn ForteROOTDEMOBINDIR	= $(ROOTDEMODIR)/bin
40*45039663SJohn ForteROOTDEMOFILES = $(DEMOFILES:%=$(ROOTDEMODIR)/%)
41*45039663SJohn ForteROOTDEMOBINFILES = $(DEMOBINFILES:%=$(ROOTDEMOBINDIR)/%)
42*45039663SJohn Forte
43*45039663SJohn ForteLOCAL_OBJS =	aluaadm.o
44*45039663SJohn ForteLOCAL_SRCS =	$(LOCAL_OBJS:%.o=%.c)
45*45039663SJohn ForteCOMMON_OBJS =	cmdparse.o
46*45039663SJohn ForteCOMMON_SRCS =	$(COMMON_OBJS:%.o=$(COMMONBASE)/cmdparse/%.c)
47*45039663SJohn ForteOBJS =		$(LOCAL_OBJS) $(COMMON_OBJS)
48*45039663SJohn ForteSRCS =		$(LOCAL_SRCS) $(COMMON_SRCS)
49*45039663SJohn Forte
50*45039663SJohn ForteCPPFLAGS += -I. -I$(COMMONBASE)/cmdparse
51*45039663SJohn ForteLDLIBS += -lstmf
52*45039663SJohn Forte
53*45039663SJohn Forte.KEEP_STATE:
54*45039663SJohn Forte
55*45039663SJohn Forteall:	$(PROG)
56*45039663SJohn Forte
57*45039663SJohn Forte$(PROG): $(OBJS)
58*45039663SJohn Forte	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
59*45039663SJohn Forte	$(POST_PROCESS)
60*45039663SJohn Forte
61*45039663SJohn Forteclean:
62*45039663SJohn Forte	$(RM) $(OBJS)
63*45039663SJohn Forte
64*45039663SJohn Forteinstall: all $(ROOTDEMOBINFILES)
65*45039663SJohn Forte
66*45039663SJohn Forte$(ROOTDEMODIR) $(ROOTDEMOBINDIR):
67*45039663SJohn Forte	$(INS.dir)
68*45039663SJohn Forte
69*45039663SJohn Forte$(ROOTDEMODIR)/% $(ROOTDEMOBINDIR)/% : %
70*45039663SJohn Forte	$(INS.file)
71*45039663SJohn Forte
72*45039663SJohn Forte$(ROOTDEMOBINFILES): $(ROOTDEMOBINDIR)
73*45039663SJohn Forte
74*45039663SJohn Fortecmdparse.o: $(COMMONBASE)/cmdparse/cmdparse.c
75*45039663SJohn Forte	    $(COMPILE.c) -o $@ $(COMMONBASE)/cmdparse/cmdparse.c
76*45039663SJohn Forte	    $(POST_PROCESS_O)
77*45039663SJohn Forte
78*45039663SJohn Fortelint:	lint_SRCS
79*45039663SJohn Forte
80*45039663SJohn Forteinclude ../../Makefile.targ
81