xref: /titanic_41/usr/src/uts/intel/pmcs/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
14c06356bSdh142964# CDDL HEADER START
24c06356bSdh142964#
34c06356bSdh142964# The contents of this file are subject to the terms of the
44c06356bSdh142964# Common Development and Distribution License (the "License").
54c06356bSdh142964# You may not use this file except in compliance with the License.
64c06356bSdh142964#
74c06356bSdh142964# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
84c06356bSdh142964# or http://www.opensolaris.org/os/licensing.
94c06356bSdh142964# See the License for the specific language governing permissions
104c06356bSdh142964# and limitations under the License.
114c06356bSdh142964#
124c06356bSdh142964# When distributing Covered Code, include this CDDL HEADER in each
134c06356bSdh142964# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
144c06356bSdh142964# If applicable, add the following below this CDDL HEADER, with the
154c06356bSdh142964# fields enclosed by brackets "[]" replaced with your own identifying
164c06356bSdh142964# information: Portions Copyright [yyyy] [name of copyright owner]
174c06356bSdh142964#
184c06356bSdh142964# CDDL HEADER END
194c06356bSdh142964#
204c06356bSdh142964# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
214c06356bSdh142964# Use is subject to license terms.
224c06356bSdh142964#
234c06356bSdh142964#
244c06356bSdh142964#	This makefile drives the production of the pmcs driver kernel module.
254c06356bSdh142964#
264c06356bSdh142964#	intel architecture dependent
274c06356bSdh142964#
284c06356bSdh142964
294c06356bSdh142964#
304c06356bSdh142964#	Paths to the base of the uts directory trees
314c06356bSdh142964#
324c06356bSdh142964UTSBASE   = ../../../../src/uts
334c06356bSdh142964
344c06356bSdh142964#
354c06356bSdh142964#	Define the module and object file sets.
364c06356bSdh142964#
374c06356bSdh142964MODULE		= pmcs
384c06356bSdh142964OBJECTS		= $(PMCS_OBJS:%=$(OBJS_DIR)/%)
394c06356bSdh142964LINTS		= $(PMCS_OBJS:%.o=$(LINTS_DIR)/%.ln)
404c06356bSdh142964ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
414c06356bSdh142964CONF_SRCDIR	= $(UTSBASE)/common/io/scsi/adapters/pmcs
424c06356bSdh142964WARLOCK_OUT     = $(PMCS_OBJS:%.o=%.ll)
434c06356bSdh142964WARLOCK_OK      = $(MODULE).ok
444c06356bSdh142964WLCMD_DIR       = $(UTSBASE)/common/io/warlock
454c06356bSdh142964
464c06356bSdh142964#
474c06356bSdh142964#	Kernel Module Dependencies
484c06356bSdh142964#
494c06356bSdh142964LDFLAGS += -dy -Nmisc/scsi
504c06356bSdh142964
514c06356bSdh142964#
524c06356bSdh142964#	Define targets
534c06356bSdh142964#
544c06356bSdh142964ALL_TARGET	= $(BINARY) $(CONFMOD)
554c06356bSdh142964LINT_TARGET	= $(MODULE).lint
564c06356bSdh142964INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
574c06356bSdh142964
584c06356bSdh142964#
594c06356bSdh142964#	Include common rules.
604c06356bSdh142964#
614c06356bSdh142964include $(UTSBASE)/intel/Makefile.intel
624c06356bSdh142964include $(CONF_SRCDIR)/pmcs8001fw.version
634c06356bSdh142964
644c06356bSdh142964#
654c06356bSdh142964# Add additional flags
664c06356bSdh142964#
674c06356bSdh142964PMCS_DRV_FLGS	= -DMODNAME=\"${MODULE}\"
684c06356bSdh142964CPPFLAGS	+= $(PMCS_DRV_FLGS) \
694c06356bSdh142964	-DPMCS_FIRMWARE_VERSION=${PMCS_FW_VERSION} \
704c06356bSdh142964	-DPMCS_FIRMWARE_VERSION_STRING=\"${PMCS_FW_VERSION_STRING}\"
714c06356bSdh142964
72*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
73*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
74*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-value
75*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
76*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
77*7014882cSRichard Lowe
784c06356bSdh142964
794c06356bSdh142964#
804c06356bSdh142964#	Default build targets.
814c06356bSdh142964#
824c06356bSdh142964.KEEP_STATE:
834c06356bSdh142964
8447b47c8cSdh142964all:		$(ALL_DEPS)
854c06356bSdh142964
864c06356bSdh142964def:		$(DEF_DEPS)
874c06356bSdh142964
884c06356bSdh142964clean:		$(CLEAN_DEPS)
894c06356bSdh142964
904c06356bSdh142964clobber:	$(CLOBBER_DEPS)
914c06356bSdh142964
924c06356bSdh142964lint:		$(LINT_DEPS)
934c06356bSdh142964
944c06356bSdh142964modlintlib:	$(MODLINTLIB_DEPS)
954c06356bSdh142964
964c06356bSdh142964clean.lint:	$(CLEAN_LINT_DEPS)
974c06356bSdh142964
9847b47c8cSdh142964install:	$(INSTALL_DEPS)
994c06356bSdh142964
1004c06356bSdh142964#
1014c06356bSdh142964#	Include common targets.
1024c06356bSdh142964#
1034c06356bSdh142964include $(UTSBASE)/intel/Makefile.targ
104