File: Makefile

package info (click to toggle)
iproute2 6.18.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,272 kB
  • sloc: ansic: 125,480; sh: 1,363; cpp: 946; makefile: 697; yacc: 421; lex: 145; python: 43
file content (37 lines) | stat: -rw-r--r-- 752 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# SPDX-License-Identifier: GPL-2.0
include ../config.mk

CFLAGS += -fPIC

UTILOBJ = utils.o utils_math.o rt_names.o ll_map.o ll_types.o ll_proto.o ll_addr.o \
	inet_proto.o namespace.o json_writer.o json_print.o json_print_math.o \
	names.o color.o bpf_legacy.o bpf_glue.o exec.o fs.o cg_map.o \
	ppp_proto.o bridge.o

ifeq ($(HAVE_ELF),y)
ifeq ($(HAVE_LIBBPF),y)
UTILOBJ += bpf_libbpf.o
endif
endif

ifneq ($(HAVE_SELINUX),y)
UTILOBJ += selinux.o
endif

NLOBJ=libgenl.o libnetlink.o
ifeq ($(HAVE_MNL),y)
NLOBJ += mnl_utils.o
endif

all: libnetlink.a libutil.a

libnetlink.a: $(NLOBJ)
	$(QUIET_AR)$(AR) rcs $@ $^

libutil.a: $(UTILOBJ) $(ADDLIB)
	$(QUIET_AR)$(AR) rcs $@ $^

install:

clean:
	rm -f $(NLOBJ) $(UTILOBJ) $(ADDLIB) libnetlink.a libutil.a