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 2008 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
28 # This makefile drives the production of the tem module
30 # sparc implementation architecture dependent
34 # Path to the base of the uts directory tree (usually /usr/src/uts).
39 # Define the module and object file sets.
42 OBJECTS
= $(TEM_OBJS
:%=$(OBJS_DIR
)/%)
44 LINTS
= $(TEM_OBJS
:%.o
=$(LINTS_DIR
)/%.ln
)
45 ROOTMODULE
= $(ROOT_MISC_DIR
)/$(MODULE
)
46 WARLOCK_OUT
= $(TEM_OBJS
:%.o
=%.ll
)
47 WARLOCK_OK
= $(MODULE
).ok
48 WLCMD_DIR
= $(UTSBASE
)/common
/io
/warlock
51 # Include common rules.
53 include $(UTSBASE
)/sparc
/Makefile.sparc
58 ALL_TARGET
= $(BINARY
)
59 LINT_TARGET
= $(MODULE
).lint
60 INSTALL_TARGET
= $(BINARY
) $(ROOTMODULE
)
62 CFLAGS
+= $(CCVERBOSE
)
64 LDFLAGS
+= -dy
-Ndacf
/consconfig_dacf
67 # For now, disable these lint checks; maintainers should endeavor
68 # to investigate and remove these for maximum lint coverage.
69 # Please do not carry these forward to new Makefiles.
71 LINTTAGS
+= -erroff
=E_STATIC_UNUSED
73 CERRWARN
+= -_gcc
=-Wno-unused-function
74 CERRWARN
+= -_gcc
=-Wno-uninitialized
77 # Default build targets.
87 clobber: $(CLOBBER_DEPS
)
91 modlintlib
: $(MODLINTLIB_DEPS
)
93 clean.lint
: $(CLEAN_LINT_DEPS
)
95 install: $(INSTALL_DEPS
)
98 # Include common targets.
100 include $(UTSBASE
)/sparc
/Makefile.targ
103 # Defines for local commands
114 warlock
: $(WARLOCK_OUT
) warlock_ddi.files
115 $(WARLOCK
) -c
$(WLCMD_DIR
)/tem.wlcmd
$(WARLOCK_OUT
) \
116 -l ..
/..
/sparc
/warlock
/ddi_dki_impl.ll
117 $(TOUCH
) $(WARLOCK_OK
)
119 %.ll
: $(UTSBASE
)/common
/io
/%.c
120 $(WLCC
) $(CPPFLAGS
) -DDEBUG
-o
$@
$<
123 @cd ..
/..
/sparc
/warlock
; pwd
; $(MAKE
) warlock