1af28f636SEnrico Perla - Sun Microsystems# 2af28f636SEnrico Perla - Sun Microsystems# CDDL HEADER START 3af28f636SEnrico Perla - Sun Microsystems# 4af28f636SEnrico Perla - Sun Microsystems# The contents of this file are subject to the terms of the 5af28f636SEnrico Perla - Sun Microsystems# Common Development and Distribution License (the "License"). 6af28f636SEnrico Perla - Sun Microsystems# You may not use this file except in compliance with the License. 7af28f636SEnrico Perla - Sun Microsystems# 8af28f636SEnrico Perla - Sun Microsystems# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9af28f636SEnrico Perla - Sun Microsystems# or http://www.opensolaris.org/os/licensing. 10af28f636SEnrico Perla - Sun Microsystems# See the License for the specific language governing permissions 11af28f636SEnrico Perla - Sun Microsystems# and limitations under the License. 12af28f636SEnrico Perla - Sun Microsystems# 13af28f636SEnrico Perla - Sun Microsystems# When distributing Covered Code, include this CDDL HEADER in each 14af28f636SEnrico Perla - Sun Microsystems# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15af28f636SEnrico Perla - Sun Microsystems# If applicable, add the following below this CDDL HEADER, with the 16af28f636SEnrico Perla - Sun Microsystems# fields enclosed by brackets "[]" replaced with your own identifying 17af28f636SEnrico Perla - Sun Microsystems# information: Portions Copyright [yyyy] [name of copyright owner] 18af28f636SEnrico Perla - Sun Microsystems# 19af28f636SEnrico Perla - Sun Microsystems# CDDL HEADER END 20af28f636SEnrico Perla - Sun Microsystems# 21af28f636SEnrico Perla - Sun Microsystems# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 22af28f636SEnrico Perla - Sun Microsystems# 23af28f636SEnrico Perla - Sun Microsystems 24af28f636SEnrico Perla - Sun MicrosystemsPROG= installboot 25af28f636SEnrico Perla - Sun Microsystems 26af28f636SEnrico Perla - Sun MicrosystemsEINFO_SRC= ./../common/bblk_einfo.c 27af28f636SEnrico Perla - Sun MicrosystemsUTILS_SRC =./../common/boot_utils.c 28af28f636SEnrico Perla - Sun MicrosystemsEXTRA_SRC =./../common/mboot_extra.c 29af28f636SEnrico Perla - Sun Microsystems 30af28f636SEnrico Perla - Sun MicrosystemsOBJS= installboot.o bblk_einfo.o boot_utils.o mboot_extra.o 31af28f636SEnrico Perla - Sun MicrosystemsSRCS= installboot.c $(UTILS_SRC) $(EINFO_SRC) $(EXTRA_SRC) 32af28f636SEnrico Perla - Sun Microsystems 33af28f636SEnrico Perla - Sun Microsystemsinclude ../Makefile.com 34af28f636SEnrico Perla - Sun Microsystems 35af28f636SEnrico Perla - Sun MicrosystemsCPPFLAGS += -I$(SRC)/uts/common 36af28f636SEnrico Perla - Sun Microsystems 37af28f636SEnrico Perla - Sun MicrosystemsLDLIBS += -lmd5 38af28f636SEnrico Perla - Sun Microsystems 39af28f636SEnrico Perla - Sun MicrosystemsC99MODE= -xc99=%all 40af28f636SEnrico Perla - Sun MicrosystemsC99LMODE= -Xc99=%all 41af28f636SEnrico Perla - Sun Microsystems 42af28f636SEnrico Perla - Sun MicrosystemsLINTFLAGS += -erroff=E_BAD_PTR_CAST_ALIGN 43*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 44af28f636SEnrico Perla - Sun Microsystems 45af28f636SEnrico Perla - Sun Microsystems.KEEP_STATE: 46af28f636SEnrico Perla - Sun Microsystems 47af28f636SEnrico Perla - Sun Microsystemsall: $(PROG) 48af28f636SEnrico Perla - Sun Microsystems 49af28f636SEnrico Perla - Sun Microsystems$(PROG): $(OBJS) 50af28f636SEnrico Perla - Sun Microsystems $(LINK.c) -o $@ $(OBJS) $(LDLIBS) 51af28f636SEnrico Perla - Sun Microsystems $(POST_PROCESS) 52af28f636SEnrico Perla - Sun Microsystems 53af28f636SEnrico Perla - Sun Microsystemsboot_utils.o: $(UTILS_SRC) 54af28f636SEnrico Perla - Sun Microsystems $(COMPILE.c) -o $@ $(UTILS_SRC) 55af28f636SEnrico Perla - Sun Microsystems 56af28f636SEnrico Perla - Sun Microsystemsmboot_extra.o: $(EXTRA_SRC) 57af28f636SEnrico Perla - Sun Microsystems $(COMPILE.c) -o $@ $(EXTRA_SRC) 58af28f636SEnrico Perla - Sun Microsystems 59af28f636SEnrico Perla - Sun Microsystemsbblk_einfo.o: $(EINFO_SRC) 60af28f636SEnrico Perla - Sun Microsystems $(COMPILE.c) -o $@ $(EINFO_SRC) 61af28f636SEnrico Perla - Sun Microsystems 62af28f636SEnrico Perla - Sun Microsystemsinstall: all $(ROOTUSRSBINPROG) 63af28f636SEnrico Perla - Sun Microsystems 64af28f636SEnrico Perla - Sun Microsystemsclean: 65af28f636SEnrico Perla - Sun Microsystems $(RM) $(OBJS) 66af28f636SEnrico Perla - Sun Microsystems 67af28f636SEnrico Perla - Sun Microsystemslint: lint_SRCS 68af28f636SEnrico Perla - Sun Microsystems 69af28f636SEnrico Perla - Sun Microsystemsinclude ../Makefile.targ 70