-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.am
83 lines (71 loc) · 3.37 KB
/
Makefile.am
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
bin_PROGRAMS = macsad ctrl/mac_controller ctrl/mac_l2_l3_controller ctrl/mac_l3_controller ctrl/mac_l3_nhg_controller
macsad_SOURCES = build/src_hardware_indep/dataplane.c \
build/src_hardware_indep/tables.c \
build/src_hardware_indep/parser.c \
build/src_hardware_indep/actions.c \
build/src_hardware_indep/controlplane.c \
src/hardware_dep/odp/main.c \
src/hardware_dep/odp/main_odp.c \
src/hardware_dep/shared/ctrl_plane/ctrl_plane_backend.c \
src/hardware_dep/shared/ctrl_plane/fifo.c \
src/hardware_dep/shared/ctrl_plane/handlers.c \
src/hardware_dep/shared/ctrl_plane/messages.c \
src/hardware_dep/shared/ctrl_plane/sock_helpers.c \
src/hardware_dep/shared/ctrl_plane/threadpool.c \
src/hardware_dep/odp/data_plane/odp_lib.c \
src/hardware_dep/odp/data_plane/odp_tables.c \
src/hardware_dep/odp/data_plane/odp_primitives.c
ctrl_mac_controller_SOURCES = \
src/hardware_dep/shared/ctrl_plane/handlers.c \
src/hardware_dep/shared/ctrl_plane/controller.c \
src/hardware_dep/shared/ctrl_plane/messages.c \
src/hardware_dep/shared/ctrl_plane/sock_helpers.c \
src/hardware_dep/shared/ctrl_plane/threadpool.c \
src/hardware_dep/shared/ctrl_plane/fifo.c \
src/hardware_dep/shared/ctrl_plane/mac_controller.c
ctrl_mac_l2_l3_controller_SOURCES = \
src/hardware_dep/shared/ctrl_plane/handlers.c \
src/hardware_dep/shared/ctrl_plane/controller.c \
src/hardware_dep/shared/ctrl_plane/messages.c \
src/hardware_dep/shared/ctrl_plane/sock_helpers.c \
src/hardware_dep/shared/ctrl_plane/threadpool.c \
src/hardware_dep/shared/ctrl_plane/fifo.c \
src/hardware_dep/shared/ctrl_plane/mac_l2_l3_controller.c
ctrl_mac_l3_controller_SOURCES = \
src/hardware_dep/shared/ctrl_plane/handlers.c \
src/hardware_dep/shared/ctrl_plane/controller.c \
src/hardware_dep/shared/ctrl_plane/messages.c \
src/hardware_dep/shared/ctrl_plane/sock_helpers.c \
src/hardware_dep/shared/ctrl_plane/threadpool.c \
src/hardware_dep/shared/ctrl_plane/fifo.c \
src/hardware_dep/shared/ctrl_plane/mac_l3_controller.c
ctrl_mac_l3_nhg_controller_SOURCES = \
src/hardware_dep/shared/ctrl_plane/handlers.c \
src/hardware_dep/shared/ctrl_plane/controller.c \
src/hardware_dep/shared/ctrl_plane/messages.c \
src/hardware_dep/shared/ctrl_plane/sock_helpers.c \
src/hardware_dep/shared/ctrl_plane/threadpool.c \
src/hardware_dep/shared/ctrl_plane/fifo.c \
src/hardware_dep/shared/ctrl_plane/mac_l3_nhg_controller.c
ODP_CFLAGS = $(libodp_CFLAGS) $(libodphelper_CFLAGS)
AM_CFLAGS = $(ODP_CFLAGS) $(PTHREAD_CFLAGS) -D NDEBUG -D NINFO -D NSIGG -D NERROR -D NWARN
ODP_LIBS = $(libodp_LIBS) $(libodphelper_LIBS)
LIBS += $(ODP_LIBS) $(PTHREAD_LIBS)
if MAC_ODP_DPDK
AM_CFLAGS += -I "$(RTE_SDK)/$(RTE_TARGET)/include"
AM_LDFLAGS = -L$(RTE_SDK)/$(RTE_TARGET)/lib
#AM_LDFLAGS = $(DPDK_LDFLAGS)
#AM_CFLAGS += $(DPDK_CFLAGS)
LIBS += $(DPDK_LIBS)
endif
if MAC_ODPD
AM_CFLAGS += -I "$(RTE_SDK)/$(RTE_TARGET)/include"
AM_LDFLAGS = -L$(RTE_SDK)/$(RTE_TARGET)/lib
LIBS += $(DPDK_LIBS)
endif
if MAC_ODPN
LIBS += -lrt -lcrypto -lpcap
endif
#**********************
# FIXME: This should not be necessary: files should have relative references to other files in the project
AM_CPPFLAGS = -I "src/hardware_dep/shared/includes" -I "src/hardware_dep/shared/ctrl_plane" -I "build/src_hardware_indep" -I "src/hardware_dep/odp/includes"