9093 want basic utility for Ethernet level pong
[unleashed.git] / usr / src / cmd / dlutil / Makefile
blob4c0563474d60d7aafa8dd16ce40434ce4d653428
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.
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.
13 # Copyright (c) 2017, Joyent, Inc.
16 PROG= dltraninfo dlsend dlrecv dlled
17 LINTPROGS= $(PROG:%=%.ln)
19 include ../Makefile.cmd
21 ROOTCMDDIR = $(ROOTLIB)/dl
22 CFLAGS += $(CCVERBOSE)
24 dltraninfo := LDLIBS += -ldladm -lsff -lnvpair
25 dlled := LDLIBS += -ldladm
26 dlsend := LDLIBS += -ldlpi -lsocket
27 dlrecv := LDLIBS += -ldlpi
29 dltraninfo.ln := LDLIBS += -ldladm -lsff -lnvpair
30 dlled.ln := LDLIBS += -ldladm
31 dlsend.ln := LDLIBS += -ldlpi -lsocket
32 dlrecv.ln := LDLIBS += -ldlpi
34 ROOTLIBDLFILES = $(PROG:%=$(ROOTLIB)/dl/%)
36 .KEEP_STATE:
38 all: $(PROG)
40 install: all $(ROOTCMD)
42 clean:
44 %.ln: %.c
45 $(LINT.c) $< $(LDLIBS)
47 lint: $(LINTPROGS)
49 include ../Makefile.targ