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

📄 makefile

📁 udt.sdk.4.1.tar.gz更新包
💻
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -