xref: /illumos-gate/usr/src/cmd/rsrvrctl/Makefile (revision 1e8d79d21400b4e47d64ce367181e7e5ce992649)
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
12#
13# Copyright 2021 Oxide Computer Company
14#
15
16PROG =		rsrvrctl
17
18include ../Makefile.cmd
19include ../Makefile.cmd.64
20include ../Makefile.ctf
21
22SRCS =		rsrvrctl.c
23OBJS =		$(SRCS:.c=.o)
24
25CLEANFILES =	$(PROG)
26CLOBBERFILES +=	$(ROOTUSRSBINPROG)
27
28.KEEP_STATE:
29
30CFLAGS +=	$(CCVERBOSE)
31CPPFLAGS =	-I$(COMPAT)/bhyve -I$(CONTRIB)/bhyve \
32		-I$(COMPAT)/bhyve/amd64 -I$(CONTRIB)/bhyve/amd64 \
33		$(CPPFLAGS.master) \
34		-I$(SRC)/uts/i86pc/io/vmm \
35		-I$(SRC)/uts/i86pc
36
37all: $(PROG)
38
39$(PROG): $(OBJS)
40	$(LINK.c) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS)
41	$(POST_PROCESS)
42
43install: all $(ROOTLIBPROG)
44
45clean:
46	$(RM) $(OBJS) $(CLEANFILES)
47
48include ../Makefile.targ
49