makefile

来自「在Linux操作系统下实现的软件交换技术」· 代码 · 共 28 行

TXT
28
字号
# Welcome!# softswitch program allows a computer work as a Switch.# This is makefile.#Compiler	CC=gcc#Option compile on command line for developed product	CFLAGS=-g#Option compile on command line for finished product	#CFLAGS=-O -Wall -ansisoftswitch: softswitch.o count_nic.o get_mac.o	$(CC) -o softswitch softswitch.o count_nic.o get_mac.o -lpcap -lnet -lpthreadsoftswitch.o: softswitch.c getmac_struct.h ethernet.h	$(CC) -c softswitch.ccount_nic.o: count_nic.c	$(CC) -c count_nic.cget_mac.o: get_mac.c getmac_struct.h	$(CC) -c get_mac.c#Delete file .oclean:	rm -f *.o *.h~ *.c~ makefile~

⌨️ 快捷键说明

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