kernel: remove unused utsname_set_machine()
[unleashed.git] / usr / src / uts / sun4u / chicago / fpc / Makefile
blob191a7095629af4ecf32cf8b9d039f8cde845835d
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 # uts/sun4u/chicago/fpc/Makefile
30 # This makefile drives the production of the sun4u
31 # fire performance counter kernel module
33 # sun4u implementation architecture dependent
37 # Path to the base of the uts directory tree (usually /usr/src/uts).
39 UTSBASE = ../../..
42 # Define the module and object file sets.
44 MODULE = fpc
45 OBJECTS = $(FPC_OBJS:%=$(OBJS_DIR)/%)
46 ROOTMODULE = $(ROOT_CHICAGO_DRV_DIR)/$(MODULE)
47 CONF_SRCDIR = $(UTSBASE)/sun4/io/fpc
49 ROOT_BOSTON_DIR = $(ROOT_PLAT_DIR)/SUNW,Sun-Fire-V445
50 ROOT_BOSTON_MOD_DIR = $(ROOT_BOSTON_DIR)/kernel
51 ROOT_BOSTON_DRV_DIR_32 = $(ROOT_BOSTON_MOD_DIR)/drv
52 ROOT_BOSTON_DRV_DIR_64 = $(ROOT_BOSTON_DRV_DIR_32)/$(SUBDIR64)
54 ROOT_SEATTLE_DIR = $(ROOT_PLAT_DIR)/SUNW,Sun-Fire-V215
55 ROOT_SEATTLE_MOD_DIR = $(ROOT_SEATTLE_DIR)/kernel
56 ROOT_SEATTLE_DRV_DIR_32 = $(ROOT_SEATTLE_MOD_DIR)/drv
57 ROOT_SEATTLE_DRV_DIR_64 = $(ROOT_SEATTLE_DRV_DIR_32)/$(SUBDIR64)
59 ROOTMODULE_SOFTLINK = $(ROOT_BOSTON_DRV_DIR_64:$(ROOT_BOSTON_DIR)%=../../../../SUNW,A70%/$(MODULE))
61 CONFFILE_SOFTLINK = $(ROOT_BOSTON_DRV_DIR_32:$(ROOT_BOSTON_DIR)%=../../../SUNW,A70%/$(CONFFILE))
63 BOSTON_ROOTMODULE = $(ROOT_BOSTON_DRV_DIR_64)/$(MODULE)
64 BOSTON_CONFFILE = $(ROOT_BOSTON_DRV_DIR_32)/$(CONFFILE)
66 SEATTLE_ROOTMODULE = $(ROOT_SEATTLE_DRV_DIR_64)/$(MODULE)
67 SEATTLE_CONFFILE = $(ROOT_SEATTLE_DRV_DIR_32)/$(CONFFILE)
70 # Include common rules.
72 include $(UTSBASE)/sun4u/chicago/Makefile.chicago
75 # Define targets
77 ALL_TARGET = $(BINARY) $(SRC_CONFFILE)
78 INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) \
79 $(BOSTON_ROOTMODULE) $(BOSTON_CONFFILE) \
80 $(SEATTLE_ROOTMODULE) $(SEATTLE_CONFFILE)
83 # Include SUN4 and SUN4U specific headers files
85 INC_PATH += -I$(UTSBASE)/sun4/io/fpc
89 # For now, disable these compiler warnings; maintainers should endeavor to
90 # investigate and remove these for maximum coverage. Please do not carry
91 # these forward to new Makefiles.
94 CERRWARN += -Wno-unused-variable
97 # Default build targets.
99 .KEEP_STATE:
101 def: $(DEF_DEPS)
103 all: $(ALL_DEPS)
105 clean: $(CLEAN_DEPS)
107 clobber: $(CLOBBER_DEPS)
109 install: $(INSTALL_DEPS)
111 $(ROOT_BOSTON_DIR): $(ROOT_PLAT_DIR)
112 -$(INS.dir)
114 $(ROOT_BOSTON_MOD_DIR): $(ROOT_BOSTON_DIR)
115 -$(INS.dir)
117 $(ROOT_BOSTON_DRV_DIR_32): $(ROOT_BOSTON_MOD_DIR)
118 -$(INS.dir)
120 $(ROOT_BOSTON_DRV_DIR_64): $(ROOT_BOSTON_DRV_DIR_32)
121 -$(INS.dir)
123 $(ROOT_SEATTLE_DIR): $(ROOT_PLAT_DIR)
124 -$(INS.dir)
126 $(ROOT_SEATTLE_MOD_DIR): $(ROOT_SEATTLE_DIR)
127 -$(INS.dir)
129 $(ROOT_SEATTLE_DRV_DIR_32): $(ROOT_SEATTLE_MOD_DIR)
130 -$(INS.dir)
132 $(ROOT_SEATTLE_DRV_DIR_64): $(ROOT_SEATTLE_DRV_DIR_32)
133 -$(INS.dir)
135 $(BOSTON_ROOTMODULE): $(ROOTMODULE) $(ROOT_BOSTON_DRV_DIR_64)
136 $(RM) $@; $(SYMLINK) $(ROOTMODULE_SOFTLINK) $@
138 $(BOSTON_CONFFILE): $(ROOT_CONFFILE) $(ROOT_BOSTON_DRV_DIR_32)
139 $(RM) $@; $(SYMLINK) $(CONFFILE_SOFTLINK) $@
141 $(SEATTLE_ROOTMODULE): $(ROOTMODULE) $(ROOT_SEATTLE_DRV_DIR_64)
142 $(RM) $@; $(SYMLINK) $(ROOTMODULE_SOFTLINK) $@
144 $(SEATTLE_CONFFILE): $(ROOT_CONFFILE) $(ROOT_SEATTLE_DRV_DIR_32)
145 $(RM) $@; $(SYMLINK) $(CONFFILE_SOFTLINK) $@
149 # Include common targets.
151 include $(UTSBASE)/sun4u/chicago/Makefile.targ