8987 bootadm: add bootfile fallback to unix
[unleashed.git] / usr / src / cmd / pcidr / Makefile
blob756f10afe6448314399d8b059be4292d915c7eb7
2 # CDDL HEADER START
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.
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.
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]
20 # CDDL HEADER END
23 # Copyright 2005 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
26 #ident "%Z%%M% %I% %E% SMI"
28 # cmd/pcidr/Makefile
31 .PARALLEL:
32 #############################################################################
34 PROGOBJECTS = pcidr.o pcidr_common.o
35 PROG = pcidr
37 SUBDIRS = plugins etc
39 include $(SRC)/cmd/Makefile.cmd
40 include Makefile.com
41 #############################################################################
43 # used by the lint_SRCS rule
45 SRCS = $(PROGOBJECTS:%.o=%.c)
46 CLOBBERFILES += $(PROGOBJECTS)
48 LDLIBS += -lnvpair
49 LINTFLAGS += -erroff=E_NAME_DEF_NOT_USED2
51 all := TARGET = all
52 install := TARGET = install
53 clean := TARGET = clean
54 clobber := TARGET = clobber
55 lint := TARGET = lint
57 .KEEP_STATE:
58 #############################################################################
60 all: $(PROG)
61 clean:
62 clobber:
63 install: $(ROOTCMD)
64 lint: lint_SRCS
66 $(ROOTCMD): all
68 $(PROG): $(PROGOBJECTS)
69 $(LINK.c) -o $(PROG) $(PROGOBJECTS) $(LDLIBS)
70 $(POST_PROCESS)
72 all clean clobber lint: $(SUBDIRS)
73 install: .WAIT $(SUBDIRS)
75 $(SUBDIRS): FRC
76 @cd $@; pwd; $(MAKE) $(TARGET)
77 FRC:
79 include $(SRC)/cmd/Makefile.targ