xref: /illumos-gate/usr/src/cmd/svc/rootisramdisk/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 =			rootisramdisk
17OBJS =			rootisramdisk.o
18SRCS =			$(OBJS:%.o=%.c)
19
20include ../../Makefile.cmd
21include ../../Makefile.cmd.64
22include ../../Makefile.ctf
23
24.KEEP_STATE:
25
26all: $(PROG)
27
28$(PROG): $(OBJS)
29	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
30	$(POST_PROCESS)
31
32install: all $(ROOTLIBSVCBINPROG)
33
34clean:
35	$(RM) $(OBJS)
36
37include ../../Makefile.targ
38