]>
Commit | Line | Data |
---|---|---|
1 | # SPDX-License-Identifier: GPL-2.0 | |
2 | include ../config.mk | |
3 | ||
4 | TARGETS := | |
5 | ||
6 | ifeq ($(HAVE_MNL),y) | |
7 | ||
8 | DCBOBJ = dcb.o \ | |
9 | dcb_app.o \ | |
10 | dcb_buffer.o \ | |
11 | dcb_dcbx.o \ | |
12 | dcb_ets.o \ | |
13 | dcb_maxrate.o \ | |
14 | dcb_pfc.o | |
15 | TARGETS += dcb | |
16 | ||
17 | endif | |
18 | ||
19 | all: $(TARGETS) $(LIBS) | |
20 | ||
21 | dcb: $(DCBOBJ) $(LIBNETLINK) | |
22 | $(QUIET_LINK)$(CC) $^ $(LDFLAGS) $(LDLIBS) -o $@ | |
23 | ||
24 | install: all | |
25 | for i in $(TARGETS); \ | |
26 | do install -m 0755 $$i $(DESTDIR)$(SBINDIR); \ | |
27 | done | |
28 | ||
29 | clean: | |
30 | rm -f $(DCBOBJ) $(TARGETS) |