xref: /illumos-gate/usr/src/cmd/rsrvrctl/Makefile (revision 7c8c0b82)
1b57f5d3eSPatrick Mooney#
2b57f5d3eSPatrick Mooney# This file and its contents are supplied under the terms of the
3b57f5d3eSPatrick Mooney# Common Development and Distribution License ("CDDL"), version 1.0.
4b57f5d3eSPatrick Mooney# You may only use this file in accordance with the terms of version
5b57f5d3eSPatrick Mooney# 1.0 of the CDDL.
6b57f5d3eSPatrick Mooney#
7b57f5d3eSPatrick Mooney# A full copy of the text of the CDDL should have accompanied this
8b57f5d3eSPatrick Mooney# source.  A copy of the CDDL is also available via the Internet at
9b57f5d3eSPatrick Mooney# http://www.illumos.org/license/CDDL.
10b57f5d3eSPatrick Mooney#
11b57f5d3eSPatrick Mooney
12b57f5d3eSPatrick Mooney#
13b57f5d3eSPatrick Mooney# Copyright 2021 Oxide Computer Company
14b57f5d3eSPatrick Mooney#
15b57f5d3eSPatrick Mooney
16b57f5d3eSPatrick MooneyPROG =		rsrvrctl
17b57f5d3eSPatrick Mooney
18b57f5d3eSPatrick Mooneyinclude ../Makefile.cmd
19b57f5d3eSPatrick Mooneyinclude ../Makefile.cmd.64
20b57f5d3eSPatrick Mooneyinclude ../Makefile.ctf
21b57f5d3eSPatrick Mooney
22b57f5d3eSPatrick MooneySRCS =		rsrvrctl.c
23b57f5d3eSPatrick MooneyOBJS =		$(SRCS:.c=.o)
24b57f5d3eSPatrick Mooney
25b57f5d3eSPatrick MooneyCLEANFILES =	$(PROG)
27b57f5d3eSPatrick Mooney
28b57f5d3eSPatrick Mooney.KEEP_STATE:
29b57f5d3eSPatrick Mooney
30b57f5d3eSPatrick MooneyCFLAGS +=	$(CCVERBOSE)
31b57f5d3eSPatrick MooneyCPPFLAGS =	-I$(COMPAT)/bhyve -I$(CONTRIB)/bhyve \
32b57f5d3eSPatrick Mooney		-I$(COMPAT)/bhyve/amd64 -I$(CONTRIB)/bhyve/amd64 \
33b57f5d3eSPatrick Mooney		$(CPPFLAGS.master) \
34*7c8c0b82SPatrick Mooney		-I$(SRC)/uts/intel/io/vmm \
35*7c8c0b82SPatrick Mooney		-I$(SRC)/uts/intel
36b57f5d3eSPatrick Mooney
37b57f5d3eSPatrick Mooneyall: $(PROG)
38b57f5d3eSPatrick Mooney
39b57f5d3eSPatrick Mooney$(PROG): $(OBJS)
40b57f5d3eSPatrick Mooney	$(LINK.c) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS)
41b57f5d3eSPatrick Mooney	$(POST_PROCESS)
42b57f5d3eSPatrick Mooney
43b57f5d3eSPatrick Mooneyinstall: all $(ROOTLIBPROG)
44b57f5d3eSPatrick Mooney
45b57f5d3eSPatrick Mooneyclean:
46b57f5d3eSPatrick Mooney	$(RM) $(OBJS) $(CLEANFILES)
47b57f5d3eSPatrick Mooney
48b57f5d3eSPatrick Mooneyinclude ../Makefile.targ