xref: /illumos-gate/usr/src/cmd/pptadm/Makefile (revision 20a7641f9918de8574b8b3b47dbe35c4bfc78df1)
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 2018 Joyent, Inc.
12#
13
14PROG = pptadm
15OBJS = pptadm.o
16SRCS = $(OBJS:%.o=%.c)
17
18include ../Makefile.cmd
19include ../Makefile.ctf
20
21LDLIBS += -lofmt -lppt -lnvpair
22
23CSTD = $(CSTD_GNU99)
24
25CLEANFILES += $(OBJS)
26
27.KEEP_STATE:
28
29all: $(OBJS) $(PROG)
30
31install: all $(ROOTUSRSBINPROG)
32
33clean:
34	-$(RM) $(CLEANFILES)
35
36%.o: ../%.c
37	$(COMPILE.c) $<
38	$(POST_PROCESS_O)
39
40include ../Makefile.targ
41