xref: /illumos-gate/usr/src/cmd/pcidr/Makefile (revision d17be682)
170025d76Sjohnny#
270025d76Sjohnny# CDDL HEADER START
370025d76Sjohnny#
470025d76Sjohnny# The contents of this file are subject to the terms of the
570025d76Sjohnny# Common Development and Distribution License, Version 1.0 only
670025d76Sjohnny# (the "License").  You may not use this file except in compliance
770025d76Sjohnny# with the License.
870025d76Sjohnny#
970025d76Sjohnny# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1070025d76Sjohnny# or http://www.opensolaris.org/os/licensing.
1170025d76Sjohnny# See the License for the specific language governing permissions
1270025d76Sjohnny# and limitations under the License.
1370025d76Sjohnny#
1470025d76Sjohnny# When distributing Covered Code, include this CDDL HEADER in each
1570025d76Sjohnny# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1670025d76Sjohnny# If applicable, add the following below this CDDL HEADER, with the
1770025d76Sjohnny# fields enclosed by brackets "[]" replaced with your own identifying
1870025d76Sjohnny# information: Portions Copyright [yyyy] [name of copyright owner]
1970025d76Sjohnny#
2070025d76Sjohnny# CDDL HEADER END
2170025d76Sjohnny#
2270025d76Sjohnny#
2370025d76Sjohnny# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
2470025d76Sjohnny# Use is subject to license terms.
2570025d76Sjohnny#
2670025d76Sjohnny
2770025d76Sjohnny.PARALLEL:
2870025d76Sjohnny#############################################################################
2970025d76Sjohnny
3070025d76SjohnnyPROGOBJECTS = pcidr.o pcidr_common.o
3170025d76SjohnnyPROG = pcidr
3270025d76Sjohnny
3370025d76SjohnnySUBDIRS = plugins etc
3470025d76Sjohnny
3570025d76Sjohnnyinclude $(SRC)/cmd/Makefile.cmd
3670025d76Sjohnnyinclude Makefile.com
3770025d76Sjohnny#############################################################################
3870025d76Sjohnny
3970025d76SjohnnyCLOBBERFILES += $(PROGOBJECTS)
4070025d76Sjohnny
4170025d76SjohnnyLDLIBS += -lnvpair
4270025d76Sjohnny
4370025d76Sjohnnyall :=		TARGET = all
4470025d76Sjohnnyinstall :=	TARGET = install
4570025d76Sjohnnyclean :=	TARGET = clean
4670025d76Sjohnnyclobber :=	TARGET = clobber
4770025d76Sjohnny
4870025d76Sjohnny.KEEP_STATE:
4970025d76Sjohnny#############################################################################
5070025d76Sjohnny
5170025d76Sjohnnyall: $(PROG)
5270025d76Sjohnnyclean:
5370025d76Sjohnnyclobber:
5470025d76Sjohnnyinstall: $(ROOTCMD)
5570025d76Sjohnny
5670025d76Sjohnny$(ROOTCMD): all
5770025d76Sjohnny
5870025d76Sjohnny$(PROG): $(PROGOBJECTS)
5970025d76Sjohnny	$(LINK.c) -o $(PROG) $(PROGOBJECTS) $(LDLIBS)
6070025d76Sjohnny	$(POST_PROCESS)
6170025d76Sjohnny
62*d17be682SRichard Loweall clean clobber: $(SUBDIRS)
6370025d76Sjohnnyinstall: .WAIT $(SUBDIRS)
6470025d76Sjohnny
6570025d76Sjohnny$(SUBDIRS): FRC
6670025d76Sjohnny	@cd $@; pwd; $(MAKE) $(TARGET)
6770025d76SjohnnyFRC:
6870025d76Sjohnny
6970025d76Sjohnnyinclude $(SRC)/cmd/Makefile.targ
70