xref: /illumos-gate/usr/src/uts/intel/cardbus/Makefile (revision fa4a3e77edc40df6d92e8da6fc4961d275e9896d)
1# CDDL HEADER START
2#
3# The contents of this file are subject to the terms of the
4# Common Development and Distribution License (the "License").
5# You may not use this file except in compliance with the License.
6#
7# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8# or http://www.opensolaris.org/os/licensing.
9# See the License for the specific language governing permissions
10# and limitations under the License.
11#
12# When distributing Covered Code, include this CDDL HEADER in each
13# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
14# If applicable, add the following below this CDDL HEADER, with the
15# fields enclosed by brackets "[]" replaced with your own identifying
16# information: Portions Copyright [yyyy] [name of copyright owner]
17#
18# CDDL HEADER END
19#
20
21#
22# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# Copyright (c) 2018, Joyent, Inc.
26
27#
28#	This makefile drives the production of the cardbus kernel module.
29#
30#	intel architecture dependent
31#
32
33#
34#	Path to the base of the uts directory tree (usually /usr/src/uts).
35#
36UTSBASE		= ../..
37
38#
39#	Define the module and object file sets.
40#
41MODULE		= cardbus
42OBJECTS		= $(CARDBUS_OBJS:%=$(OBJS_DIR)/%)
43ROOTMODULE	= $(ROOT_MISC_DIR)/$(MODULE)
44
45#
46#	Include common rules.
47#
48include $(UTSBASE)/intel/Makefile.intel
49
50#
51#	Define targets
52#
53ALL_TARGET	= $(BINARY)
54INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
55
56#
57#	Include sun4u specific header files
58#
59INC_PATH        += -I$(UTSBASE)/sun4u -I$(UTSBASE)/sun4 -I$(UTSBASE)/i86pc
60
61CPPFLAGS        +=      -DHOTPLUG
62
63#	dependency
64LDFLAGS	+=	-dy -Nmisc/busra -Nmisc/pcmcia -Nmisc/hpcsvc
65
66#
67# For now, disable these warnings; maintainers should endeavor
68# to investigate and remove these for maximum coverage.
69# Please do not carry these forward to new Makefiles.
70#
71CFLAGS		+= $(CCVERBOSE)
72CERRWARN	+= $(CNOWARN_UNINIT)
73CERRWARN	+= -_gcc=-Wno-parentheses
74CERRWARN	+= -_gcc=-Wno-unused-function
75CERRWARN	+= -_gcc=-Wno-unused-variable
76
77SMOFF += indenting,no_if_block
78
79#
80#	Default build targets.
81#
82.KEEP_STATE:
83
84def:		$(DEF_DEPS)
85
86all:		$(ALL_DEPS)
87
88clean:		$(CLEAN_DEPS)
89
90clobber:	$(CLOBBER_DEPS)
91
92install:	$(INSTALL_DEPS)
93
94#	Include common targets.
95#
96include $(UTSBASE)/intel/Makefile.targ
97