xref: /illumos-gate/usr/src/cmd/ipdadm/Makefile (revision 2bbdd445a21f9d61f4a0ca0faf05d5ceb2bd91f3)
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 (c) 2012 Joyent, Inc.  All rights reserved.
14#
15
16PROG= ipdadm
17OBJS = ipdadm.o
18SRCS = $(OBJS:%.o=../%.c)
19
20
21include ../Makefile.cmd
22include ../Makefile.ctf
23
24CLEANFILES += $(OBJS)
25CFLAGS += $(CCVERBOSE)
26LDLIBS += -lipd
27
28.KEEP_STATE:
29
30$(PROG): $(OBJS)
31	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
32	$(POST_PROCESS)
33
34clean:
35	-$(RM) $(CLEANFILES)
36
37lint: lint_PROG
38
39%.o: ../%.c
40	$(COMPILE.c) $<
41	$(POST_PROCESS_O)
42
43install: $(PROG) $(ROOTUSRSBINPROG)
44
45include ../Makefile.targ
46