xref: /titanic_52/usr/src/cmd/boot/installboot/Makefile.com (revision 4c1177a46d4d850e30806d4e27d635527bba8e90)
1*4c1177a4SToomas Soome#
2*4c1177a4SToomas Soome# CDDL HEADER START
3*4c1177a4SToomas Soome#
4*4c1177a4SToomas Soome# The contents of this file are subject to the terms of the
5*4c1177a4SToomas Soome# Common Development and Distribution License (the "License").
6*4c1177a4SToomas Soome# You may not use this file except in compliance with the License.
7*4c1177a4SToomas Soome#
8*4c1177a4SToomas Soome# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*4c1177a4SToomas Soome# or http://www.opensolaris.org/os/licensing.
10*4c1177a4SToomas Soome# See the License for the specific language governing permissions
11*4c1177a4SToomas Soome# and limitations under the License.
12*4c1177a4SToomas Soome#
13*4c1177a4SToomas Soome# When distributing Covered Code, include this CDDL HEADER in each
14*4c1177a4SToomas Soome# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*4c1177a4SToomas Soome# If applicable, add the following below this CDDL HEADER, with the
16*4c1177a4SToomas Soome# fields enclosed by brackets "[]" replaced with your own identifying
17*4c1177a4SToomas Soome# information: Portions Copyright [yyyy] [name of copyright owner]
18*4c1177a4SToomas Soome#
19*4c1177a4SToomas Soome# CDDL HEADER END
20*4c1177a4SToomas Soome#
21*4c1177a4SToomas Soome# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
22*4c1177a4SToomas Soome# Copyright 2016 Toomas Soome <tsoome@me.com>
23*4c1177a4SToomas Soome#
24*4c1177a4SToomas Soome
25*4c1177a4SToomas SoomePROG= installboot
26*4c1177a4SToomas Soome
27*4c1177a4SToomas SoomeEINFO_SRC =../../common/bblk_einfo.c
28*4c1177a4SToomas SoomeUTILS_SRC =../../common/boot_utils.c
29*4c1177a4SToomas SoomeEXTRA_SRC =../../common/mboot_extra.c
30*4c1177a4SToomas Soome
31*4c1177a4SToomas SoomeOBJS= installboot.o bblk_einfo.o  boot_utils.o mboot_extra.o
32*4c1177a4SToomas SoomeSRCS= installboot.c $(UTILS_SRC) $(EINFO_SRC) $(EXTRA_SRC)
33*4c1177a4SToomas Soome
34*4c1177a4SToomas Soomeinclude ../../Makefile.com
35*4c1177a4SToomas Soome
36*4c1177a4SToomas SoomeCPPFLAGS += -I$(SRC)/uts/common
37*4c1177a4SToomas Soome
38*4c1177a4SToomas SoomeLDLIBS += -lmd5
39*4c1177a4SToomas Soome
40*4c1177a4SToomas SoomeC99MODE=	$(C99_ENABLE)
41*4c1177a4SToomas Soome
42*4c1177a4SToomas SoomeLINTFLAGS += -erroff=E_BAD_PTR_CAST_ALIGN
43*4c1177a4SToomas Soome
44*4c1177a4SToomas Soome.KEEP_STATE:
45*4c1177a4SToomas Soome
46*4c1177a4SToomas Soomeall: $(PROG)
47*4c1177a4SToomas Soome
48*4c1177a4SToomas Soome$(PROG): $(OBJS)
49*4c1177a4SToomas Soome	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
50*4c1177a4SToomas Soome	$(POST_PROCESS)
51*4c1177a4SToomas Soome
52*4c1177a4SToomas Soomeboot_utils.o:	$(UTILS_SRC)
53*4c1177a4SToomas Soome		$(COMPILE.c) -o $@ $(UTILS_SRC)
54*4c1177a4SToomas Soome
55*4c1177a4SToomas Soomemboot_extra.o:	$(EXTRA_SRC)
56*4c1177a4SToomas Soome		$(COMPILE.c) -o $@ $(EXTRA_SRC)
57*4c1177a4SToomas Soome
58*4c1177a4SToomas Soomebblk_einfo.o:	$(EINFO_SRC)
59*4c1177a4SToomas Soome		$(COMPILE.c) -o $@ $(EINFO_SRC)
60*4c1177a4SToomas Soome
61*4c1177a4SToomas Soomeinstall: all $(ROOTUSRSBINPROG)
62*4c1177a4SToomas Soome
63*4c1177a4SToomas Soomeclean:
64*4c1177a4SToomas Soome	$(RM) $(OBJS)
65*4c1177a4SToomas Soome
66*4c1177a4SToomas Soomelint:	lint_SRCS
67