4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
29 #############################################################################
35 TOPOBJECTS
= pcidr_common.o
36 LOCOBJECTS
= $(NAME
).o pcidr_cfga.o
37 OBJECTS
= $(LOCOBJECTS
) $(TOPOBJECTS
)
39 include $(SRC
)/lib
/Makefile.lib
40 include $(SRC
)/cmd
/pcidr
/Makefile.com
41 #############################################################################
43 THISDIR
= ..
/..
/plugins
/default
44 USR_SRC_BASE
= ..
/..
/..
/..
46 # SRCS is used by the lintcheck rule and is defined as
47 # $(OBJECTS:%.o=$(SRCDIR)/%.c) where SRCDIR is this directory; set SRCS to a
48 # list of source paths if it differ from the default
52 SRCS
= $(TOPOBJECTS
:%.o
=$(USR_SRC_BASE
)/cmd
/pcidr
/%.c
) $(LOCOBJECTS
:%.o
=$(SRCDIR
)/%.c
)
56 LDLIBS
+= -lcfgadm
-lnvpair
58 HDRSRCS_SH
= ls
-1 $(THISDIR
)/*.h
59 HDRSRCS
= $(HDRSRCS_SH
:sh
)
60 CPPFLAGS
+= -I
$(THISDIR
)
62 # override LIBLINKS so that ROOTLIBS or anything else won't match the install
63 # target "$(ROOTLIBDIR)/$(LIBLINKS)"
65 LIBLINKS
= __no_liblinks__
68 #############################################################################
78 objs
/%.o pics
/%.o
: $(USR_SRC_BASE
)/cmd
/pcidr
/%.c
82 include $(SRC
)/lib
/Makefile.targ
83 include ..
/Makefile.targ