xref: /illumos-gate/usr/src/cmd/connstat/Makefile (revision a2f04351e04971ab0879872d264d6038c156b860)
1*a2f04351SSebastien Roy#
2*a2f04351SSebastien Roy# CDDL HEADER START
3*a2f04351SSebastien Roy#
4*a2f04351SSebastien Roy# This file and its contents are supplied under the terms of the
5*a2f04351SSebastien Roy# Common Development and Distribution License ("CDDL"), version 1.0.
6*a2f04351SSebastien Roy# You may only use this file in accordance with the terms of version
7*a2f04351SSebastien Roy# 1.0 of the CDDL.
8*a2f04351SSebastien Roy#
9*a2f04351SSebastien Roy# A full copy of the text of the CDDL should have accompanied this
10*a2f04351SSebastien Roy# source.  A copy of the CDDL is also available via the Internet at
11*a2f04351SSebastien Roy# http://www.illumos.org/license/CDDL.
12*a2f04351SSebastien Roy#
13*a2f04351SSebastien Roy# CDDL HEADER END
14*a2f04351SSebastien Roy#
15*a2f04351SSebastien Roy#
16*a2f04351SSebastien Roy# Copyright (c) 2015 by Delphix. All rights reserved.
17*a2f04351SSebastien Roy#
18*a2f04351SSebastien Roy
19*a2f04351SSebastien RoyPROG=	connstat
20*a2f04351SSebastien RoyOBJS=	connstat_main.o connstat_mib.o connstat_tcp.o
21*a2f04351SSebastien RoySRCS=	$(OBJS:%.o=%.c)
22*a2f04351SSebastien RoyPOFILES= connstat_main.po connstat_tcp.po connstat_mib.po
23*a2f04351SSebastien RoyPOFILE=	connstat.po
24*a2f04351SSebastien Roy
25*a2f04351SSebastien Royinclude ../Makefile.cmd
26*a2f04351SSebastien Royinclude ../Makefile.ctf
27*a2f04351SSebastien Roy
28*a2f04351SSebastien RoyCSTD= $(CSTD_GNU99)
29*a2f04351SSebastien RoyLDLIBS += -lsocket -lnsl -lumem -lofmt
30*a2f04351SSebastien RoyXGETFLAGS += -a -x $(PROG).xcl
31*a2f04351SSebastien Roy
32*a2f04351SSebastien Roy.KEEP_STATE:
33*a2f04351SSebastien Roy
34*a2f04351SSebastien Royall: $(PROG)
35*a2f04351SSebastien Roy
36*a2f04351SSebastien Roy$(PROG): $(OBJS)
37*a2f04351SSebastien Roy	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
38*a2f04351SSebastien Roy	$(POST_PROCESS)
39*a2f04351SSebastien Roy
40*a2f04351SSebastien Roy$(POFILE): $(POFILES)
41*a2f04351SSebastien Roy	$(RM) $@
42*a2f04351SSebastien Roy	cat $(POFILES) > $@
43*a2f04351SSebastien Roy
44*a2f04351SSebastien Royinstall: all $(ROOTPROG)
45*a2f04351SSebastien Roy
46*a2f04351SSebastien Royclean:
47*a2f04351SSebastien Roy	$(RM) $(OBJS)
48*a2f04351SSebastien Roy
49*a2f04351SSebastien Roylint:   lint_SRCS
50*a2f04351SSebastien Roy
51*a2f04351SSebastien Royinclude ../Makefile.targ
52