xref: /illumos-gate/usr/src/cmd/boot/installboot/i386/Makefile (revision 8533946bd264dca901fdf56bf3da1d81e728b423)
1#
2# This file and its contents are supplied under the terms of the
3# Common Development and Distribution License ("CDDL"), version 1.0.
4# You may only use this file in accordance with the terms of version
5# 1.0 of the CDDL.
6#
7# A full copy of the text of the CDDL should have accompanied this
8# source.  A copy of the CDDL is also available via the Internet at
9# http://www.illumos.org/license/CDDL.
10#
11# Copyright 2016 Toomas Soome <tsoome@me.com>
12#
13
14include ../Makefile.com
15
16OBJS +=		getresponse.o
17SRCS +=		$(SRC)/common/util/getresponse.c
18
19CPPFLAGS +=	-I$(SRC)/common/util
20LDLIBS +=	-lfdisk -lefi -lfstyp -luuid
21
22# getresponse.c and libfdisk.c need this
23LINTFLAGS += \
24	-xerroff=E_NAME_DEF_NOT_USED2
25
26.KEEP_STATE:
27
28all:
29
30$(PROG): $(OBJS)
31
32%.o:	$(SRC)/common/util/%.c
33	$(COMPILE.c) $(OUTPUT_OPTION) $<
34
35include $(SRC)/cmd/boot/Makefile.targ
36