Gustavo Zacarias | acfeb55 | 2015-06-27 08:15:50 -0300 | [diff] [blame] | 1 | include ../Config |
| 2 | ifeq ($(HAVE_MNL),y) |
| 3 | |
Richard Alpe | f043759 | 2015-05-07 15:07:36 +0200 | [diff] [blame] | 4 | TIPCOBJ=bearer.o \ |
| 5 | cmdl.o link.o \ |
| 6 | media.o misc.o \ |
| 7 | msg.o nametable.o \ |
| 8 | node.o socket.o \ |
Richard Alpe | 535194a | 2016-08-22 10:18:29 +0200 | [diff] [blame] | 9 | peer.o tipc.o |
Richard Alpe | f043759 | 2015-05-07 15:07:36 +0200 | [diff] [blame] | 10 | |
Jan Engelhardt | a6ea668 | 2015-06-29 10:01:55 +0200 | [diff] [blame] | 11 | include ../Config |
| 12 | |
Richard Alpe | f043759 | 2015-05-07 15:07:36 +0200 | [diff] [blame] | 13 | TARGETS=tipc |
Jan Engelhardt | a6ea668 | 2015-06-29 10:01:55 +0200 | [diff] [blame] | 14 | CFLAGS += $(shell $(PKG_CONFIG) libmnl --cflags) |
| 15 | LDLIBS += $(shell $(PKG_CONFIG) libmnl --libs) |
Richard Alpe | f043759 | 2015-05-07 15:07:36 +0200 | [diff] [blame] | 16 | |
Gustavo Zacarias | acfeb55 | 2015-06-27 08:15:50 -0300 | [diff] [blame] | 17 | endif |
| 18 | |
Richard Alpe | f043759 | 2015-05-07 15:07:36 +0200 | [diff] [blame] | 19 | all: $(TARGETS) $(LIBS) |
| 20 | |
| 21 | tipc: $(TIPCOBJ) |
David Ahern | 57bdf8b | 2016-05-24 15:04:49 -0700 | [diff] [blame] | 22 | $(QUIET_LINK)$(CC) $^ $(LDFLAGS) $(LDLIBS) -o $@ |
Richard Alpe | f043759 | 2015-05-07 15:07:36 +0200 | [diff] [blame] | 23 | |
| 24 | install: all |
| 25 | install -m 0755 $(TARGETS) $(DESTDIR)$(SBINDIR) |
| 26 | |
| 27 | clean: |
| 28 | rm -f $(TIPCOBJ) $(TARGETS) |