xref: /illumos-gate/usr/src/cmd/cxgbetool/Makefile (revision 12fb9219923f41528f673d4f31667db2c3f103ff)
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) 2019 by Chelsio Communications, Inc.
14#
15# Copyright (c) 2018, Joyent, Inc.
16
17PROG =  cxgbetool
18OBJS =	cxgbetool.o cudbg.o cudbg_view.o fastlz_api.o fastlz.o cudbg_common.o
19SRCS =	$(OBJS:%.o=%.c)
20VPATH = $(SRC)/uts/common/io/cxgbe/t4nex/
21
22include ../Makefile.cmd
23
24CFLAGS += $(CCVERBOSE) -I$(SRC)/uts/common/io/cxgbe/t4nex -I$(SRC)/uts/common/io/cxgbe/firmware \
25	  -I$(SRC)/uts/common/io/cxgbe/common
26
27LDLIBS += -ldevinfo
28SMOFF += all_func_returns
29
30all: $(PROG)
31
32$(PROG): $(OBJS)
33	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
34	$(POST_PROCESS)
35
36install: all $(ROOTUSRSBINPROG)
37
38clean:
39
40lint: lint_PROG
41
42include ../Makefile.targ
43