import less(1)
[unleashed/tickless.git] / usr / src / uts / intel / ntxn / Makefile
blobe483df29318f7a565c5ad9cb6d9c2a11214e6da2
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
23 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
27 # This makefile drives the production of the Neterion Xframe
28 # 10G Ethernet (XGE) driver module in x86 systems
32 # Paths to the base of the uts directory trees
34 UTSBASE = ../..
37 # Define the module and object file sets.
39 MODULE = ntxn
40 OBJECTS = $(NTXN_OBJS:%=$(OBJS_DIR)/%)
41 ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
42 CONF_SRCDIR = $(UTSBASE)/common/io/ntxn
45 # Include common rules.
47 include $(UTSBASE)/intel/Makefile.intel
50 # Define targets
52 ALL_TARGET = $(BINARY) $(SRC_CONFFILE)
53 INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
55 INC_PATH += -I$(CONF_SRCDIR)
57 CFLAGS += -DSOLARIS11
58 CFLAGS += -fno-strict-aliasing
59 CFLAGS += -fno-unit-at-a-time
60 CFLAGS += -fno-optimize-sibling-calls
61 CFLAGS += -O2
62 CFLAGS64 += -DSOLARIS11 -xO -I./
65 # Driver depends on MAC & IP
67 LDFLAGS += -dy -N misc/mac -N drv/ip
69 CERRWARN += -Wno-parentheses
70 CERRWARN += -Wno-unused-label
71 CERRWARN += -Wno-type-limits
74 # Default build targets.
76 .KEEP_STATE:
78 def: $(DEF_DEPS)
80 all: $(ALL_DEPS)
82 clean: $(CLEAN_DEPS)
84 clobber: $(CLOBBER_DEPS)
86 install: $(INSTALL_DEPS)
89 # Include common targets.
91 include $(UTSBASE)/intel/Makefile.targ