xref: /illumos-gate/usr/src/cmd/varpd/Makefile (revision 8cbaa6a809af7f43b3da2420c9d29a3507893284)
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 2018 Joyent, Inc.
14#
15
16PROG= varpd
17OBJS = varpd.o
18SRCS = $(OBJS:%.o=../%.c)
19MANIFEST = varpd.xml
20ROOTLIBVARPD = $(ROOTLIB)/varpd
21ROOTLIBVARPDPROG=	$(PROG:%=$(ROOTLIBVARPD)/%)
22
23
24include ../Makefile.cmd
25include ../Makefile.ctf
26
27ROOTMANIFESTDIR=	$(ROOTSVCNETWORK)
28
29CLEANFILES += $(OBJS)
30CPPFLAGS += -D_REENTRANT
31CFLAGS += $(CCVERBOSE)
32LDLIBS += -lvarpd -lumem -lscf
33$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
34
35CSTD=		$(CSTD_GNU99)
36
37.KEEP_STATE:
38
39all: $(PROG)
40
41$(PROG): $(OBJS)
42	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
43	$(POST_PROCESS)
44
45clean:
46	-$(RM) $(CLEANFILES)
47
48%.o: ../%.c
49	$(COMPILE.c) $<
50	$(POST_PROCESS_O)
51
52check: $(CHKMANIFEST)
53
54install: $(PROG) $(ROOTLIBVARPDPROG) $(ROOTMANIFEST)
55
56$(ROOTLIBVARPD):
57	$(INS.dir)
58
59$(ROOTLIBVARPD)/%: % $(ROOTLIBVARPD)
60	$(INS.file)
61
62FRC:
63
64include ../Makefile.targ
65