X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=o-du%2Fphy.git;a=blobdiff_plain;f=wls_lib%2Ftestapp%2FMakefile;h=ddd1396a82f9a46d8d0a18cfc250aeaeb012b3b0;hp=6fcd6f6694e25c889f6b5d4d413ca69d2bdd2f54;hb=601bdead8ae15a0c7ca5dee02675808b51477269;hpb=62f80e30407337464c28193f44a5b09521a6def9 diff --git a/wls_lib/testapp/Makefile b/wls_lib/testapp/Makefile index 6fcd6f6..ddd1396 100644 --- a/wls_lib/testapp/Makefile +++ b/wls_lib/testapp/Makefile @@ -16,7 +16,7 @@ # ############################################################################### -ifdef DPDK_WLS + ifeq ($(RTE_SDK),) $(error "Please define RTE_SDK environment variable") endif @@ -33,29 +33,8 @@ LDFLAGS += -L../.. -l wls -lpthread -lhugetlbfs # all source are stored in SRCS-y SRCS-y := pool.c testapp.c -CFLAGS += $(WERROR_FLAGS) -I../.. -DDPDK_WLS +CFLAGS += $(WERROR_FLAGS) -I../.. EXTRA_CFLAGS += -g include $(RTE_SDK)/mk/rte.extapp.mk -else - -#EXTRA_CFLAGS +=-g -Wall -wd9 -I../ -EXTRA_CFLAGS +=-g -Wall -I../ -LDFLAGS += -L../ -lwls - -# all source are stored in SRCS-y -SRCS-y := pool.c testapp.c -wls_test: testapp.o pool.o - $(CC) $(LDFLAGS) $(EXTRA_CFLAGS) -o $@ testapp.o pool.o -L . -l wls -l pthread -l hugetlbfs - -CFLAGS += $(WERROR_FLAGS) -g -I../../ -testapp.o: testapp.c - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -o $@ -c $< - -pool.o: pool.c - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -o $@ -c $< - -clean: - rm -f *.o wls_test -endif