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]
23 # Copyright 2007 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
28 # Paths to the base of the uts directory trees
33 # Define the module and object file sets.
36 OBJECTS
= $(DAPLT_OBJS
:%=$(OBJS_DIR
)/%)
37 LINTS
= $(DAPLT_OBJS
:%.o
=$(LINTS_DIR
)/%.ln
)
38 ROOTMODULE
= $(ROOT_DRV_DIR
)/$(MODULE
)
39 CONF_SRCDIR
= $(UTSBASE
)/common
/io
/ib
/clients
/daplt
40 LDFLAGS
+= -dy
-Nmisc
/ibtl
-Nmisc
/ibcm
41 WARLOCK_OUT
= $(DAPLT_OBJS
:%.o
=%.ll
)
42 WARLOCK_OK
= $(MODULE
).ok
43 WLCMD_DIR
= $(UTSBASE
)/common
/io
/warlock
45 # Include common rules.
47 include $(UTSBASE
)/intel
/Makefile.intel
52 ALL_TARGET
= $(BINARY
) $(SRC_CONFILE
)
53 LINT_TARGET
= $(MODULE
).lint
54 INSTALL_TARGET
= $(BINARY
) $(ROOTMODULE
) $(ROOT_CONFFILE
)
57 # path for header files
59 INCLUDE_PATH
+= -I
$(UTSBASE
)/common
/sys
/ib
/clients
/daplt
66 # For now, disable these lint checks; maintainers should endeavor
67 # to investigate and remove these for maximum lint coverage.
68 # Please do not carry these forward to new Makefiles.
70 LINTTAGS
+= -erroff
=E_BAD_PTR_CAST_ALIGN
71 LINTTAGS
+= -erroff
=E_ASSIGN_NARROW_CONV
72 LINTTAGS
+= -erroff
=E_STATIC_UNUSED
74 CERRWARN
+= -_gcc
=-Wno-parentheses
75 CERRWARN
+= -_gcc
=-Wno-unused-variable
76 CERRWARN
+= -_gcc
=-Wno-unused-function
77 CERRWARN
+= -_gcc
=-Wno-uninitialized
80 # Default build targets.
89 $(RM
) $(WARLOCK_OUT
) $(WARLOCK_OK
)
91 clobber: $(CLOBBER_DEPS
)
92 $(RM
) $(WARLOCK_OUT
) $(WARLOCK_OK
)
96 modlintlib
: $(MODLINTLIB_DEPS
)
98 clean.lint
: $(CLEAN_LINT_DEPS
)
100 install: $(INSTALL_DEPS
)
103 # Include common targets.
105 include $(UTSBASE
)/intel
/Makefile.targ
108 # Defines for local commands.
115 warlock
: $(WARLOCK_OK
)
117 $(WARLOCK_OK
): $(WARLOCK_OUT
) $(WLCMD_DIR
)/daplt.wlcmd warlock_ddi.files
118 $(WARLOCK
) -c
$(WLCMD_DIR
)/daplt.wlcmd
$(WARLOCK_OUT
) \
119 -l
$(UTSBASE
)/intel
/warlock
/ddi_dki_impl.ll
122 %.ll
: $(UTSBASE
)/common
/io
/ib
/clients
/daplt
/%.c \
123 $(UTSBASE
)/common
/sys
/ib
/clients
/daplt
/daplt.h \
124 $(UTSBASE
)/common
/sys
/ib
/clients
/daplt
/daplt_if.h
125 $(WLCC
) $(CPPFLAGS
) -DDEBUG
-o
$@
$<
128 @cd
$(UTSBASE
)/intel
/warlock
; pwd
; $(MAKE
) warlock