summaryrefslogtreecommitdiff
path: root/trafgen/Makefile
blob: 3369d4addb281ba02d044ad472d1f75c6fbb6688 (plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
trafgen-libs =	-lm

ifeq ($(CONFIG_LIBNL), 1)
trafgen-libs +=	$(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKG_CONFIG) --libs libnl-3.0) \
		$(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKG_CONFIG) --libs libnl-genl-3.0)
endif

trafgen-objs =	xmalloc.o \
		die.o \
		ioops.o \
		privs.o \
		proc.o \
		dev.o \
		irq.o \
		link.o \
		str.o \
		sig.o \
		sock.o \
		ring_tx.o \
		ring.o \
		timer.o \
		sysctl.o \
		cpp.o \
		pcap_sg.o \
		pcap_rw.o \
		pcap_mm.o \
		iosched.o \
		trafgen_proto.o \
		trafgen_l2.o \
		trafgen_l3.o \
		trafgen_l4.o \
		trafgen_lexer.yy.o \
		trafgen_parser.tab.o \
		trafgen.o

ifeq ($(CONFIG_LIBNL), 1)
trafgen-objs += mac80211.o
endif

trafgen-lex =	trafgen_lexer.yy.o

trafgen-yacc =	trafgen_parser.tab.o

trafgen-eflags = -I..

ifeq ($(CONFIG_LIBNL), 1)
trafgen-eflags = $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKG_CONFIG) --cflags libnl-3.0) \
		 $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKG_CONFIG) --cflags libnl-genl-3.0)
endif

trafgen-confs =	trafgen_stddef.h

trafgen_post_install:
	$(Q)mv $(DESTDIR)$(ETCDIRE)/trafgen_stddef.h $(DESTDIR)$(ETCDIRE)/stddef.h

trafgen_clean_custom:
	$(Q)$(call RM,$(BUILD_DIR)/*.h $(BUILD_DIR)/*.c)
='ls-blob h' href='/cgit.cgi/linux/net-next.git/tree/include/uapi/rdma/ib_user_cm.h?h=nds-private-remove&id=a8496eb81342393e4c8280a5ec27e1872a3fb9fd'>ib_user_cm.h6526logplain -rw-r--r--ib_user_mad.h8791logplain -rw-r--r--ib_user_sa.h2222logplain -rw-r--r--ib_user_verbs.h21586logplain -rw-r--r--mlx4-abi.h2864logplain -rw-r--r--mlx5-abi.h7480logplain -rw-r--r--mthca-abi.h2932logplain -rw-r--r--nes-abi.h3380logplain -rw-r--r--ocrdma-abi.h3918logplain -rw-r--r--qedr-abi.h2559logplain -rw-r--r--rdma_netlink.h4980logplain