8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / pcidr / plugins / default / Makefile
blob71d6ea212b6e2610369481628432b604047309b1
2 # CDDL HEADER START
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]
19 # CDDL HEADER END
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
27 .PARALLEL:
29 #############################################################################
31 NAME = pcidr_plugin
32 LIBRARY = $(NAME).a
33 VERS =
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
51 SRCDIR = .
52 SRCS = $(TOPOBJECTS:%.o=$(USR_SRC_BASE)/cmd/pcidr/%.c) $(LOCOBJECTS:%.o=$(SRCDIR)/%.c)
54 LIBS = $(DYNLIB)
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__
67 .KEEP_STATE:
68 #############################################################################
70 all: $(LIBS)
71 install: $(ROOTLIBS)
72 clean:
73 clobber:
74 lint: lintcheck
76 $(ROOTLIBS): all
78 objs/%.o pics/%.o: $(USR_SRC_BASE)/cmd/pcidr/%.c
79 $(COMPILE.c) -o $@ $<
80 $(POST_PROCESS_O)
82 include $(SRC)/lib/Makefile.targ
83 include ../Makefile.targ