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

📄 makefile

📁 IPv4和IPv6下发任意包的程序
💻
字号:
DEFINES = `sh /usr/bin/libnet-config --defines`
LIBS = `sh /usr/bin/libnet-config --libs`
LIBNET_PATH = /usr/lib/libnet.a
CC = gcc

snot: snot_main.o snot_parse_rules.o snot_send_packets.o
	$(CC) -g $(DEFINES) $(LIBS) -o snot snot_main.c snot_parse_rules.o snot_send_packets.o $(LIBNET_PATH) $(LIBS)

snot_parse_rules.o: snot_parse_rules.c snot_main.o
	$(CC) -g $(DEFINES) -c -o snot_parse_rules.o snot_parse_rules.c

snot_send_packets.o: snot_send_packets.c snot_main.o
	$(CC) -g $(DEFINES) -c -o snot_send_packets.o snot_send_packets.c

snot_main.o: snot_main.c
	$(CC) -g $(DEFINES) -c -o snot_main.o snot_main.c

clean:
	rm *.o snot

unixify:
	sh tr.sh

⌨️ 快捷键说明

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