xref: /titanic_44/usr/src/cmd/scsi/smp/Makefile.com (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
1ac88567aSHyon Kim#
2ac88567aSHyon Kim# CDDL HEADER START
3ac88567aSHyon Kim#
4ac88567aSHyon Kim# The contents of this file are subject to the terms of the
5ac88567aSHyon Kim# Common Development and Distribution License (the "License").
6ac88567aSHyon Kim# You may not use this file except in compliance with the License.
7ac88567aSHyon Kim#
8ac88567aSHyon Kim# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9ac88567aSHyon Kim# or http://www.opensolaris.org/os/licensing.
10ac88567aSHyon Kim# See the License for the specific language governing permissions
11ac88567aSHyon Kim# and limitations under the License.
12ac88567aSHyon Kim#
13ac88567aSHyon Kim# When distributing Covered Code, include this CDDL HEADER in each
14ac88567aSHyon Kim# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15ac88567aSHyon Kim# If applicable, add the following below this CDDL HEADER, with the
16ac88567aSHyon Kim# fields enclosed by brackets "[]" replaced with your own identifying
17ac88567aSHyon Kim# information: Portions Copyright [yyyy] [name of copyright owner]
18ac88567aSHyon Kim#
19ac88567aSHyon Kim# CDDL HEADER END
20ac88567aSHyon Kim#
21ac88567aSHyon Kim
22ac88567aSHyon Kim#
23ac88567aSHyon Kim# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
24ac88567aSHyon Kim#
25ac88567aSHyon Kim
26ac88567aSHyon Kim.KEEP_STATE:
27ac88567aSHyon Kim.SUFFIXES:
28ac88567aSHyon Kim
29ac88567aSHyon KimPROG = smp
30ac88567aSHyon KimSRCS = $(PROG:%=../common/%.c)
31ac88567aSHyon KimOBJS = $(PROG:%=%.o)
32ac88567aSHyon Kim
33ac88567aSHyon Kiminclude ../../../Makefile.cmd
34ac88567aSHyon Kim
35ac88567aSHyon KimROOTLIBSCSI = $(ROOT)/usr/lib/scsi
36ac88567aSHyon KimROOTPROG = $(ROOTLIBSCSI)/$(PROG)
37ac88567aSHyon Kim
38ac88567aSHyon Kim$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
39ac88567aSHyon KimCPPFLAGS += -I. -I../common
40ac88567aSHyon KimCFLAGS += $(CTF_FLAGS) $(CCVERBOSE) $(XSTRCONST)
41ac88567aSHyon KimLDLIBS += -L$(ROOT)/usr/lib/scsi -lsmp
42ac88567aSHyon KimLDFLAGS += -R/usr/lib/scsi
43ac88567aSHyon Kim
44*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable
45*7014882cSRichard Lowe
46ac88567aSHyon Kimall: $(PROG)
47ac88567aSHyon Kim
48ac88567aSHyon Kim$(PROG): $(OBJS)
49ac88567aSHyon Kim	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
50ac88567aSHyon Kim	$(CTFMERGE) -L VERSION -o $@ $(OBJS)
51ac88567aSHyon Kim	$(POST_PROCESS)
52ac88567aSHyon Kim
53ac88567aSHyon Kim%.o: ../common/%.c
54ac88567aSHyon Kim	$(COMPILE.c) $<
55ac88567aSHyon Kim	$(CTFCONVERT_O)
56ac88567aSHyon Kim
57ac88567aSHyon Kimclean:
58ac88567aSHyon Kim	$(RM) $(OBJS)
59ac88567aSHyon Kim
60ac88567aSHyon Kimlint: lint_SRCS
61ac88567aSHyon Kim
62ac88567aSHyon Kim$(ROOTLIBSCSI)/%: %
63ac88567aSHyon Kim	$(INS.file)
64ac88567aSHyon Kim
65ac88567aSHyon Kiminstall_h:
66ac88567aSHyon Kim
67ac88567aSHyon Kiminstall: all $(ROOTPROG)
68ac88567aSHyon Kim
69ac88567aSHyon Kiminclude ../../../Makefile.targ
70