?? makefile
字號:
#Makefile written by Boby Thomas#This is a general make file which can be used for compiling small projects with#all the source files in a single folder.#===============================================================================#user settings. Modifiy only here#===============================================================================#Binary namePROJECT:=utf_util#Directory for object files generation.OBJ_DIR:=obj#Directory for binaryBIN_DIR:=bin#Add all your additional include folders hereINCLUDES = -I ./include#CompilerCXX = g++#Additional flags if required CFLAGS = $(INCLUDES) -g -Wno-deprecated#===============================================================================#Don't touch the code below unless you need to expand the functionality.#===============================================================================SRC:=$(shell ls *.cpp 2>/dev/null)SOBJECTS:=$(patsubst %.cpp,$(OBJ_DIR)/$(PROJECT)/%.o,$(wildcard *.cpp))PROGRAM:=$(addprefix $(BIN_DIR)/,$(PROJECT))all: init $(PROGRAM) @echo "Build complete." $(OBJ_DIR)/$(PROJECT)/%.o: %.cpp $(CXX) -c $(CXXFLAGS) $(CPPFLAGS) $< -o $@ $(BIN_DIR)/$(PROJECT): $(SOBJECTS)# $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(PROG_FLAGS) $^ -o $@ $(LDFLAGS) $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(PROG_FLAGS) $^ -o $@ $(LDFLAGS) init: @echo "making the project................." @mkdir -p $(OBJ_DIR) @mkdir -p $(OBJ_DIR)/$(PROJECT) @mkdir -p $(BIN_DIR) clean: @echo "removing all the object files" rm -rf $(OBJ_DIR) @echo "removing the binary" rm -rf $(BIN_DIR) @echo "cleaning complete"
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -