当前位置: 技术问答>linux和unix
谁能帮我注释下这个Makefile文件
来源: 互联网 发布时间:2016-11-07
本文导语: SAMPLE_ROOT = $(PWD) DVS_ROOT = $(PWD)/../../code CC = arm-uclibc-linux-gcc CFLAGS=-DHI_DEBUG -g -Wall INCLUDE = -I$(DVS_ROOT)/include INCLUDE += -I$(DVS_ROOT)/msp/include INCLUDE += -I. INCLUDE += -I$(DVS_ROOT)/extdrv/include LIB = -static -lpthread -lhiapi LIBPATH =-L$(DVS...
SAMPLE_ROOT = $(PWD)
DVS_ROOT = $(PWD)/../../code
CC = arm-uclibc-linux-gcc
CFLAGS=-DHI_DEBUG -g -Wall
INCLUDE = -I$(DVS_ROOT)/include
INCLUDE += -I$(DVS_ROOT)/msp/include
INCLUDE += -I.
INCLUDE += -I$(DVS_ROOT)/extdrv/include
LIB = -static -lpthread -lhiapi
LIBPATH =-L$(DVS_ROOT)/msp/lib
SRC = $(wildcard *.c)
APP = $(SRC:%.c=%)
all: $(APP)
$(APP): %: %.c
$(CC) $(CFLAGS) -o $@ $
DVS_ROOT = $(PWD)/../../code
CC = arm-uclibc-linux-gcc
CFLAGS=-DHI_DEBUG -g -Wall
INCLUDE = -I$(DVS_ROOT)/include
INCLUDE += -I$(DVS_ROOT)/msp/include
INCLUDE += -I.
INCLUDE += -I$(DVS_ROOT)/extdrv/include
LIB = -static -lpthread -lhiapi
LIBPATH =-L$(DVS_ROOT)/msp/lib
SRC = $(wildcard *.c)
APP = $(SRC:%.c=%)
all: $(APP)
$(APP): %: %.c
$(CC) $(CFLAGS) -o $@ $