1TOPDIR=.. 2 3ifeq ($(FF_PATH),) 4 FF_PATH=${TOPDIR} 5endif 6 7ifeq ($(FF_DPDK),) 8 FF_DPDK=${TOPDIR}/dpdk/x86_64-native-linuxapp-gcc 9endif 10 11LIBS+= -L${FF_PATH}/lib -L${FF_DPDK}/lib -Wl,--whole-archive,-lfstack,--no-whole-archive 12LIBS+= -Wl,--whole-archive -lrte_pmd_vmxnet3_uio -lrte_pmd_i40e -lrte_pmd_ixgbe -lrte_pmd_e1000 -lrte_pmd_ring 13LIBS+= -Wl,--whole-archive -lrte_hash -lrte_kvargs -Wl,-lrte_mbuf -lethdev -lrte_eal -Wl,-lrte_mempool 14LIBS+= -lrte_ring -lrte_cmdline -lrte_cfgfile -lrte_kni -lrte_timer -Wl,-lrte_pmd_virtio 15LIBS+= -Wl,--no-whole-archive -lrt -lm -ldl -lcrypto -pthread 16 17TARGET="helloworld" 18all: 19 cc -O -gdwarf-2 -g -I../lib -o ${TARGET} main.c ${LIBS} 20 21.PHONY: clean 22clean: 23 rm -f *.o ${TARGET} 24