xref: /onnv-gate/usr/src/uts/i86pc/genassym/Makefile (revision 5295:a21f2449e5f9)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
53446Smrj# Common Development and Distribution License (the "License").
63446Smrj# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
210Sstevel@tonic-gate#
223446Smrj# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
230Sstevel@tonic-gate# Use is subject to license terms.
240Sstevel@tonic-gate#
250Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
260Sstevel@tonic-gate#
270Sstevel@tonic-gate#	This makefile drives the production of assym.h through
280Sstevel@tonic-gate#	compile time intialized data.
290Sstevel@tonic-gate#
300Sstevel@tonic-gate#	i86pc implementation architecture dependent
310Sstevel@tonic-gate#
320Sstevel@tonic-gate
330Sstevel@tonic-gate#
340Sstevel@tonic-gate#	Path to the base of the uts directory tree (usually /usr/src/uts).
350Sstevel@tonic-gate#
360Sstevel@tonic-gateUTSBASE	= ../..
370Sstevel@tonic-gate
380Sstevel@tonic-gateASSYM_H		= $(DSF_DIR)/$(OBJS_DIR)/assym.h
393446SmrjKDI_ASSYM_H	= $(DSF_DIR)/$(OBJS_DIR)/kdi_assym.h
400Sstevel@tonic-gateGENASSYM	= $(DSF_DIR)/$(OBJS_DIR)/genassym
410Sstevel@tonic-gate
420Sstevel@tonic-gate#
430Sstevel@tonic-gate#	Include common rules.
440Sstevel@tonic-gate#
450Sstevel@tonic-gateinclude $(UTSBASE)/i86pc/Makefile.i86pc
460Sstevel@tonic-gate
470Sstevel@tonic-gate#
480Sstevel@tonic-gate#	Define targets
490Sstevel@tonic-gate#
503446SmrjALL_TARGET	= $(ASSYM_H) $(KDI_ASSYM_H)
510Sstevel@tonic-gate
520Sstevel@tonic-gate#
530Sstevel@tonic-gate# This is DSF_DIR.  Use a short path.
540Sstevel@tonic-gate#
550Sstevel@tonic-gateDSF_DIR		= .
560Sstevel@tonic-gate
570Sstevel@tonic-gate
580Sstevel@tonic-gate#
590Sstevel@tonic-gate#	Overrides
600Sstevel@tonic-gate#
610Sstevel@tonic-gateCLEANFILES	= $(GENASSYM) Nothing_to_remove
623446SmrjCLOBBERFILES	= $(ASSYM_H) $(KDI_ASSYM.H) $(CLEANFILES) Nothing_to_remove
630Sstevel@tonic-gate
640Sstevel@tonic-gate#
650Sstevel@tonic-gate#	Default build targets.
660Sstevel@tonic-gate#
670Sstevel@tonic-gate.KEEP_STATE:
680Sstevel@tonic-gate
690Sstevel@tonic-gatedef:		$(DEF_DEPS)
700Sstevel@tonic-gate
710Sstevel@tonic-gateall:		$(ALL_DEPS)
720Sstevel@tonic-gate
730Sstevel@tonic-gateclean:		$(CLEAN_DEPS)
740Sstevel@tonic-gate
750Sstevel@tonic-gateclobber:	$(CLOBBER_DEPS)
760Sstevel@tonic-gate
770Sstevel@tonic-gateclean.lint:
780Sstevel@tonic-gate
790Sstevel@tonic-gateinstall:	def
800Sstevel@tonic-gate
81*5295SrandyfCPPFLAGS += -I../../i86pc/io/ppm
82*5295Srandyf
830Sstevel@tonic-gate#
840Sstevel@tonic-gate# Create assym.h
850Sstevel@tonic-gate#
860Sstevel@tonic-gate$(GENASSYM): $(GENASSYM_SRC)
870Sstevel@tonic-gate	$(NATIVECC) $(ALWAYS_DEFS) $(GENASSYM_DEFS) $(NATIVE_INC_PATH) \
880Sstevel@tonic-gate	   -o $@ $(GENASSYM_SRC)
890Sstevel@tonic-gate
900Sstevel@tonic-gate$(ASSYM_H): $(OFFSETS_SRC) $(PLATFORM_OFFSETS_SRC) $(GENASSYM)
910Sstevel@tonic-gate	$(OFFSETS_CREATE) <$(OFFSETS_SRC) >$@
920Sstevel@tonic-gate	$(OFFSETS_CREATE) <$(PLATFORM_OFFSETS_SRC) >>$@
930Sstevel@tonic-gate	$(GENASSYM) >>$@
940Sstevel@tonic-gate
953446Smrj$(KDI_ASSYM_H): $(KDI_OFFSETS_SRC) $(GENASSYM)
963446Smrj	$(OFFSETS_CREATE) <$(KDI_OFFSETS_SRC) >$@
973446Smrj	$(GENASSYM) >>$@
983446Smrj
990Sstevel@tonic-gate#
1000Sstevel@tonic-gate#	Include common targets.
1010Sstevel@tonic-gate#
1020Sstevel@tonic-gateinclude $(UTSBASE)/i86pc/Makefile.targ
103