8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / uts / intel / hci1394 / Makefile
blob324bfaad1e316dc427a0444b316117b0c8ec1a70
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
22 # uts/intel/hci1394/Makefile
24 # Copyright 2007 Sun Microsystems, Inc. All rights reserved.
25 # Use is subject to license terms.
29 # This makefile drives the production of the hci1394 OHCI HAL module.
31 # intel architecture dependent
35 # Path to the base of the uts directory tree (usually /usr/src/uts).
37 UTSBASE = ../..
40 # Define the module and object file sets.
42 MODULE = hci1394
43 OBJECTS = $(HCI1394_OBJS:%=$(OBJS_DIR)/%)
44 LINTS = $(HCI1394_OBJS:%.o=$(LINTS_DIR)/%.ln)
45 ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
46 CONF_SRCDIR = $(UTSBASE)/common/io/1394/adapters
47 LDFLAGS += -dy -Nmisc/s1394
48 WARLOCK_OUT = $(HCI1394_OBJS:%.o=%.ll)
49 WARLOCK_OK = $(MODULE).ok
50 WLCMD_DIR = $(UTSBASE)/common/io/warlock
53 # Include common rules.
55 include $(UTSBASE)/intel/Makefile.intel
58 # Define targets
60 ALL_TARGET = $(BINARY) $(SRC_CONFILE)
61 LINT_TARGET = $(MODULE).lint
62 INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
65 # Overrides
67 #ALL_BUILDS = $(ALL_BUILDSONLY64)
68 #DEF_BUILDS = $(DEF_BUILDSONLY64)
69 CLEANLINTFILES += $(LINT32_FILES)
71 DEBUG_DEFS_DBG32 += -DTNF_DEBUG
72 #DEBUG_DEFS_DBG64 += -DTNF_DEBUG
75 # For now, disable these lint checks; maintainers should endeavor
76 # to investigate and remove these for maximum lint coverage.
77 # Please do not carry these forward to new Makefiles.
79 LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
80 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
81 LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
82 LINTTAGS += -erroff=E_STATIC_UNUSED
83 LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
84 LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
86 CERRWARN += -_gcc=-Wno-uninitialized
87 CERRWARN += -_gcc=-Wno-parentheses
90 # Default build targets.
92 .KEEP_STATE:
94 def: $(DEF_DEPS)
96 all: $(ALL_DEPS)
98 clean: $(CLEAN_DEPS)
99 $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
101 clobber: $(CLOBBER_DEPS)
102 $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
104 lint: $(LINT_DEPS)
106 modlintlib: $(MODLINTLIB_DEPS)
108 clean.lint: $(CLEAN_LINT_DEPS)
110 install: $(INSTALL_DEPS)
113 # Include common targets.
115 include $(UTSBASE)/intel/Makefile.targ
118 # Defines for local commands.
120 WARLOCK = warlock
121 WLCC = wlcc
122 TOUCH = touch
123 TEST = test
126 # Warlock targets
128 S1394_FILES = $(S1394_OBJS:%.o= -l ../s1394/%.ll)
130 warlock: $(WARLOCK_OK)
132 $(WARLOCK_OK): $(WARLOCK_OUT) s1394.files warlock_ddi.files \
133 $(WLCMD_DIR)/hci1394.wlcmd
134 $(WARLOCK) -c $(WLCMD_DIR)/hci1394.wlcmd $(WARLOCK_OUT) $(S1394_FILES) \
135 -l ../warlock/ddi_dki_impl.ll
136 $(TOUCH) $@
138 %.ll: $(UTSBASE)/common/io/1394/adapters/%.c
139 $(WLCC) $(CPPFLAGS) -DNPROBE -DDEBUG -o $@ $<
141 warlock_ddi.files:
142 @cd ../warlock; pwd; $(MAKE) warlock
144 s1394.files:
145 @cd ../s1394; pwd; $(MAKE) warlock