aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-dpdk/Makefile.am
blob: 698e88108a257a379f5904143968810d00513c04 (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
include $(top_srcdir)/platform/Makefile.inc

PLAT_CFLAGS  = -msse4.2
if SDK_INSTALL_PATH_
PLAT_CFLAGS += -include $(SDK_INSTALL_PATH)/include/rte_config.h
PLAT_CFLAGS += -I$(SDK_INSTALL_PATH)/include
PLAT_CFLAGS += -I$(SDK_INSTALL_PATH)/include/arch
PLAT_CFLAGS += -I$(SDK_INSTALL_PATH)/include/exec-env

AM_LDFLAGS  += -L$(SDK_INSTALL_PATH)/lib
endif

AM_CFLAGS +=  $(PLAT_CFLAGS)
AM_CFLAGS +=  -I$(srcdir)/include
AM_CFLAGS +=  -I$(top_srcdir)/platform/linux-generic/include
AM_CFLAGS +=  -I$(top_srcdir)/include
AM_CFLAGS +=  -I$(top_srcdir)/helper/include

DPDK_LIBS="-ldpdk -ldl -lm -lpcap"
LIBS += $(DPDK_LIBS)

include_HEADERS = \
		  $(top_srcdir)/include/odp.h

odpincludedir= $(includedir)/odp
odpinclude_HEADERS = \
		  $(top_srcdir)/platform/linux-generic/include/odp/align.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/atomic.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/barrier.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/buffer.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/byteorder.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/classification.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/compiler.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/config.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/cpu.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/cpumask.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/crypto.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/debug.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/errno.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/event.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/hints.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/init.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/packet_flags.h \
		  $(srcdir)/include/odp/packet.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/packet_io.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/pool.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/queue.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/random.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/rwlock.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/schedule.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/schedule_types.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/shared_memory.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/spinlock.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/std_types.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/sync.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/system_info.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/thread.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/thrmask.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/ticketlock.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/time.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/timer.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/version.h

odpplatincludedir= $(includedir)/odp/plat
odpplatinclude_HEADERS = \
		  $(top_srcdir)/platform/linux-generic/include/odp/plat/atomic_types.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/plat/barrier_types.h \
		  $(srcdir)/include/odp/plat/buffer_types.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/plat/byteorder_types.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/plat/classification_types.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/plat/cpumask_types.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/plat/crypto_types.h \
		  $(srcdir)/include/odp/plat/event_types.h \
		  $(srcdir)/include/odp/plat/packet_types.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/plat/packet_io_types.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/plat/pool_types.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/plat/queue_types.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/plat/rwlock_types.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/plat/schedule_types.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/plat/shared_memory_types.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/plat/spinlock_types.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/plat/strong_types.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/plat/thrmask_types.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/plat/ticketlock_types.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/plat/timer_types.h \
		  $(top_srcdir)/platform/linux-generic/include/odp/plat/version_types.h

odpapiincludedir= $(includedir)/odp/api
odpapiinclude_HEADERS = \
		  $(top_srcdir)/include/odp/api/align.h \
		  $(top_srcdir)/include/odp/api/atomic.h \
		  $(top_srcdir)/include/odp/api/barrier.h \
		  $(top_srcdir)/include/odp/api/buffer.h \
		  $(top_srcdir)/include/odp/api/byteorder.h \
		  $(top_srcdir)/include/odp/api/classification.h \
		  $(top_srcdir)/include/odp/api/compiler.h \
		  $(top_srcdir)/include/odp/api/config.h \
		  $(top_srcdir)/include/odp/api/cpu.h \
		  $(top_srcdir)/include/odp/api/cpumask.h \
		  $(top_srcdir)/include/odp/api/crypto.h \
		  $(top_srcdir)/include/odp/api/debug.h \
		  $(top_srcdir)/include/odp/api/errno.h \
		  $(top_srcdir)/include/odp/api/event.h \
		  $(top_srcdir)/include/odp/api/hints.h \
		  $(top_srcdir)/include/odp/api/init.h \
		  $(top_srcdir)/include/odp/api/packet.h \
		  $(top_srcdir)/include/odp/api/packet_flags.h \
		  $(top_srcdir)/include/odp/api/packet_io.h \
		  $(top_srcdir)/include/odp/api/pool.h \
		  $(top_srcdir)/include/odp/api/queue.h \
		  $(top_srcdir)/include/odp/api/random.h \
		  $(top_srcdir)/include/odp/api/rwlock.h \
		  $(top_srcdir)/include/odp/api/schedule.h \
		  $(top_srcdir)/include/odp/api/schedule_types.h \
		  $(top_srcdir)/include/odp/api/shared_memory.h \
		  $(top_srcdir)/include/odp/api/spinlock.h \
		  $(top_srcdir)/include/odp/api/std_types.h \
		  $(top_srcdir)/include/odp/api/sync.h \
		  $(top_srcdir)/include/odp/api/system_info.h \
		  $(top_srcdir)/include/odp/api/thread.h \
		  $(top_srcdir)/include/odp/api/thrmask.h \
		  $(top_srcdir)/include/odp/api/ticketlock.h \
		  $(top_srcdir)/include/odp/api/time.h \
		  $(top_srcdir)/include/odp/api/timer.h \
		  $(top_srcdir)/include/odp/api/version.h

noinst_HEADERS = \
		  $(srcdir)/include/odp_buffer_internal.h \
		  $(top_srcdir)/platform/linux-generic/include/odp_debug_internal.h \
		  $(srcdir)/include/odp_packet_dpdk.h \
		  $(srcdir)/include/odp_packet_internal.h \
		  $(srcdir)/include/odp_packet_io_internal.h \
		  $(top_srcdir)/platform/linux-generic/include/odp_packet_io_queue.h \
		  $(srcdir)/include/odp_pool_internal.h \
		  ${top_srcdir}/platform/linux-generic/Makefile.inc

subdirheadersdir = $(includedir)/odp/helper
subdirheaders_HEADERS = \
			$(top_srcdir)/helper/include/odp/helper/chksum.h \
			$(top_srcdir)/helper/include/odp/helper/eth.h \
			$(top_srcdir)/helper/include/odp/helper/icmp.h \
			$(top_srcdir)/helper/include/odp/helper/ip.h \
			$(top_srcdir)/helper/include/odp/helper/ipsec.h \
			$(top_srcdir)/helper/include/odp/helper/linux.h \
			$(top_srcdir)/helper/include/odp/helper/ring.h \
			$(top_srcdir)/helper/include/odp/helper/tcp.h \
			$(top_srcdir)/helper/include/odp/helper/udp.h

__LIB__libodp_la_SOURCES = \
			   ../linux-generic/odp_barrier.c \
			   odp_buffer.c \
			   odp_cpumask.c \
			   ../linux-generic/odp_crypto.c \
			   ../linux-generic/odp_errno.c \
			   ../linux-generic/odp_event.c \
			   odp_init.c \
			   ../linux-generic/odp_impl.c \
			   odp_linux.c \
			   odp_packet.c \
			   odp_packet_dpdk.c \
			   ../linux-generic/odp_packet_flags.c \
			   odp_packet_io.c \
			   odp_pool.c \
			   ../linux-generic/odp_queue.c \
			   ../../helper/ring.c \
			   ../linux-generic/odp_rwlock.c \
			   ../linux-generic/odp_schedule.c \
			   ../linux-generic/odp_shared_memory.c \
			   ../linux-generic/odp_spinlock.c \
			   ../linux-generic/odp_system_info.c \
			   odp_thread.c \
			   ../linux-generic/odp_thrmask.c \
			   ../linux-generic/odp_ticketlock.c \
			   ../linux-generic/odp_time.c \
			   ../linux-generic/odp_timer.c \
			   ../linux-generic/odp_version.c \
			   ../linux-generic/odp_weak.c \
			   ../linux-generic/arch/@ARCH@/odp_time_cycles.c