📄 makefile
字号:
# CWZ create Makefile on 12/16# CWZ NOTE: do not need head files and source filesCC = gcc#gccCXX = g++RM = rmMV = mvBIN_DIR = ./binCFLAGS = -ggdbCXXFLAGS = -Wall -D_REENTRANT OBJS = \ Logger.o \ Attribute.o \ AttrDict.o \ AttrValuePair.o \ AttrPairFields.o \ Pack.o \ MsgPack.o \ Socket.oTARGET = \ testTEST_OBJ = test.o# MAKE begin# Dependent rules: this can be ignored.cpp.o: ${CXX} ${CXXFLAGS} -c $< # First step: find "all" , its dependent files is "TARGET"all: ${TARGET} clean# Second step: find makeing rules of "TARGET", its dependent files is "OBJS"# and "TEST_OBJ"# Next step: find making rules of "OBJS" and "TEST_OBJ" , it will compile them # automatically, for they are OBJ filestest: ${OBJS} ${TEST_OBJ} ${CXX} -o l$@ $^ ${CXXFLAGS} ${CFLAGS}# mv ${TARGET} ${BIN_DIR} rm ${TEST_OBJ}clean: rm -f ${OBJS} ${TEST_OBJ} core# rm -f ${TEST_OBJ} clobber: clean rm -f ${TARGET}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -