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