Makefile.com revision 53391baf4e45c693cf123555e9617b5e1e0b641a
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License"). You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
#ident "%Z%%M% %I% %E% SMI"
#
# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
BOOTSRCDIR = ../..
PLAT_DIR = .
MACH_C_SRC += get.c
BOOT_L_OBJS = $(BOOT_OBJS:%.o=%.ln)
CONF_L_OBJS = $(CONF_OBJS:%.o=%.ln)
MISC_L_OBJS = $(MISC_OBJS:%.o=%.ln)
SRT0_L_OBJ = $(SRT0_OBJ:%.o=%.ln)
C_SRC += $(PLAT_C_SRC)
CPPINCS += -I$(TOP_CMN_DIR)
CPPINCS += -I$(PSMSYSHDRDIR)
#
# Until we are building on a MACH=sparcv9 machine, we have to override
# where to look for libraries.
#
#
# The following libraries are built in LIBNAME_DIR
#
#
# The following libraries are built in LIBPROM_DIR
#
#
# The following libraries are built in LIBSYS_DIR
#
LIBSYS_DIR += $(SYSLIBDIR)
#
# Used to convert ELF to an a.out and ensure alignment
#
#
# Program used to post-process the ELF executables
#
$(BOOT_L_OBJS)
# 4.2 ufs filesystem booter
#
# Libraries used to build ufsboot
#
UFS_LIBS = $(LIBUFS_LIBS:lib%.a=-l%)
#
# Note that the presumption is that someone has already done a `make
#
#
# Loader flags used to build ufsboot
#
UFS_L_LDFLAGS = $(UFS_DIRS)
#
# Object files used to build ufsboot
#
#
# Build rules to build ufsboot
#
$(MCS) -d $@
$(POST_PROCESS)
$(POST_PROCESS)
$(MCS) -c $@
$(STRIP) $@
@echo ""
# WANboot booter
#
# Libraries used to build wanboot
#
# EXPORT DELETE START
# EXPORT DELETE END
LIBWAN_LIBS = \
$(LIBWANBOOT) \
$(LIBSSL) \
$(LIBPLAT_LIBS)
WAN_LIBS = $(LIBWAN_LIBS:lib%.a=-l%)
#
# Loader flags used to build wanboot
#
WAN_L_LDFLAGS = $(WAN_DIRS)
#
# Object files used to build wanboot
#
#
# Build rules to build wanboot
#
$(MCS) -d $@
$(POST_PROCESS)
$(POST_PROCESS)
$(MCS) -c $@
$(STRIP) $@
@echo ""
# High-sierra filesystem booter. Probably doesn't work.
#
# Libraries used to build hsfsboot
#
HSFS_LIBS = $(LIBHSFS_LIBS:lib%.a=-l%)
#
# Loader flags used to build hsfsboot
#
HSFS_L_LDFLAGS = $(HSFS_DIRS)
#
# Object files used to build hsfsboot
#
$(MCS) -d $@
$(POST_PROCESS)
$(POST_PROCESS)
$(MCS) -c $@
$(STRIP) $@
@echo ""
# NFS booter
#
# Libraries used to build nfsboot
#
$(LIBPLAT_LIBS)
NFS_LIBS = $(LIBNFS_LIBS:lib%.a=-l%)
#
# Loader flags used to build inetboot
#
NFS_L_LDFLAGS = $(NFS_DIRS)
#
# Object files used to build inetboot
#
$(MCS) -d $@
$(POST_PROCESS)
$(POST_PROCESS)
$(MCS) -c $@
#
# This is a bit strange because some platforms boot elf and some don't.
# So this rule strips the file no matter which ELFCONV is used.
#
@echo ""
$(SRT0_L_OBJ)