Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino#
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# CDDL HEADER START
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino#
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# The contents of this file are subject to the terms of the
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# Common Development and Distribution License (the "License").
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# You may not use this file except in compliance with the License.
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino#
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# or http://www.opensolaris.org/os/licensing.
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# See the License for the specific language governing permissions
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# and limitations under the License.
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino#
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# When distributing Covered Code, include this CDDL HEADER in each
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# If applicable, add the following below this CDDL HEADER, with the
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# fields enclosed by brackets "[]" replaced with your own identifying
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# information: Portions Copyright [yyyy] [name of copyright owner]
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino#
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# CDDL HEADER END
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino#
726fad2a65f16c200a03969c29cb5c86c2d427dbDina K Nimeh#
726fad2a65f16c200a03969c29cb5c86c2d427dbDina K Nimeh# uts/intel/pcmcia/Makefile
726fad2a65f16c200a03969c29cb5c86c2d427dbDina K Nimeh#
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
726fad2a65f16c200a03969c29cb5c86c2d427dbDina K Nimeh# Use is subject to license terms.
1e49577a7fcde812700ded04431b49d67cc57d6dRod Evans#
1e49577a7fcde812700ded04431b49d67cc57d6dRod Evans
1e49577a7fcde812700ded04431b49d67cc57d6dRod Evans#
1e49577a7fcde812700ded04431b49d67cc57d6dRod Evans# This file makes the pcmcia nexus for an intel system
1e49577a7fcde812700ded04431b49d67cc57d6dRod Evans#
1e49577a7fcde812700ded04431b49d67cc57d6dRod Evans# intel architecture dependent
1e49577a7fcde812700ded04431b49d67cc57d6dRod Evans#
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe#
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe# Path to the base of the uts directory tree (usually /usr/src/uts).
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe#
1e49577a7fcde812700ded04431b49d67cc57d6dRod EvansUTSBASE = ../..
1e49577a7fcde812700ded04431b49d67cc57d6dRod Evans#
1e49577a7fcde812700ded04431b49d67cc57d6dRod Evans# Define the module and object file sets.
1e49577a7fcde812700ded04431b49d67cc57d6dRod Evans#
1e49577a7fcde812700ded04431b49d67cc57d6dRod EvansMODULE = pcmcia
1e49577a7fcde812700ded04431b49d67cc57d6dRod EvansOBJECTS = $(PCMCIA_OBJS:%=$(OBJS_DIR)/%)
1e49577a7fcde812700ded04431b49d67cc57d6dRod EvansLINTS = $(PCMCIA_OBJS:%.o=$(LINTS_DIR)/%.ln)
1e49577a7fcde812700ded04431b49d67cc57d6dRod EvansROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
1e49577a7fcde812700ded04431b49d67cc57d6dRod Evans
1e49577a7fcde812700ded04431b49d67cc57d6dRod Evans#
1e49577a7fcde812700ded04431b49d67cc57d6dRod Evans# Include common rules.
1e49577a7fcde812700ded04431b49d67cc57d6dRod Evans#
1e49577a7fcde812700ded04431b49d67cc57d6dRod Evansinclude $(UTSBASE)/intel/Makefile.intel
1e49577a7fcde812700ded04431b49d67cc57d6dRod Evans
1e49577a7fcde812700ded04431b49d67cc57d6dRod Evans#
1e49577a7fcde812700ded04431b49d67cc57d6dRod Evans# Define targets
1e49577a7fcde812700ded04431b49d67cc57d6dRod Evans#
71269a2275bf5a143dad6461eee2710a344e7261Anthony ScarpinoALL_TARGET = $(BINARY)
1e49577a7fcde812700ded04431b49d67cc57d6dRod EvansLINT_TARGET = $(MODULE).lint
71269a2275bf5a143dad6461eee2710a344e7261Anthony ScarpinoINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
1e49577a7fcde812700ded04431b49d67cc57d6dRod Evans
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino#
1e49577a7fcde812700ded04431b49d67cc57d6dRod Evans# Override defaults to build a unique, local modstubs.o.
726fad2a65f16c200a03969c29cb5c86c2d427dbDina K Nimeh#
1e49577a7fcde812700ded04431b49d67cc57d6dRod EvansMODSTUBS_DIR = $(OBJS_DIR)
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino$(MODSTUBS_O) := AS_CPPFLAGS += -DPCMCIA_MODULE
1e49577a7fcde812700ded04431b49d67cc57d6dRod EvansCLEANFILES += $(MODSTUBS_O)
#
# Include i86pc specific header files
#
INC_PATH += -I$(UTSBASE)/i86pc
#
# dependency
#
LDFLAGS += -dy -Nmisc/busra -Nmisc/pci_autoconfig
#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
#
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
CERRWARN += -_gcc=-Wno-uninitialized
CERRWARN += -_gcc=-Wno-parentheses
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include $(UTSBASE)/intel/Makefile.targ