Merge remote-tracking branch 'origin/master'
[unleashed/lotheac.git] / usr / src / uts / intel / ata / Makefile
blob5b1a635453e19d57b84447a165c53aa1fed5d559
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
21 # uts/intel/ata/Makefile
23 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
25 # Copyright (c) 2011 Bayard G. Bell. All rights reserved.
28 # This makefile drives the production of the ata "drv"
29 # kernel module.
31 # intel architecture dependent
35 # Path to the base of the uts directory tree (usually /usr/src/uts).
37 UTSBASE = ../..
40 # Define the module and object file sets.
42 MODULE = ata
43 OBJECTS = $(ATA_OBJS:%=$(OBJS_DIR)/%)
44 ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
45 CONF_SRCDIR = $(UTSBASE)/intel/io/dktp/controller/ata
48 # Include common rules.
50 include $(UTSBASE)/intel/Makefile.intel
53 # Define targets
55 ALL_TARGET = $(BINARY) $(CONFMOD)
56 INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
59 # Overrides.
61 #DEBUG_FLGS = -DATA_DEBUG -DGHD_DEBUG -DDEBUG
62 DEBUG_FLGS =
63 DEBUG_DEFS += $(DEBUG_FLGS)
64 INC_PATH += -I$(UTSBASE)/intel/io/dktp/hba/ghd
67 # For now, disable these compiler warnings; maintainers should endeavor to
68 # investigate and remove these for maximum coverage. Please do not carry
69 # these forward to new Makefiles.
72 CERRWARN += -Wno-parentheses
73 CERRWARN += -Wno-uninitialized
76 # Depends on scsi
78 LDFLAGS += -dy -N misc/scsi
81 # Default build targets.
83 .KEEP_STATE:
85 def: $(DEF_DEPS)
87 all: $(ALL_DEPS)
89 clean: $(CLEAN_DEPS)
91 clobber: $(CLOBBER_DEPS)
93 install: $(INSTALL_DEPS)
96 # Include common targets.
98 include $(UTSBASE)/intel/Makefile.targ