xref: /illumos-gate/usr/src/uts/intel/usbsprl/Makefile (revision d3b5f56344d8bfcdd6cfb82446af0e5e55ad9ebe)
14de26129Sxs156463#
24de26129Sxs156463# CDDL HEADER START
34de26129Sxs156463#
44de26129Sxs156463# The contents of this file are subject to the terms of the
5bb25c06cSjg# Common Development and Distribution License (the "License").
6bb25c06cSjg# 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
23489b7c4aSRaymond Chen# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
244de26129Sxs156463# Use is subject to license terms.
254de26129Sxs156463#
26e2c88f0cSGarrett D'Amore# Copyright 2014 Garrett D'Amore <garrett@damore.org>
274de26129Sxs156463#
284ebb14b2Sfrits#	This makefile drives the production of the Prolific 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
48*d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
497014882cSRichard Lowe
504de26129Sxs156463LDFLAGS         += -dy -Nmisc/usba -Nmisc/usbser
514de26129Sxs156463
524de26129Sxs156463#
534de26129Sxs156463#	Define targets
544de26129Sxs156463#
554de26129Sxs156463ALL_TARGET	= $(BINARY)
564de26129Sxs156463LINT_TARGET	= $(MODULE).lint
574de26129Sxs156463INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
584de26129Sxs156463
594de26129Sxs156463.KEEP_STATE:
604de26129Sxs156463
614de26129Sxs156463all:		$(ALL_DEPS)
624de26129Sxs156463
634de26129Sxs156463def:		$(DEF_DEPS)
644de26129Sxs156463
654de26129Sxs156463clean:		$(CLEAN_DEPS)
664de26129Sxs156463
674de26129Sxs156463clobber:	$(CLOBBER_DEPS)
684de26129Sxs156463
694de26129Sxs156463lint:		$(LINT_DEPS)
704de26129Sxs156463
714de26129Sxs156463modlintlib:	$(MODLINTLIB_DEPS)
724de26129Sxs156463
734de26129Sxs156463clean.lint:	$(CLEAN_LINT_DEPS)
744de26129Sxs156463
754de26129Sxs156463install:	$(INSTALL_DEPS)
764de26129Sxs156463
774de26129Sxs156463#
784de26129Sxs156463#	Include common targets.
794de26129Sxs156463#
804de26129Sxs156463include $(UTSBASE)/intel/Makefile.targ
81