xref: /titanic_50/usr/src/cmd/dlutil/Makefile (revision 8cfa78e6de0de88f6a15cd29ee5f6a8a1bfe7c20)
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) 2017, Joyent, Inc.
14#
15
16PROG= dltraninfo dlled
17LINTPROGS= $(PROG:%=%.ln)
18
19include ../Makefile.cmd
20
21ROOTCMDDIR = $(ROOTLIB)/dl
22CFLAGS += $(CCVERBOSE)
23
24dltraninfo :=   LDLIBS += -ldladm -lsff -lnvpair
25dlled :=	LDLIBS += -ldladm
26dltraninfo.ln :=   LDLIBS += -ldladm -lsff -lnvpair
27dlled.ln :=	LDLIBS += -ldladm
28
29ROOTLIBDLFILES = $(PROG:%=$(ROOTLIB)/dl/%)
30
31.KEEP_STATE:
32
33all: $(PROG)
34
35install: all $(ROOTCMD)
36
37clean:
38
39%.ln: %.c
40	$(LINT.c) $< $(LDLIBS)
41
42lint:	$(LINTPROGS)
43
44include ../Makefile.targ
45