xref: /titanic_50/usr/src/uts/sparc/pcmcia/Makefile (revision 03831d35f7499c87d51205817c93e9a8d42c4bae)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# uts/sparc/pcmcia/Makefile
24# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
25# Use is subject to license terms.
26#
27#
28#	This file makes the pcmcia nexus driver
29#
30#	sparc architecture dependent
31#
32#ident	"%Z%%M%	%I%	%E% SMI"
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		= pcmcia
42OBJECTS		= $(PCMCIA_OBJS:%=$(OBJS_DIR)/%)
43LINTS		= $(PCMCIA_OBJS:%.o=$(LINTS_DIR)/%.ln)
44ROOTMODULE	= $(ROOT_MISC_DIR)/$(MODULE)
45
46#
47#	Include common rules.
48#
49include $(UTSBASE)/sparc/Makefile.sparc
50
51#
52#	Define targets
53#
54ALL_TARGET	= $(BINARY)
55LINT_TARGET	= $(MODULE).lint
56INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
57
58#
59#	Override defaults to build a unique, local modstubs.o.
60#
61MODSTUBS_DIR	 = $(OBJS_DIR)
62$(MODSTUBS_O)	:= AS_CPPFLAGS += -DPCMCIA_MODULE
63CLEANFILES	+= $(MODSTUBS_O)
64CLEANLINTFILES	+= $(LINT64_FILES)
65
66#
67#	Include sun4 specific header files
68#
69INC_PATH	+= -I$(UTSBASE)/sun4
70
71#
72# lint pass one enforcement
73#
74CFLAGS += $(CCVERBOSE)
75
76# dependency
77LDFLAGS	+=	-dy -Nmisc/busra
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
92lint:		$(LINT_DEPS)
93
94modlintlib:	$(MODLINTLIB_DEPS)
95
96clean.lint:	$(CLEAN_LINT_DEPS)
97
98install:	$(INSTALL_DEPS)
99
100#
101#	Include common targets.
102#
103include $(UTSBASE)/sparc/Makefile.targ
104