📄 makefile
字号:
# $@--目标文件,$^--所有的依赖文件,$<--第一个依赖文件#TOPDIR = $(shell pwd)
include $(TOPDIR)/Rules.make
.PHONY: all clean
all: subdir $(EXECS)
subdir:
for n in $(SUBDIR); do $(MAKE) -C $$n || exit 1; done
tmp1: $(OBJS)
$(CC) -o tmp1 $(OBJS) $(LDLIB)
#clean:
# rm -f *.o
# for n in $(SUBDIR); do $(MAKE) -C $$n clean; done
.c.o: gcc -c $<
#ieee80211_common.o: ieee80211_common.c
# $(CC) $(CFLAGS) -c $^
#platform_ioctl.o: platform_ioctl.c
# $(CC) $(CFLAGS) -c $^
#security_test_driver.o: security_test_driver.c
# $(CC) $(CFLAGS) -c $^
#w11b_security_test_hostap.o: w11b_security_test_hostap.c
# $(CC) $(CFLAGS) -c $^
#w11b_security_test_plugin.o: w11b_security_test_plugin.c
# $(CC) $(CFLAGS) -c $^
#w11b_test_item.o: w11b_test_item.c
# $(CC) $(CFLAGS) -c $^#w11b_test_security.o: w11b_test_security.c
# $(CC) $(CFLAGS) -c $^
#;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
# make relase version
#;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
distribute:
@(mkdir tse) ||exit 1; \
(cp -r Rules.make Makefile *.cpp *.h *.sh *seed* tse_ipblock pku.hosts\
tse_unreachHost.list *.txt README \
hlink include lib stack uri ./tse) ||exit 1; \
tarball="tse.`date '+%y%m%d-%H%M'`.`uname`.tar"; \
echo @create release tar ball as $$tarball.gz...... ; \
rm -f $$tarball; \
tar cf $$tarball ./tse; \
gzip $$tarball; \
rm -rf ./tse; \
echo @done!
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -