xref: /titanic_51/usr/src/cmd/dlutil/Makefile (revision b142f83db07eef31395422eb0514e14b61cb678b)
159596c01SRobert Mustacchi#
259596c01SRobert Mustacchi# This file and its contents are supplied under the terms of the
359596c01SRobert Mustacchi# Common Development and Distribution License ("CDDL"), version 1.0.
459596c01SRobert Mustacchi# You may only use this file in accordance with the terms of version
559596c01SRobert Mustacchi# 1.0 of the CDDL.
659596c01SRobert Mustacchi#
759596c01SRobert Mustacchi# A full copy of the text of the CDDL should have accompanied this
859596c01SRobert Mustacchi# source.  A copy of the CDDL is also available via the Internet at
959596c01SRobert Mustacchi# http://www.illumos.org/license/CDDL.
1059596c01SRobert Mustacchi#
1159596c01SRobert Mustacchi
1259596c01SRobert Mustacchi#
1359596c01SRobert Mustacchi# Copyright (c) 2017, Joyent, Inc.
1459596c01SRobert Mustacchi#
1559596c01SRobert Mustacchi
16*b142f83dSRobert MustacchiPROG= dltraninfo dlled
1759596c01SRobert MustacchiLINTPROGS= $(PROG:%=%.ln)
1859596c01SRobert Mustacchi
1959596c01SRobert Mustacchiinclude ../Makefile.cmd
2059596c01SRobert Mustacchi
2159596c01SRobert MustacchiROOTCMDDIR = $(ROOTLIB)/dl
2259596c01SRobert MustacchiCFLAGS += $(CCVERBOSE)
2359596c01SRobert Mustacchi
2459596c01SRobert Mustacchidltraninfo :=   LDLIBS += -ldladm -lsff -lnvpair
25*b142f83dSRobert Mustacchidlled :=	LDLIBS += -ldladm
2659596c01SRobert Mustacchidltraninfo.ln :=   LDLIBS += -ldladm -lsff -lnvpair
27*b142f83dSRobert Mustacchidlled.ln :=	LDLIBS += -ldladm
2859596c01SRobert Mustacchi
2959596c01SRobert MustacchiROOTLIBDLFILES = $(PROG:%=$(ROOTLIB)/dl/%)
3059596c01SRobert Mustacchi
3159596c01SRobert Mustacchi.KEEP_STATE:
3259596c01SRobert Mustacchi
3359596c01SRobert Mustacchiall: $(PROG)
3459596c01SRobert Mustacchi
3559596c01SRobert Mustacchiinstall: all $(ROOTCMD)
3659596c01SRobert Mustacchi
3759596c01SRobert Mustacchiclean:
3859596c01SRobert Mustacchi
3959596c01SRobert Mustacchi%.ln: %.c
4059596c01SRobert Mustacchi	$(LINT.c) $< $(LDLIBS)
4159596c01SRobert Mustacchi
4259596c01SRobert Mustacchilint:	$(LINTPROGS)
4359596c01SRobert Mustacchi
4459596c01SRobert Mustacchiinclude ../Makefile.targ
45