xref: /titanic_50/usr/src/cmd/ipdadm/Makefile (revision fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1)
1*fe77cc04SRobert Mustacchi#
2*fe77cc04SRobert Mustacchi# This file and its contents are supplied under the terms of the
3*fe77cc04SRobert Mustacchi# Common Development and Distribution License ("CDDL"), version 1.0.
4*fe77cc04SRobert Mustacchi# You may only use this file in accordance with the terms of version
5*fe77cc04SRobert Mustacchi# 1.0 of the CDDL.
6*fe77cc04SRobert Mustacchi#
7*fe77cc04SRobert Mustacchi# A full copy of the text of the CDDL should have accompanied this
8*fe77cc04SRobert Mustacchi# source.  A copy of the CDDL is also available via the Internet at
9*fe77cc04SRobert Mustacchi# http://www.illumos.org/license/CDDL.
10*fe77cc04SRobert Mustacchi#
11*fe77cc04SRobert Mustacchi
12*fe77cc04SRobert Mustacchi#
13*fe77cc04SRobert Mustacchi# Copyright (c) 2012 Joyent, Inc.  All rights reserved.
14*fe77cc04SRobert Mustacchi#
15*fe77cc04SRobert Mustacchi
16*fe77cc04SRobert MustacchiPROG= ipdadm
17*fe77cc04SRobert MustacchiOBJS = ipdadm.o
18*fe77cc04SRobert MustacchiSRCS = $(OBJS:%.o=../%.c)
19*fe77cc04SRobert Mustacchi
20*fe77cc04SRobert Mustacchi
21*fe77cc04SRobert Mustacchiinclude ../Makefile.cmd
22*fe77cc04SRobert Mustacchiinclude ../Makefile.ctf
23*fe77cc04SRobert Mustacchi
24*fe77cc04SRobert MustacchiCLEANFILES += $(OBJS)
25*fe77cc04SRobert MustacchiCFLAGS += $(CCVERBOSE)
26*fe77cc04SRobert MustacchiLDLIBS += -lipd
27*fe77cc04SRobert Mustacchi
28*fe77cc04SRobert Mustacchi.KEEP_STATE:
29*fe77cc04SRobert Mustacchi
30*fe77cc04SRobert Mustacchi$(PROG): $(OBJS)
31*fe77cc04SRobert Mustacchi	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
32*fe77cc04SRobert Mustacchi	$(POST_PROCESS)
33*fe77cc04SRobert Mustacchi
34*fe77cc04SRobert Mustacchiclean:
35*fe77cc04SRobert Mustacchi	-$(RM) $(CLEANFILES)
36*fe77cc04SRobert Mustacchi
37*fe77cc04SRobert Mustacchilint: lint_PROG
38*fe77cc04SRobert Mustacchi
39*fe77cc04SRobert Mustacchi%.o: ../%.c
40*fe77cc04SRobert Mustacchi	$(COMPILE.c) $<
41*fe77cc04SRobert Mustacchi	$(POST_PROCESS_O)
42*fe77cc04SRobert Mustacchi
43*fe77cc04SRobert Mustacchiinstall: $(PROG) $(ROOTUSRSBINPROG)
44*fe77cc04SRobert Mustacchi
45*fe77cc04SRobert Mustacchiinclude ../Makefile.targ
46