10c946d80SToomas Soome#
20c946d80SToomas Soome# CDDL HEADER START
30c946d80SToomas Soome#
40c946d80SToomas Soome# The contents of this file are subject to the terms of the
50c946d80SToomas Soome# Common Development and Distribution License (the "License").
60c946d80SToomas Soome# You may not use this file except in compliance with the License.
70c946d80SToomas Soome#
80c946d80SToomas Soome# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90c946d80SToomas Soome# or http://www.opensolaris.org/os/licensing.
100c946d80SToomas Soome# See the License for the specific language governing permissions
110c946d80SToomas Soome# and limitations under the License.
120c946d80SToomas Soome#
130c946d80SToomas Soome# When distributing Covered Code, include this CDDL HEADER in each
140c946d80SToomas Soome# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150c946d80SToomas Soome# If applicable, add the following below this CDDL HEADER, with the
160c946d80SToomas Soome# fields enclosed by brackets "[]" replaced with your own identifying
170c946d80SToomas Soome# information: Portions Copyright [yyyy] [name of copyright owner]
180c946d80SToomas Soome#
190c946d80SToomas Soome# CDDL HEADER END
200c946d80SToomas Soome#
210c946d80SToomas Soome# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
220c946d80SToomas Soome# Copyright 2016 Toomas Soome <tsoome@me.com>
230c946d80SToomas Soome#
240c946d80SToomas Soome
250c946d80SToomas SoomePROG= installboot
260c946d80SToomas Soome
270c946d80SToomas SoomeEINFO_SRC =../../common/bblk_einfo.c
280c946d80SToomas SoomeUTILS_SRC =../../common/boot_utils.c
290c946d80SToomas SoomeEXTRA_SRC =../../common/mboot_extra.c
300c946d80SToomas Soome
310c946d80SToomas SoomeOBJS= installboot.o bblk_einfo.o  boot_utils.o mboot_extra.o
320c946d80SToomas Soome
330c946d80SToomas Soomeinclude ../../Makefile.com
340c946d80SToomas Soome
350c946d80SToomas SoomeCPPFLAGS += -I$(SRC)/uts/common
360c946d80SToomas Soome
370c946d80SToomas SoomeLDLIBS += -lmd5
380c946d80SToomas Soome
39*bd0ce624SYuri PankovCSTD=	$(CSTD_GNU99)
400c946d80SToomas Soome
410c946d80SToomas Soome.KEEP_STATE:
420c946d80SToomas Soome
430c946d80SToomas Soomeall: $(PROG)
440c946d80SToomas Soome
450c946d80SToomas Soome$(PROG): $(OBJS)
460c946d80SToomas Soome	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
470c946d80SToomas Soome	$(POST_PROCESS)
480c946d80SToomas Soome
490c946d80SToomas Soomeboot_utils.o:	$(UTILS_SRC)
500c946d80SToomas Soome		$(COMPILE.c) -o $@ $(UTILS_SRC)
510c946d80SToomas Soome
520c946d80SToomas Soomemboot_extra.o:	$(EXTRA_SRC)
530c946d80SToomas Soome		$(COMPILE.c) -o $@ $(EXTRA_SRC)
540c946d80SToomas Soome
550c946d80SToomas Soomebblk_einfo.o:	$(EINFO_SRC)
560c946d80SToomas Soome		$(COMPILE.c) -o $@ $(EINFO_SRC)
570c946d80SToomas Soome
580c946d80SToomas Soomeinstall: all $(ROOTUSRSBINPROG)
590c946d80SToomas Soome
600c946d80SToomas Soomeclean:
610c946d80SToomas Soome	$(RM) $(OBJS)
62