?? makefile
字號:
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 + -