14de26129Sxs156463# 24de26129Sxs156463# CDDL HEADER START 34de26129Sxs156463# 44de26129Sxs156463# The contents of this file are subject to the terms of the 5*bb25c06cSjg# Common Development and Distribution License (the "License"). 6*bb25c06cSjg# You may not use this file except in compliance with the License. 74de26129Sxs156463# 84de26129Sxs156463# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 94de26129Sxs156463# or http://www.opensolaris.org/os/licensing. 104de26129Sxs156463# See the License for the specific language governing permissions 114de26129Sxs156463# and limitations under the License. 124de26129Sxs156463# 134de26129Sxs156463# When distributing Covered Code, include this CDDL HEADER in each 144de26129Sxs156463# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 154de26129Sxs156463# If applicable, add the following below this CDDL HEADER, with the 164de26129Sxs156463# fields enclosed by brackets "[]" replaced with your own identifying 174de26129Sxs156463# information: Portions Copyright [yyyy] [name of copyright owner] 184de26129Sxs156463# 194de26129Sxs156463# CDDL HEADER END 204de26129Sxs156463# 214de26129Sxs156463# 224de26129Sxs156463# uts/intel/usbsprl/Makefile 23*bb25c06cSjg# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 244de26129Sxs156463# Use is subject to license terms. 254de26129Sxs156463# 26*bb25c06cSjg#ident "%Z%%M% %I% %E% SMI" 274de26129Sxs156463# 284de26129Sxs156463# This makefile drives the production of the PL2303 USB Serial 294de26129Sxs156463# Adapter driver. 304de26129Sxs156463# 314de26129Sxs156463# Path to the base of the uts directory tree (usually /usr/src/uts). 324de26129Sxs156463# 334de26129Sxs156463UTSBASE = ../.. 344de26129Sxs156463 354de26129Sxs156463# 364de26129Sxs156463# Define the module and object file sets. 374de26129Sxs156463# 384de26129Sxs156463MODULE = usbsprl 394de26129Sxs156463OBJECTS = $(USBSPRL_OBJS:%=$(OBJS_DIR)/%) 404de26129Sxs156463LINTS = $(USBSPRL_OBJS:%.o=$(LINTS_DIR)/%.ln) 414de26129Sxs156463ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 424de26129Sxs156463 434de26129Sxs156463# 444de26129Sxs156463# Include common rules. 454de26129Sxs156463# 464de26129Sxs156463include $(UTSBASE)/intel/Makefile.intel 474de26129Sxs156463 484de26129Sxs156463LDFLAGS += -dy -Nmisc/usba -Nmisc/usbser 494de26129Sxs156463 504de26129Sxs156463# 514de26129Sxs156463# Define targets 524de26129Sxs156463# 534de26129Sxs156463ALL_TARGET = $(BINARY) 544de26129Sxs156463LINT_TARGET = $(MODULE).lint 554de26129Sxs156463INSTALL_TARGET = $(BINARY) $(ROOTMODULE) 564de26129Sxs156463 57*bb25c06cSjg# 58*bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor 59*bb25c06cSjg# to investigate and remove these for maximum lint coverage. 60*bb25c06cSjg# Please do not carry these forward to new Makefiles. 61*bb25c06cSjg# 62*bb25c06cSjgLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW 63*bb25c06cSjg 644de26129Sxs156463.KEEP_STATE: 654de26129Sxs156463 664de26129Sxs156463all: $(ALL_DEPS) 674de26129Sxs156463 684de26129Sxs156463def: $(DEF_DEPS) 694de26129Sxs156463 704de26129Sxs156463clean: $(CLEAN_DEPS) 714de26129Sxs156463 724de26129Sxs156463clobber: $(CLOBBER_DEPS) 734de26129Sxs156463 744de26129Sxs156463lint: $(LINT_DEPS) 754de26129Sxs156463 764de26129Sxs156463modlintlib: $(MODLINTLIB_DEPS) 774de26129Sxs156463 784de26129Sxs156463clean.lint: $(CLEAN_LINT_DEPS) 794de26129Sxs156463 804de26129Sxs156463install: $(INSTALL_DEPS) 814de26129Sxs156463 824de26129Sxs156463# 834de26129Sxs156463# Include common targets. 844de26129Sxs156463# 854de26129Sxs156463include $(UTSBASE)/intel/Makefile.targ 86