2017-05-23 15:13:49 +00:00
|
|
|
TOPDIR=..
|
|
|
|
|
|
|
|
ifeq ($(FF_PATH),)
|
|
|
|
FF_PATH=${TOPDIR}
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(FF_DPDK),)
|
|
|
|
FF_DPDK=${TOPDIR}/dpdk/x86_64-native-linuxapp-gcc
|
|
|
|
endif
|
|
|
|
|
2018-05-15 09:49:22 +00:00
|
|
|
LIBS+= -L${FF_PATH}/lib -Wl,--whole-archive,-lfstack,--no-whole-archive
|
|
|
|
LIBS+= -L${FF_DPDK}/lib -Wl,--whole-archive,-ldpdk,--no-whole-archive
|
|
|
|
LIBS+= -Wl,--no-whole-archive -lrt -lm -ldl -lcrypto -pthread -lnuma
|
2017-05-12 03:06:04 +00:00
|
|
|
|
2017-04-21 10:43:26 +00:00
|
|
|
TARGET="helloworld"
|
|
|
|
all:
|
2023-09-12 13:01:47 +00:00
|
|
|
cc -O -gdwarf-2 -I../lib -DINET6 -o ${TARGET} main.c ${LIBS}
|
2017-06-13 09:50:51 +00:00
|
|
|
cc -O -gdwarf-2 -I../lib -o ${TARGET}_epoll main_epoll.c ${LIBS}
|
2017-04-21 10:43:26 +00:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
2017-09-14 07:25:07 +00:00
|
|
|
rm -f *.o ${TARGET} ${TARGET}_epoll
|