xref: /titanic_41/usr/src/uts/sun4u/serengeti/genassym/Makefile (revision 3db86aab554edbb4244c8d1a1c90f152eee768af)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26
27#pragma ident	"%Z%%M%	%I%	%E% SMI"
28
29#
30#	This makefile drives the production of assym.h through genconst/stabs.
31#
32#	sun4u serengeti implementation architecture dependent
33#
34
35#
36#	Path to the base of the uts directory tree (usually /usr/src/uts).
37#
38UTSBASE	= ../../..
39
40ASSYM_H			= $(DSF_DIR)/$(OBJS_DIR)/assym.h
41GENCONST		= $(DSF_DIR)/$(OBJS_DIR)/genconst
42
43#
44#	Include common rules.
45#
46include $(UTSBASE)/sun4u/serengeti/Makefile.serengeti
47
48#
49#	Define targets
50#
51ALL_TARGET	= $(ASSYM_H)
52
53#
54# This is DSF_DIR.  Use a short path.
55#
56DSF_DIR		= .
57
58#
59#	Overrides
60#
61CLEANFILES	= $(GENCONST) Nothing_to_remove
62CLOBBERFILES	= $(ASSYM_H) $(CLEANFILES) Nothing_to_remove
63ALL_BUILDS	= $(ALL_BUILDSONLY64)
64DEF_BUILDS	= $(DEF_BUILDSONLY64)
65CLEANLINTFILES	+= $(LINT32_FILES)
66
67#
68#	Default build targets.
69#
70.KEEP_STATE:
71
72def:		$(DEF_DEPS)
73
74all:		$(ALL_DEPS)
75
76clean:		$(CLEAN_DEPS)
77
78clobber:	$(CLOBBER_DEPS)
79
80clean.lint:
81
82install:	def
83
84#
85#	create assym.h
86#
87$(GENCONST):    $(GENCONST_SRC)
88	$(NATIVECC) -w $(ALWAYS_DEFS) $(GENCONST_DEFS) $(NATIVE_INC_PATH) \
89	    -o $(GENCONST) $(GENCONST_SRC)
90
91$(ASSYM_H): $(GENCONST) $(OFFSETS) $(PLATFORM_OFFSETS)
92	$(OFFSETS_CREATE) <$(OFFSETS) >$@
93	$(OFFSETS_CREATE) <$(PLATFORM_OFFSETS) >>$@
94	$(GENCONST) >>$@
95
96#
97#	Include common targets.
98#
99include $(UTSBASE)/sun4u/serengeti/Makefile.targ
100