一个简单的Makefile示例

一个简单的Makefile示例,如下所示
TARGET = XXXX
FLAGS = -g -Wall -lpthread 

MACROS = -DIS_X86_32BIT

SRC_FILES =  \

INC_PATH = -I  \

LIB_PATH = -L  \

LIBS = -lutils\

all :
    gcc $(SRC_FILES) -o ${TARGET} ${FLAGS} ${INC_PATH} 
${LIB_PATH} ${LIBS}

clean:
    rm -rf ${TARGET}

你可能感兴趣的:(gcc,makefile,SRC_FILES,LIB_PATH,INC_PATH)