Makefile revision 3066:2a2af34f0642
1233294Sstas# 2102644Snectar# CDDL HEADER START 355682Smarkm# 4142403Snectar# The contents of this file are subject to the terms of the 5233294Sstas# Common Development and Distribution License (the "License"). 6233294Sstas# You may not use this file except in compliance with the License. 755682Smarkm# 855682Smarkm# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 955682Smarkm# or http://www.opensolaris.org/os/licensing. 1055682Smarkm# See the License for the specific language governing permissions 1155682Smarkm# and limitations under the License. 1255682Smarkm# 1355682Smarkm# When distributing Covered Code, include this CDDL HEADER in each 1455682Smarkm# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1555682Smarkm# If applicable, add the following below this CDDL HEADER, with the 1690926Snectar# fields enclosed by brackets "[]" replaced with your own identifying 1790926Snectar# information: Portions Copyright [yyyy] [name of copyright owner] 18233294Sstas# 1990926Snectar# CDDL HEADER END 20233294Sstas# 2190926Snectar# 22233294Sstas# uts/intel/usbprn/Makefile 2355682Smarkm# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 2455682Smarkm# Use is subject to license terms. 2555682Smarkm# 26233294Sstas#ident "%Z%%M% %I% %E% SMI" 2755682Smarkm# 28233294Sstas# This makefile drives the production of the usbprn driver kernel module. 29102644Snectar# 30102644Snectar 31102644Snectar# 32127808Snectar# Path to the base of the uts directory tree (usually /usr/src/uts). 3390926Snectar# 34127808SnectarUTSBASE = ../.. 3555682Smarkm 3655682Smarkm# 3755682Smarkm# Define the module and object file sets. 3855682Smarkm# 3955682SmarkmMODULE = usbprn 4055682SmarkmOBJECTS = $(USBPRN_OBJS:%=$(OBJS_DIR)/%) 41178825SdfrLINTS = $(USBPRN_OBJS:%.o=$(LINTS_DIR)/%.ln) 4255682SmarkmROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 43142403Snectar 44142403Snectar# 45142403Snectar# Include common rules. 46142403Snectar# 47142403Snectarinclude $(UTSBASE)/intel/Makefile.intel 48142403Snectar 49142403Snectar# 50233294Sstas# Define targets 51142403Snectar# 52142403SnectarALL_TARGET = $(BINARY) 53142403SnectarLINT_TARGET = $(MODULE).lint 54142403SnectarINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 55142403Snectar 56142403Snectar# 57142403Snectar# Override defaults to build a unique, local modstubs.o. 58142403Snectar# 59142403SnectarMODSTUBS_DIR = $(OBJS_DIR) 60142403SnectarCLEANFILES += $(MODSTUBS_O) 61142403Snectar 62142403Snectar# 63142403Snectar# depends on misc/usba 64142403Snectar# 65233294SstasLDFLAGS += -dy -Nmisc/usba 66142403Snectar 67142403Snectar# 68142403Snectar# For now, disable these lint checks; maintainers should endeavor 69142403Snectar# to investigate and remove these for maximum lint coverage. 70178825Sdfr# Please do not carry these forward to new Makefiles. 71142403Snectar# 72142403SnectarLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW 73142403SnectarLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV 74142403Snectar 75142403Snectar# 76142403Snectar# Default build targets. 77142403Snectar# 78142403Snectar.KEEP_STATE: 79233294Sstas 80233294Sstasdef: $(DEF_DEPS) 81233294Sstas 82233294Sstasall: $(ALL_DEPS) 83233294Sstas 84233294Sstasclean: $(CLEAN_DEPS) 85178825Sdfr 86178825Sdfrclobber: $(CLOBBER_DEPS) 87178825Sdfr 88178825Sdfrlint: $(LINT_DEPS) 89178825Sdfr 90178825Sdfrmodlintlib: $(MODLINTLIB_DEPS) 91178825Sdfr 92233294Sstasclean.lint: $(CLEAN_LINT_DEPS) 93142403Snectar 94142403Snectarinstall: $(INSTALL_DEPS) 95178825Sdfr 96142403Snectar# 97142403Snectar# Include common targets. 98233294Sstas# 99142403Snectarinclude $(UTSBASE)/intel/Makefile.targ 100142403Snectar