特别注意,all, clean,这些命令下面,需要接 ‘Table’ 字符。(如果有python基础,会比较好理解。Table在某些语言中是很重要的一类字符)
INC_DIR=-I/usr/local/include/hiredis/ LIB_DIR=-L/usr/local/lib LIB=-lhiredis CC=gcc -g CFLAGS=-Wall -std=c++11 EXE=hello all: $(CC) $(CFLAGS) $(EXE).c -o $(EXE) $(INC_DIR) $(LIB_DIR) $(LIB) clean: rm -rf *.o $(EXE)