8354 sync regcomp(3C) with upstream (fix make catalog)
[unleashed/tickless.git] / usr / src / uts / intel / chxge / Makefile
blob0d1a5010a1f5633e2983c5e5b5cf513667a2a1cd
1 # CDDL HEADER START
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.
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.
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]
18 # CDDL HEADER END
22 # Copyright 2007 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
27 # This makefile drives the production of the Chelsio N110
28 # 10G Ethernet (CH) 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 = chxge
40 OBJECTS = $(CH_OBJS:%=$(OBJS_DIR)/%) $(CH_COM_OBJS:%=$(OBJS_DIR)/%)
41 LINTS = $(CH_OBJS:%.o=$(LINTS_DIR)/%.ln) $(CH_COM_OBJS:%.o=$(LINTS_DIR)/%.ln)
42 ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
45 # Include common rules.
47 include $(UTSBASE)/intel/Makefile.intel
50 # Define targets
52 ALL_TARGET = $(BINARY)
53 LINT_TARGET = $(MODULE).lint
54 INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
56 CFLAGS += -DC99_NOT_SUPPORTED -DCONFIG_CHELSIO_T1_1G \
57 -I$(UTSBASE)/common/io/chxge/ \
58 -I$(UTSBASE)/common/io/chxge/com
60 CFLAGS += -DCONFIG_SMP
62 CFLAGS += -DRX_MAX_COUNT=256
64 CFLAGS += -DCONFIG_CHELSIO_T1_OFFLOAD
66 CFLAGS += -DSUN_KSTATS -DHOST_PAUSE -DTX_CKSUM_FIX -DTX_THREAD_RECLAIM
68 CFLAGS += -xc99=%all
70 # Debug flags
71 # CFLAGS += -DCH_DEBUG=1 -DPE_DBGOUT_ENABLED=1
74 # Driver depends on GLD & IP
76 LDFLAGS += -dy -N misc/gld -N drv/ip
78 # Lint flag
80 LINTFLAGS += -DC99_NOT_SUPPORTED -DCONFIG_CHELSIO_T1_1G \
81 -I$(UTSBASE)/common/io/chxge/ \
82 -I$(UTSBASE)/common/io/chxge/com
84 LINTFLAGS += -DCONFIG_SMP
86 LINTFLAGS += -DRX_MAX_COUNT=256
88 LINTFLAGS += -DCONFIG_CHELSIO_T1_OFFLOAD
90 LINTFLAGS += -DSUN_KSTATS -DHOST_PAUSE -DTX_CKSUM_FIX -DTX_THREAD_RECLAIM
92 LINTFLAGS += -Xc99=%all
95 # For now, disable these lint checks; maintainers should endeavor
96 # to investigate and remove these for maximum lint coverage.
97 # Please do not carry these forward to new Makefiles.
99 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
100 LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
101 LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
102 LINTTAGS += -erroff=E_STATIC_UNUSED
104 CERRWARN += -_gcc=-Wno-unused-label
105 CERRWARN += -_gcc=-Wno-unused-function
106 CERRWARN += -_gcc=-Wno-unused-variable
107 CERRWARN += -_gcc=-Wno-parentheses
111 # Default build targets.
113 .KEEP_STATE:
115 def: $(DEF_DEPS)
117 all: $(ALL_DEPS)
119 clean: $(CLEAN_DEPS)
121 clobber: $(CLOBBER_DEPS)
123 lint: $(LINT_DEPS)
125 modlintlib: $(MODLINTLIB_DEPS)
127 clean.lint: $(CLEAN_LINT_DEPS)
129 install: $(INSTALL_DEPS)
132 # Include common targets.
134 include $(UTSBASE)/intel/Makefile.targ