17abd0fb2SlogwangTOPDIR=.. 27abd0fb2Slogwang 37abd0fb2Slogwangifeq ($(FF_PATH),) 47abd0fb2Slogwang FF_PATH=${TOPDIR} 57abd0fb2Slogwangendif 67abd0fb2Slogwang 77abd0fb2Slogwangifeq ($(FF_DPDK),) 87abd0fb2Slogwang FF_DPDK=${TOPDIR}/dpdk/x86_64-native-linuxapp-gcc 97abd0fb2Slogwangendif 107abd0fb2Slogwang 1187454041SlogwangLIBS+= -L${FF_PATH}/lib -L${FF_DPDK}/lib -Wl,--whole-archive,-lfstack,--no-whole-archive 1287454041SlogwangLIBS+= -Wl,--whole-archive -lrte_pmd_vmxnet3_uio -lrte_pmd_i40e -lrte_pmd_ixgbe -lrte_pmd_e1000 -lrte_pmd_ring 1387454041SlogwangLIBS+= -Wl,--whole-archive -lrte_hash -lrte_kvargs -Wl,-lrte_mbuf -lethdev -lrte_eal -Wl,-lrte_mempool 1487454041SlogwangLIBS+= -lrte_ring -lrte_cmdline -lrte_cfgfile -lrte_kni -lrte_timer -Wl,-lrte_pmd_virtio 15*df6ad731SlogwangLIBS+= -Wl,--no-whole-archive -lrt -lm -ldl -lcrypto -pthread 1687454041Slogwang 17a9643ea8SlogwangTARGET="helloworld" 18a9643ea8Slogwangall: 19a9643ea8Slogwang cc -O -gdwarf-2 -I../lib -o ${TARGET} main.c ${LIBS} 20a9643ea8Slogwang 21a9643ea8Slogwang.PHONY: clean 22a9643ea8Slogwangclean: 23a9643ea8Slogwang rm -f *.o ${TARGET} 24