xref: /illumos-gate/usr/src/uts/intel/usbsacm/Makefile (revision 82d0151a507442720a3aea34c8925041894ab173)
190f05028Syq193411#
290f05028Syq193411# CDDL HEADER START
390f05028Syq193411#
490f05028Syq193411# The contents of this file are subject to the terms of the
590f05028Syq193411# Common Development and Distribution License (the "License").
690f05028Syq193411# You may not use this file except in compliance with the License.
790f05028Syq193411#
890f05028Syq193411# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
990f05028Syq193411# or http://www.opensolaris.org/os/licensing.
1090f05028Syq193411# See the License for the specific language governing permissions
1190f05028Syq193411# and limitations under the License.
1290f05028Syq193411#
1390f05028Syq193411# When distributing Covered Code, include this CDDL HEADER in each
1490f05028Syq193411# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1590f05028Syq193411# If applicable, add the following below this CDDL HEADER, with the
1690f05028Syq193411# fields enclosed by brackets "[]" replaced with your own identifying
1790f05028Syq193411# information: Portions Copyright [yyyy] [name of copyright owner]
1890f05028Syq193411#
1990f05028Syq193411# CDDL HEADER END
2090f05028Syq193411#
2190f05028Syq193411#
2290f05028Syq193411# uts/intel/usbsacm/Makefile
23d29f5a71Szhigang lu - Sun Microsystems - Beijing China# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
2490f05028Syq193411# Use is subject to license terms.
2590f05028Syq193411#
26b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc.
27b6b206fcSJohn Levon
2890f05028Syq193411#
2990f05028Syq193411#	Path to the base of the uts directory tree (usually /usr/src/uts).
3090f05028Syq193411#
3190f05028Syq193411UTSBASE	= ../..
3290f05028Syq193411
3390f05028Syq193411#
3490f05028Syq193411#	Define the module and object file sets.
3590f05028Syq193411#
3690f05028Syq193411MODULE		= usbsacm
3790f05028Syq193411OBJECTS		= $(USBSACM_OBJS:%=$(OBJS_DIR)/%)
3890f05028Syq193411ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
3990f05028Syq193411
4090f05028Syq193411#
4190f05028Syq193411#	Include common rules.
4290f05028Syq193411#
4390f05028Syq193411include $(UTSBASE)/intel/Makefile.intel
4490f05028Syq193411
45*82d0151aSRichard LoweLDFLAGS         += -Nmisc/usba -Nmisc/usbser
4690f05028Syq193411
47d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
487014882cSRichard Lowe
49b6b206fcSJohn Levon# needs work
50b6b206fcSJohn LevonSMOFF += deref_check
51b6b206fcSJohn Levon
5290f05028Syq193411#
5390f05028Syq193411#	Define targets
5490f05028Syq193411#
5590f05028Syq193411ALL_TARGET	= $(BINARY)
5690f05028Syq193411INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
5790f05028Syq193411
5890f05028Syq193411.KEEP_STATE:
5990f05028Syq193411
6090f05028Syq193411all:		$(ALL_DEPS)
6190f05028Syq193411
6290f05028Syq193411def:		$(DEF_DEPS)
6390f05028Syq193411
6490f05028Syq193411clean:		$(CLEAN_DEPS)
6590f05028Syq193411
6690f05028Syq193411clobber:	$(CLOBBER_DEPS)
6790f05028Syq193411
6890f05028Syq193411install:	$(INSTALL_DEPS)
6990f05028Syq193411
7090f05028Syq193411#
7190f05028Syq193411#	Include common targets.
7290f05028Syq193411#
7390f05028Syq193411include $(UTSBASE)/intel/Makefile.targ
74