xref: /illumos-gate/usr/src/uts/sun4/Makefile.rules (revision 0aaef2f5)
1#
2# CDDL HEADER START
3#
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.
7#
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.
12#
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]
18#
19# CDDL HEADER END
20#
21
22#
23# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26
27#
28#	This Makefile defines the build rules for the directory uts/sun4
29#	and its children. These are the source files which are generic
30#	to the sun4* machine classes.
31#
32#	The following ordering must be maintained in this file.
33#	  Lines whose initial directory components are equal are sorted
34#	  alphabetically by the remaining components.
35
36#
37#	Section 1a: C object build rules
38#
39SUN4_BASE=$(UTSBASE)/sun4
40
41$(OBJS_DIR)/%.o:		$(SUN4_BASE)/conf/%.c
42	$(COMPILE.c) -o $@ $<
43	$(CTFCONVERT_O)
44
45$(OBJS_DIR)/%.o:		$(SUN4_BASE)/conf/%.s
46	$(COMPILE.s) -o $@ $<
47
48$(OBJS_DIR)/%.o:		$(SUN4_BASE)/cpu/%.c
49	$(COMPILE.c) -o $@ $<
50	$(CTFCONVERT_O)
51
52$(OBJS_DIR)/%.o:		$(SUN4_BASE)/cpu/%.s
53	$(COMPILE.s) -o $@ $<
54
55$(OBJS_DIR)/%.o:		$(SUN4_BASE)/io/%.c
56	$(COMPILE.c) -o $@ $<
57	$(CTFCONVERT_O)
58
59$(OBJS_DIR)/%.o:		$(SUN4_BASE)/io/efcode/%.c
60	$(COMPILE.c) -o $@ $<
61	$(CTFCONVERT_O)
62
63$(OBJS_DIR)/%.o:		$(SUN4_BASE)/io/pci/%.c
64	$(COMPILE.c) -o $@ $<
65	$(CTFCONVERT_O)
66
67$(OBJS_DIR)/%.o:		$(SUN4_BASE)/io/px/%.c
68	$(COMPILE.c) -o $@ $<
69	$(CTFCONVERT_O)
70
71$(OBJS_DIR)/%.o:		$(SUN4_BASE)/io/fpc/%.c
72	$(COMPILE.c) -o $@ $<
73	$(CTFCONVERT_O)
74
75$(OBJS_DIR)/%.o:		$(SUN4_BASE)/ml/%.s
76	$(COMPILE.s) -o $@ $<
77
78$(OBJS_DIR)/%.o:		$(SUN4_BASE)/os/%.c
79	$(COMPILE.c) -o $@ $<
80	$(CTFCONVERT_O)
81
82$(OBJS_DIR)/%.o:		$(SUN4_BASE)/vm/%.c
83	$(COMPILE.c) -o $@ $<
84	$(CTFCONVERT_O)
85
86$(OBJS_DIR)/%.o:		$(SUN4_BASE)/ebus/%.c
87	$(COMPILE.c) -o $@ $<
88	$(CTFCONVERT_O)
89