aboutsummaryrefslogtreecommitdiffstats
path: root/examples/l4fwd/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'examples/l4fwd/Makefile')
-rw-r--r--examples/l4fwd/Makefile33
1 files changed, 8 insertions, 25 deletions
diff --git a/examples/l4fwd/Makefile b/examples/l4fwd/Makefile
index a6e0de3..be85eac 100644
--- a/examples/l4fwd/Makefile
+++ b/examples/l4fwd/Makefile
@@ -11,38 +11,21 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-ifeq ($(RTE_SDK),)
-$(error "Please define RTE_SDK environment variable")
-endif
-
-ifeq ($(RTE_TARGET),)
-$(error "Please define RTE_TARGET environment variable")
-endif
-
-ifeq ($(TLDK_ROOT),)
-$(error "Please define TLDK_ROOT environment variable")
-endif
-
-include $(RTE_SDK)/mk/rte.vars.mk
-
# binary name
-APP = l4fwd
+APP_NAME = l4fwd
+
+include $(TLDK_ROOT)/mk/tle.var.mk
# all source are stored in SRCS-y
SRCS-y += parse.c
SRCS-y += pkt.c
SRCS-y += main.c
-CFLAGS += $(WERROR_FLAGS)
-CFLAGS += -I$(RTE_OUTPUT)/include
-
-LDLIBS += -L$(RTE_OUTPUT)/lib
-LDLIBS += -ltle_l4p
-LDLIBS += -ltle_memtank
-LDLIBS += -ltle_timer
+LIB_DEPS += tle_l4p
+LIB_DEPS += tle_memtank
+LIB_DEPS += tle_timer
-EXTRA_CFLAGS += -O3
-CFLAGS_parse.o += -D_GNU_SOURCE
-CFLAGS_main.o += -D_GNU_SOURCE
+CFLAGS_parse.c += -D_GNU_SOURCE
+CFLAGS_main.c += -D_GNU_SOURCE
include $(TLDK_ROOT)/mk/tle.app.mk