Optimize makefile

This commit is contained in:
logwang 2017-09-14 15:25:07 +08:00
parent e81d492e9b
commit 8cf1d457cb
2 changed files with 2 additions and 2 deletions

View File

@ -21,4 +21,4 @@ all:
.PHONY: clean .PHONY: clean
clean: clean:
rm -f *.o ${TARGET} rm -f *.o ${TARGET} ${TARGET}_epoll

View File

@ -376,7 +376,7 @@ all: libfstack.a
# externally available. # externally available.
# #
libfstack.a: machine_includes ff_api.symlist ${MHEADERS} ${MSRCS} ${HOST_OBJS} ${ASM_OBJS} ${OBJS} libfstack.a: machine_includes ff_api.symlist ${MHEADERS} ${MSRCS} ${HOST_OBJS} ${ASM_OBJS} ${OBJS}
${LD} -r -o $*.ro ${ASM_OBJS} ${OBJS} ${LD} -d -r -o $*.ro ${ASM_OBJS} ${OBJS}
nm $*.ro | grep -v ' U ' | cut -d ' ' -f 3 > $*_localize_list.tmp nm $*.ro | grep -v ' U ' | cut -d ' ' -f 3 > $*_localize_list.tmp
objcopy --localize-symbols=$*_localize_list.tmp $*.ro objcopy --localize-symbols=$*_localize_list.tmp $*.ro
rm $*_localize_list.tmp rm $*_localize_list.tmp