⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 能把所有线程的数据和环境记录到文件,方便调试.
💻
字号:
# This makefile will probably work out of the box for you, but if not, try# changing PTHREAD to be -pthread (possibly needed for FreeBSD), and/or CC # to be cc (possibly needed for Solaris).  PORT = 9900LIBTOOL = ../libtoolCC = gccPTHREAD = -lpthreadall:    tftpd# This rule works both in the source tree, and stand-alone. In the latter case# it assumes that the libraries and headers are installed system-wide.tftpd:  tftpd.c	@if [ -r ../src/coredumper.c ]; then                                  \		( cd .. && { [ -r Makefile ] || ./configure; } && $(MAKE) ) &&\		echo $(CC) -o $@ -g -Wall -O2 -lcoredumper $(PTHREAD)         \		     tftpd.c &&                                               \		$(LIBTOOL) --mode=link $(CC) -o $@ -g -Wall -O2 -I../src -L.. \	        	   -lcoredumper $(PTHREAD) $^ ../libcoredumper.la;    \	else                                                                  \		echo $(CC) -o $@ -g -Wall -O2 -lcoredumper $(PTHREAD) tftpd.c;\		$(CC) -o $@ -g -Wall -O2 -lcoredumper $(PTHREAD) tftpd.c;     \	fidistclean: cleanclean:	@echo $(RM) -f tftpd core	@if [ -r ../src/coredumper.c ]; then                                  \		$(LIBTOOL) --mode=clean $(RM) -f tftpd core;                  \	else                                                                  \		$(RM) -f tftpd core;                                          \	ficheck:  tftpd	@echo "Starting TFTP server on port $(PORT)" &&                       \	rm -f core && set -m &&                                               \	{ ./tftpd --port $(PORT) </dev/null & } && pid="$$!" &&               \	trap "kill -15 -$$pid >/dev/null 2>&1" EXIT &&                        \	sleep 1 &&                                                            \	echo "Downloading tftp://localhost:$(PORT)/core" &&                   \	{ echo;                                                               \	  echo "connect localhost $(PORT)";                                   \	  echo "binary";                                                      \	  echo "get core";                                                    \	  echo "quit"; } | tftp >/dev/null &&                                 \	kill -15 -$$pid >/dev/null 2>&1 &&                                    \	{ wait $$pid; [ $$? -eq 143 ]; } &&                                   \	echo "Validating core file contents" &&                               \	readelf -a core &&                                                    \	echo "PASS" ||                                                        \	echo "FAILED"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -