makefile

来自「小型短信网关系统」· 代码 · 共 57 行

TXT
57
字号
# 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 + =
减小字号Ctrl + -
显示快捷键?