xref: /illumos-gate/usr/src/uts/intel/usbftdi/Makefile (revision 82d0151a507442720a3aea34c8925041894ab173)
1de81e71eSTim Marsland#
2de81e71eSTim Marsland# CDDL HEADER START
3de81e71eSTim Marsland#
4de81e71eSTim Marsland# The contents of this file are subject to the terms of the
5de81e71eSTim Marsland# Common Development and Distribution License (the "License").
6de81e71eSTim Marsland# You may not use this file except in compliance with the License.
7de81e71eSTim Marsland#
8de81e71eSTim Marsland# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9de81e71eSTim Marsland# or http://www.opensolaris.org/os/licensing.
10de81e71eSTim Marsland# See the License for the specific language governing permissions
11de81e71eSTim Marsland# and limitations under the License.
12de81e71eSTim Marsland#
13de81e71eSTim Marsland# When distributing Covered Code, include this CDDL HEADER in each
14de81e71eSTim Marsland# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15de81e71eSTim Marsland# If applicable, add the following below this CDDL HEADER, with the
16de81e71eSTim Marsland# fields enclosed by brackets "[]" replaced with your own identifying
17de81e71eSTim Marsland# information: Portions Copyright [yyyy] [name of copyright owner]
18de81e71eSTim Marsland#
19de81e71eSTim Marsland# CDDL HEADER END
20de81e71eSTim Marsland#
21de81e71eSTim Marsland#
22de81e71eSTim Marsland# uts/intel/usbftdi/Makefile
23de81e71eSTim Marsland# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
24de81e71eSTim Marsland# Use is subject to license terms.
25de81e71eSTim Marsland#
26e2c88f0cSGarrett D'Amore# Copyright 2014 Garrett D'Amore <garrett@damore.org>
27de81e71eSTim Marsland#
28de81e71eSTim Marsland#	This makefile drives the production of the FT232R USB Serial
29de81e71eSTim Marsland#	Adapter driver.
30de81e71eSTim Marsland#
31de81e71eSTim Marsland#	Path to the base of the uts directory tree (usually /usr/src/uts).
32de81e71eSTim Marsland#
33de81e71eSTim MarslandUTSBASE	= ../..
34de81e71eSTim Marsland
35de81e71eSTim Marsland#
36de81e71eSTim Marsland#	Define the module and object file sets.
37de81e71eSTim Marsland#
38de81e71eSTim MarslandMODULE		= usbftdi
39de81e71eSTim MarslandOBJECTS		= $(USBFTDI_OBJS:%=$(OBJS_DIR)/%)
4040a3f5ceSTim MarslandROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
41de81e71eSTim MarslandCONF_SRCDIR	= $(UTSBASE)/common/io/usb/clients/usbser/usbftdi
42de81e71eSTim Marsland
43de81e71eSTim Marsland#
44de81e71eSTim Marsland#	Include common rules.
45de81e71eSTim Marsland#
46de81e71eSTim Marslandinclude $(UTSBASE)/intel/Makefile.intel
47de81e71eSTim Marsland
48d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
497014882cSRichard Lowe
50*82d0151aSRichard LoweLDFLAGS         += -Nmisc/usba -Nmisc/usbser
51de81e71eSTim Marsland
52de81e71eSTim Marsland#
53de81e71eSTim Marsland#	Define targets
54de81e71eSTim Marsland#
55de81e71eSTim MarslandALL_TARGET	= $(BINARY) $(SRC_CONFFILE)
56de81e71eSTim MarslandINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
57de81e71eSTim Marsland
58de81e71eSTim Marsland.KEEP_STATE:
59de81e71eSTim Marsland
60de81e71eSTim Marslandall:		$(ALL_DEPS)
61de81e71eSTim Marsland
62de81e71eSTim Marslanddef:		$(DEF_DEPS)
63de81e71eSTim Marsland
64de81e71eSTim Marslandclean:		$(CLEAN_DEPS)
65de81e71eSTim Marsland
66de81e71eSTim Marslandclobber:	$(CLOBBER_DEPS)
67de81e71eSTim Marsland
68de81e71eSTim Marslandinstall:	$(INSTALL_DEPS)
69de81e71eSTim Marsland
70de81e71eSTim Marsland#
71de81e71eSTim Marsland#	Include common targets.
72de81e71eSTim Marsland#
73de81e71eSTim Marslandinclude $(UTSBASE)/intel/Makefile.targ
74