kernel: remove unused utsname_set_machine()
[unleashed.git] / usr / src / uts / sun4u / cheetah / Makefile
blob4d76db76e4d431fbcf9e623c91b974e33aac0c96
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 2009 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
28 # This makefile drives the production of the sun4u UltraSPARC driver
29 # module.
31 # sun4u implementation 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 = SUNW,UltraSPARC-III
43 OBJECTS = $(CHEETAH_OBJS:%=$(OBJS_DIR)/%)
44 ROOTMODULE = $(ROOT_PSM_CPU_DIR)/$(MODULE)
45 ROOTSOFTLINKS = $(SOFTLINKS:%=$(ROOT_PSM_CPU_DIR)/%)
47 CPU_DIR = .
48 HERE = ../cheetah
51 # Include common rules.
53 include $(UTSBASE)/sun4u/Makefile.sun4u
56 # Override defaults
58 CLEANFILES += $(CPULIB) $(SYM_MOD)
61 # Define targets
63 ALL_TARGET = $(SYM_MOD)
64 INSTALL_TARGET = def $(BINARY) $(ROOTMODULE) $(ROOTSOFTLINKS)
67 # cpu-module-specific flags
69 CPPFLAGS += -DCPU_MODULE -DCHEETAH
70 AS_CPPFLAGS += -DCPU_MODULE -DCHEETAH
73 # Default build targets.
75 .KEEP_STATE:
77 def: $(DEF_DEPS)
79 all: $(ALL_DEPS)
81 clean: $(CLEAN_DEPS)
83 clobber: $(CLOBBER_DEPS)
85 install: $(INSTALL_DEPS)
87 $(CPULIB): $(BINARY)
88 $(BUILD.SO) $(BINARY)
90 $(SYM_MOD): $(UNIX_O) $(CPULIB)
91 @echo "resolving symbols against unix.o"
92 @(cd $(UNIX_DIR); pwd; \
93 CPU_DIR=$(HERE) SYM_MOD=$(HERE)/$(SYM_MOD) $(MAKE) symcheck)
95 $(ROOTSOFTLINKS): $(ROOTMODULE)
96 $(RM) $@; $(SYMLINK) $(MODULE) $@
98 # Include common targets.
100 include $(UTSBASE)/sun4u/Makefile.targ
103 # For now, disable these compiler warnings; maintainers should endeavor to
104 # investigate and remove these for maximum coverage. Please do not carry
105 # these forward to new Makefiles.
108 CERRWARN += -Wno-parentheses
109 CERRWARN += -Wno-uninitialized
110 CERRWARN += -Wno-type-limits
111 CERRWARN += -Wno-clobbered