1*142c9f13Sbala# 2*142c9f13Sbala# CDDL HEADER START 3*142c9f13Sbala# 4*142c9f13Sbala# The contents of this file are subject to the terms of the 5*142c9f13Sbala# Common Development and Distribution License (the "License"). 6*142c9f13Sbala# You may not use this file except in compliance with the License. 7*142c9f13Sbala# 8*142c9f13Sbala# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*142c9f13Sbala# or http://www.opensolaris.org/os/licensing. 10*142c9f13Sbala# See the License for the specific language governing permissions 11*142c9f13Sbala# and limitations under the License. 12*142c9f13Sbala# 13*142c9f13Sbala# When distributing Covered Code, include this CDDL HEADER in each 14*142c9f13Sbala# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*142c9f13Sbala# If applicable, add the following below this CDDL HEADER, with the 16*142c9f13Sbala# fields enclosed by brackets "[]" replaced with your own identifying 17*142c9f13Sbala# information: Portions Copyright [yyyy] [name of copyright owner] 18*142c9f13Sbala# 19*142c9f13Sbala# CDDL HEADER END 20*142c9f13Sbala# 21*142c9f13Sbala# 22*142c9f13Sbala# 23*142c9f13Sbala# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 24*142c9f13Sbala# Use is subject to license terms. 25*142c9f13Sbala# 26*142c9f13Sbala#pragma ident "%Z%%M% %I% %E% SMI" 27*142c9f13Sbala# 28*142c9f13Sbala# This makefile drives the production of assym.h through genconst/stabs. 29*142c9f13Sbala# 30*142c9f13Sbala# sun4u implementation architecture dependent 31*142c9f13Sbala# 32*142c9f13Sbala 33*142c9f13Sbala# 34*142c9f13Sbala# Path to the base of the uts directory tree (usually /usr/src/uts). 35*142c9f13Sbala# 36*142c9f13SbalaUTSBASE = ../../.. 37*142c9f13Sbala 38*142c9f13SbalaASSYM_H = $(DSF_DIR)/$(OBJS_DIR)/assym.h 39*142c9f13SbalaGENCONST = $(DSF_DIR)/$(OBJS_DIR)/genconst 40*142c9f13SbalaOFFSETS_C = $(DSF_DIR)/$(OBJS_DIR)/offsets.c 41*142c9f13SbalaOFFSETS_S = $(DSF_DIR)/$(OBJS_DIR)/offsets.s 42*142c9f13SbalaOFFSETS_TMP = $(DSF_DIR)/$(OBJS_DIR)/offsets.tmp 43*142c9f13SbalaOFFSETS_OUT = $(DSF_DIR)/$(OBJS_DIR)/offsets.out 44*142c9f13SbalaOFFSETS_MACH_OUT = $(DSF_DIR)/$(OBJS_DIR)/mach_offsets.out 45*142c9f13Sbala 46*142c9f13Sbala# 47*142c9f13Sbala# Include common rules. 48*142c9f13Sbala# 49*142c9f13Sbalainclude $(UTSBASE)/sun4u/Makefile.sun4u 50*142c9f13Sbala 51*142c9f13Sbala# 52*142c9f13Sbala# Define targets 53*142c9f13Sbala# 54*142c9f13SbalaALL_TARGET = $(ASSYM_H) 55*142c9f13Sbala 56*142c9f13Sbala# 57*142c9f13Sbala# This is DSF_DIR. Use a short path. 58*142c9f13Sbala# 59*142c9f13SbalaDSF_DIR = . 60*142c9f13Sbala 61*142c9f13Sbala# 62*142c9f13Sbala# Overrides 63*142c9f13Sbala# 64*142c9f13SbalaCLEANFILES = $(GENCONST) $(OFFSETS_OUT) $(OFFSETS_MACH_OUT) $(OFFSETS_C) \ 65*142c9f13Sbala $(OFFSETS_S) $(OFFSETS_TMP) Nothing_to_remove 66*142c9f13SbalaCLOBBERFILES = $(ASSYM_H) $(CLEANFILES) Nothing_to_remove 67*142c9f13Sbala 68*142c9f13Sbala# 69*142c9f13Sbala# Default build targets. 70*142c9f13Sbala# 71*142c9f13Sbala.KEEP_STATE: 72*142c9f13Sbala 73*142c9f13Sbaladef: $(DEF_DEPS) 74*142c9f13Sbala 75*142c9f13Sbalaall: $(ALL_DEPS) 76*142c9f13Sbala 77*142c9f13Sbalaclean: $(CLEAN_DEPS) 78*142c9f13Sbala 79*142c9f13Sbalaclobber: $(CLOBBER_DEPS) 80*142c9f13Sbala 81*142c9f13Sbalaclean.lint: 82*142c9f13Sbala 83*142c9f13Sbalainstall: def 84*142c9f13Sbala 85*142c9f13Sbalainstall_h: 86*142c9f13Sbala 87*142c9f13Sbala# 88*142c9f13Sbala# create assym.h 89*142c9f13Sbala# 90*142c9f13Sbala$(GENCONST): $(GENCONST_SRC) 91*142c9f13Sbala $(NATIVECC) -w $(ALWAYS_DEFS) $(GENCONST_DEFS) $(NATIVE_INC_PATH) \ 92*142c9f13Sbala -o $(GENCONST) $(GENCONST_SRC) 93*142c9f13Sbala 94*142c9f13Sbala 95*142c9f13Sbala$(ASSYM_H): $(GENCONST) $(OFFSETS) $(PLATFORM_OFFSETS) 96*142c9f13Sbala $(OFFSETS_CREATE) <$(OFFSETS) >$@ 97*142c9f13Sbala $(OFFSETS_CREATE) <$(PLATFORM_OFFSETS) >>$@ 98*142c9f13Sbala $(GENCONST) >>$@ 99*142c9f13Sbala 100*142c9f13Sbala# 101*142c9f13Sbala# Include common targets. 102*142c9f13Sbala# 103*142c9f13Sbalainclude $(UTSBASE)/sun4u/Makefile.targ 104