8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / uts / intel / daplt / Makefile
blobedc6de73ab230ab1cae1bc81c9307c473cb5d664
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 2007 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
28 # Paths to the base of the uts directory trees
30 UTSBASE = ../..
33 # Define the module and object file sets.
35 MODULE = daplt
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
50 # Define targets
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
62 # Overrides.
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.
82 .KEEP_STATE:
84 def: $(DEF_DEPS)
86 all: $(ALL_DEPS)
88 clean: $(CLEAN_DEPS)
89 $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
91 clobber: $(CLOBBER_DEPS)
92 $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
94 lint: $(LINT_DEPS)
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.
110 WARLOCK = warlock
111 WLCC = wlcc
112 TOUCH = touch
113 TEST = test
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
120 $(TOUCH) $@
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 $@ $<
127 warlock_ddi.files:
128 @cd $(UTSBASE)/intel/warlock; pwd; $(MAKE) warlock