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# ident "%Z%%M% %I% %E% SMI" 27# 28 29include ../../../Makefile.master 30 31sparcv9_ARCHITECTURES = sparcv9 32sparc_ARCHITECTURES = $(sparcv9_ARCHITECTURES) 33i386_ARCHITECTURES = i386 34 35SUBDIRS = $($(MACH)_ARCHITECTURES) 36 37all := TARGET= all 38install := TARGET= install 39clean := TARGET= clean 40clobber := TARGET= clobber 41lint := TARGET= lint 42 43.KEEP_STATE: 44 45all install lint clean: $(SUBDIRS) 46 47clobber: $(SUBDIRS) 48 $(RM) make.out lint.out 49 50$(SUBDIRS): FRC 51 @cd $@; pwd; $(MAKE) $(TARGET) 52 53# 54# Cross-reference customization: include all boot-related source files. 55# 56UTSDIR = ../../../uts 57STANDLIBDIR = ../../../stand/lib 58STANDSYSDIRS = ../../../stand/sys ../../../stand/i386/sys 59PROMDIRS = ../../promif $(UTSDIR)/intel/promif 60NAMESDIRS = ../lib/names 61XRDIRS += $(STANDLIBDIR) $(STANDSYSDIRS) $(PROMDIRS) $(NAMESDIRS) 62XRINCDIRS = $(UTSDIR)/sun4u $(UTSDIR)/sfmmu $(UTSDIR)/sparc/v7 \ 63 $(UTSDIR)/sparc/v9 $(UTSDIR)/sparc $(UTSDIR)/sun \ 64 $(UTSDIR)/common $(UTSDIR)/intel $(UTSDIR)/i86pc 65 66cscope.out tags: FRC 67 $(XREF) -x $@ 68 69FRC: 70 71# EXPORT DELETE START 72EXPORT_SRC: 73 $(RM) sparc/common/wanboot.c+ 74 sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \ 75 < sparc/common/wanboot.c > sparc/common/wanboot.c+ 76 $(MV) sparc/common/wanboot.c+ sparc/common/wanboot.c 77 $(CHMOD) 444 sparc/common/wanboot.c 78 $(RM) sparc/common/wbcli.c+ 79 sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \ 80 < sparc/common/wbcli.c > sparc/common/wbcli.c+ 81 $(MV) sparc/common/wbcli.c+ sparc/common/wbcli.c 82 $(CHMOD) 444 sparc/common/wbcli.c 83 $(RM) sparc/common/ramdisk.c+ 84 sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \ 85 < sparc/common/ramdisk.c > sparc/common/ramdisk.c+ 86 $(MV) sparc/common/ramdisk.c+ sparc/common/ramdisk.c 87 $(CHMOD) 444 sparc/common/ramdisk.c 88 $(RM) sparcv9/Makefile.com+ 89 sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \ 90 < sparcv9/Makefile.com > sparcv9/Makefile.com+ 91 $(MV) sparcv9/Makefile.com+ sparcv9/Makefile.com 92 $(CHMOD) 444 sparcv9/Makefile.com 93 $(RM) Makefile+ 94 sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \ 95 < Makefile > Makefile+ 96 $(RM) Makefile 97 $(MV) Makefile+ Makefile 98 $(CHMOD) 444 Makefile 99# EXPORT DELETE END 100