xref: /titanic_52/usr/src/cmd/pcidr/Makefile (revision 2a9459bdd821c1cf59590a7a9069ac9c591e8a6b)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26#ident	"%Z%%M%	%I%	%E% SMI"
27#
28# cmd/pcidr/Makefile
29#
30
31.PARALLEL:
32#############################################################################
33
34PROGOBJECTS = pcidr.o pcidr_common.o
35PROG = pcidr
36
37SUBDIRS = plugins etc
38
39include $(SRC)/cmd/Makefile.cmd
40include Makefile.com
41#############################################################################
42
43# used by the lint_SRCS rule
44#
45SRCS = $(PROGOBJECTS:%.o=%.c)
46CLOBBERFILES += $(PROGOBJECTS)
47
48LDLIBS += -lnvpair
49LINTFLAGS += -erroff=E_NAME_DEF_NOT_USED2
50
51all :=		TARGET = all
52install :=	TARGET = install
53clean :=	TARGET = clean
54clobber :=	TARGET = clobber
55lint :=		TARGET = lint
56
57.KEEP_STATE:
58#############################################################################
59
60all: $(PROG)
61clean:
62clobber:
63install: $(ROOTCMD)
64lint: lint_SRCS
65
66$(ROOTCMD): all
67
68$(PROG): $(PROGOBJECTS)
69	$(LINK.c) -o $(PROG) $(PROGOBJECTS) $(LDLIBS)
70	$(POST_PROCESS)
71
72all clean clobber lint: $(SUBDIRS)
73install: .WAIT $(SUBDIRS)
74
75$(SUBDIRS): FRC
76	@cd $@; pwd; $(MAKE) $(TARGET)
77FRC:
78
79include $(SRC)/cmd/Makefile.targ
80