xref: /titanic_50/usr/src/lib/cfgadm_plugins/shp/Makefile.com (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
126947304SEvan Yan#
226947304SEvan Yan# CDDL HEADER START
326947304SEvan Yan#
426947304SEvan Yan# The contents of this file are subject to the terms of the
526947304SEvan Yan# Common Development and Distribution License (the "License").
626947304SEvan Yan# You may not use this file except in compliance with the License.
726947304SEvan Yan#
826947304SEvan Yan# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
926947304SEvan Yan# or http://www.opensolaris.org/os/licensing.
1026947304SEvan Yan# See the License for the specific language governing permissions
1126947304SEvan Yan# and limitations under the License.
1226947304SEvan Yan#
1326947304SEvan Yan# When distributing Covered Code, include this CDDL HEADER in each
1426947304SEvan Yan# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1526947304SEvan Yan# If applicable, add the following below this CDDL HEADER, with the
1626947304SEvan Yan# fields enclosed by brackets "[]" replaced with your own identifying
1726947304SEvan Yan# information: Portions Copyright [yyyy] [name of copyright owner]
1826947304SEvan Yan#
1926947304SEvan Yan# CDDL HEADER END
2026947304SEvan Yan#
2126947304SEvan Yan#
22e218854eSjmcp# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
2326947304SEvan Yan#
2426947304SEvan Yan
2526947304SEvan YanLIBRARY= shp.a
2626947304SEvan YanVERS= .1
2726947304SEvan YanOBJECTS= shp.o pci_strings.o
2826947304SEvan Yan
2926947304SEvan Yan# include library definitions
3026947304SEvan Yaninclude ../../../Makefile.lib
3126947304SEvan Yan
3226947304SEvan YanSRCDIR =	../common
3326947304SEvan Yan
3426947304SEvan YanUSR_LIB_DIR		= $(ROOT)/usr/lib
3526947304SEvan YanUSR_LIB_DIR_CFGADM	= $(USR_LIB_DIR)/cfgadm
3626947304SEvan YanUSR_LIB_DIR_CFGADM_64	= $(USR_LIB_DIR_CFGADM)/$(MACH64)
3726947304SEvan Yan
3826947304SEvan YanROOTLIBDIR= $(USR_LIB_DIR_CFGADM)
3926947304SEvan YanROOTLIBDIR64= $(USR_LIB_DIR_CFGADM_64)
4026947304SEvan Yan
4126947304SEvan YanSRCS=		../common/shp.c $(SRC)/common/pci/pci_strings.c
4226947304SEvan Yan
4326947304SEvan YanLIBS = $(DYNLIB)
4426947304SEvan Yan
4526947304SEvan YanCPPFLAGS +=     -I$(SRC)/lib/libhotplug/common
4626947304SEvan YanCPPFLAGS +=	-D_POSIX_PTHREAD_SEMANTICS
4726947304SEvan YanCFLAGS +=	$(CCVERBOSE)
4826947304SEvan YanLDLIBS +=	-lc -ldevinfo -lhotplug
4926947304SEvan Yan
50*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-parentheses
51*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-char-subscripts
52*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-uninitialized
53*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-unused-variable
54*7014882cSRichard Lowe
5526947304SEvan Yan.KEEP_STATE:
5626947304SEvan Yan
5726947304SEvan Yanall: $(LIBS)
5826947304SEvan Yan
5926947304SEvan Yanlint:   lintcheck
6026947304SEvan Yan
6126947304SEvan Yan# Create target directories
6226947304SEvan Yan$(USR_LIB_DIR):
6326947304SEvan Yan	-$(INS.dir.root.sys)
6426947304SEvan Yan
6526947304SEvan Yan$(USR_LIB_DIR_CFGADM): $(USR_LIB_DIR)
6626947304SEvan Yan	-$(INS.dir.bin.bin)
6726947304SEvan Yan
6826947304SEvan Yan$(USR_LIB_DIR_CFGADM_64): $(USR_LIB_DIR_CFGADM)
6926947304SEvan Yan	-$(INS.dir.bin.bin)
7026947304SEvan Yan
7126947304SEvan Yan$(USR_LIB_DIR_CFGADM)/%: % $(USR_LIB_DIR_CFGADM)
7226947304SEvan Yan	-$(INS.file)
7326947304SEvan Yan
7426947304SEvan Yan$(USR_LIB_DIR_CFGADM_64)/%: % $(USR_LIB_DIR_CFGADM_64)
7526947304SEvan Yan	-$(INS.file)
7626947304SEvan Yan
7726947304SEvan Yan# include library targets
7826947304SEvan Yaninclude ../../../Makefile.targ
7926947304SEvan Yan
8026947304SEvan Yanpics/shp.o: ../common/shp.c
8126947304SEvan Yan	$(COMPILE.c) -o $@ ../common/shp.c
8226947304SEvan Yan	$(POST_PROCESS_O)
8326947304SEvan Yan
8426947304SEvan Yanpics/pci_strings.o: $(SRC)/common/pci/pci_strings.c
8526947304SEvan Yan	$(COMPILE.c) -o $@ $(SRC)/common/pci/pci_strings.c
8626947304SEvan Yan	$(POST_PROCESS_O)
87