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]
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
24 # Copyright (c) 2011 Bayard G. Bell. All rights reserved.
26 # This makefile drives the production of the emlxs driver kernel module.
28 # Path to the base of the uts directory tree (usually /usr/src/uts).
31 COMMON_BASE
= ..
/..
/..
/common
34 # Define the module and object file sets.
37 OBJECTS
= $(EMLXS_OBJS
:%=$(OBJS_DIR
)/%)
38 ROOTMODULE
= $(ROOT_DRV_DIR
)/$(MODULE
)
39 CONF_SRCDIR
= $(UTSBASE
)/common
/io
/fibre-channel
/fca
/emlxs
42 # Include common rules.
45 include ..
/Makefile.
$(ARCHDIR
)
50 ALL_TARGET
= $(BINARY
) $(SRC_CONFFILE
)
51 INSTALL_TARGET
= $(BINARY
) $(ROOTMODULE
) $(ROOT_CONFFILE
)
53 EMLXS_FLAGS
= -DEMLXS_SPARC
55 EMLXS_FLAGS
+= -DVERSION
=\"11\"
56 EMLXS_FLAGS
+= -DMACH
=\"$(MACH
)\"
57 EMLXS_CFLAGS
= $(EMLXS_FLAGS
)
58 EMLXS_LFLAGS
= $(EMLXS_FLAGS
)
59 CFLAGS
+= $(EMLXS_CFLAGS
) -DEMLXS_ARCH
=\"64\"
63 # Overrides and depends_on
65 INC_PATH
+= -I
$(ROOT
)/usr
/include
66 INC_PATH
+= -I
$(UTSBASE
)/common
/sys
67 INC_PATH
+= -I
$(COMMON_BASE
)/bignum
68 INC_PATH
+= -I
$(UTSBASE
)/common
/sys
/fibre-channel
69 INC_PATH
+= -I
$(UTSBASE
)/common
/sys
/fibre-channel
/fca
70 INC_PATH
+= -I
$(UTSBASE
)/common
/sys
/fibre-channel
/fca
/emlxs
71 INC_PATH
+= -I
$(UTSBASE
)/common
/sys
/fibre-channel
/impl
72 INC_PATH
+= -I
$(UTSBASE
)/common
/sys
/fibre-channel
/ulp
74 LDFLAGS
+= -dy
-Nmisc
/md5
-Nmisc
/sha1
75 LDFLAGS
+= -Nmisc
/bignum
-Nmisc
/fctl
78 # For now, disable these compiler warnings; maintainers should endeavor to
79 # investigate and remove these for maximum coverage. Please do not carry
82 CERRWARN
+= -Wno-parentheses
83 CERRWARN
+= -Wno-unused-label
84 CERRWARN
+= -Wno-uninitialized
87 # Default build targets.
97 clobber: $(CLOBBER_DEPS
)
99 install: $(INSTALL_DEPS
)
102 # Include common targets.
104 include ..
/Makefile.targ