1753a6d45SSherry Moore#
2753a6d45SSherry Moore# CDDL HEADER START
3753a6d45SSherry Moore#
4753a6d45SSherry Moore# The contents of this file are subject to the terms of the
5753a6d45SSherry Moore# Common Development and Distribution License (the "License").
6753a6d45SSherry Moore# You may not use this file except in compliance with the License.
7753a6d45SSherry Moore#
8753a6d45SSherry Moore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9753a6d45SSherry Moore# or http://www.opensolaris.org/os/licensing.
10753a6d45SSherry Moore# See the License for the specific language governing permissions
11753a6d45SSherry Moore# and limitations under the License.
12753a6d45SSherry Moore#
13753a6d45SSherry Moore# When distributing Covered Code, include this CDDL HEADER in each
14753a6d45SSherry Moore# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15753a6d45SSherry Moore# If applicable, add the following below this CDDL HEADER, with the
16753a6d45SSherry Moore# fields enclosed by brackets "[]" replaced with your own identifying
17753a6d45SSherry Moore# information: Portions Copyright [yyyy] [name of copyright owner]
18753a6d45SSherry Moore#
19753a6d45SSherry Moore# CDDL HEADER END
20753a6d45SSherry Moore#
21753a6d45SSherry Moore#
22753a6d45SSherry Moore# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23753a6d45SSherry Moore# Use is subject to license terms.
2457631629SToomas Soome# Copyright 2015 Toomas Soome <tsoome@me.com>
25753a6d45SSherry Moore#
26753a6d45SSherry Moore#
27753a6d45SSherry Moore
28753a6d45SSherry MooreLIBRARY =	libgrubmgmt.a
29753a6d45SSherry MooreVERS =		.1
30753a6d45SSherry MooreOBJECTS =	libgrub_cmd.o libgrub_entry.o libgrub_fs.o
31753a6d45SSherry MooreOBJECTS +=	libgrub_menu.o libgrub_bargs.o libgrub_errno.o
32753a6d45SSherry Moore
33753a6d45SSherry Mooreinclude ../../Makefile.lib
34753a6d45SSherry Mooreinclude ../../Makefile.rootfs
35753a6d45SSherry Moore
36*241c90a0SRichard LoweLIBS =		$(DYNLIB)
37753a6d45SSherry Moore
38753a6d45SSherry MooreSRCDIR = ../common
39753a6d45SSherry Moore
40753a6d45SSherry MooreINCS += -I$(SRCDIR)
41753a6d45SSherry Moore
42753a6d45SSherry Moore#
43753a6d45SSherry Moore# Libraries added to the next line must be present in miniroot
44753a6d45SSherry Moore#
4557631629SToomas SoomeLDLIBS +=	-lc -lzfs -ldevinfo -lfstyp -lefi
46753a6d45SSherry Moore
47753a6d45SSherry MooreCFLAGS +=	$(CCVERBOSE)
48753a6d45SSherry Moore
49753a6d45SSherry Moore.KEEP_STATE:
50753a6d45SSherry Moore
51753a6d45SSherry Mooreall: $(LIBS)
52753a6d45SSherry Moore
53753a6d45SSherry Moore
54753a6d45SSherry Mooreinclude ../../Makefile.targ
55