makefile
来自「Last Update: Jan 22 2009 可靠UDP传输, 一套高」· 代码 · 共 55 行
TXT
55 行
C++ = g++ifndef os os = LINUXendififndef arch arch = IA32endifCCFLAGS = -Wall -D$(os) -I../src -O2 -finline-functionsifeq ($(arch), IA32) CCFLAGS += -DIA32 #-mcpu=pentiumpro -march=pentiumpro -mmmx -msseendififeq ($(arch), POWERPC) CCFLAGS += -mcpu=powerpcendififeq ($(arch), IA64) CCFLAGS += -DIA64endifLDFLAGS = -L../src -ludt -lstdc++ -lpthread -lmifeq ($(os), UNIX) LDFLAGS += -lsocketendifOBJS = appserver.o appclient.o sendfile.o recvfile.oDIR = $(shell pwd)all: appserver appclient sendfile recvfile%.o: %.cpp $(C++) $(CCFLAGS) $< -cappserver: appserver.o $(C++) $^ -o $@ $(LDFLAGS)appclient: appclient.o $(C++) $^ -o $@ $(LDFLAGS)sendfile: sendfile.o $(C++) $^ -o $@ $(LDFLAGS)recvfile: recvfile.o $(C++) $^ -o $@ $(LDFLAGS)clean: rm -f *.o rm -f appserver appclient sendfile recvfileinstall: export PATH=$(DIR):$$PATH
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?