当前位置: 技术问答>linux和unix
小弟, 请教一下Makefile中 %: 是什么意思了?
来源: 互联网 发布时间:2017-01-22
本文导语: 请教一下 $(APP): %: %.c只一句话时什么意思了? 急!!!分不够可以再加... PUB_ROOT=/home/Hi3560e/Hi3560E_DMS_V100R001C01SPC050/sdk-hfp/pub CROSS := arm-vfp_uclibc-linux-gnu- CC = $(CROSS)gcc PWD = `pwd` SAMPLE_ROOT = $(PWD)/../.. HIGO_LIB_PATH = ${PU...
请教一下 $(APP): %: %.c只一句话时什么意思了? 急!!!分不够可以再加...
PUB_ROOT=/home/Hi3560e/Hi3560E_DMS_V100R001C01SPC050/sdk-hfp/pub
CROSS := arm-vfp_uclibc-linux-gnu-
CC = $(CROSS)gcc
PWD = `pwd`
SAMPLE_ROOT = $(PWD)/../..
HIGO_LIB_PATH = ${PUB_ROOT}/lib
CFLAGS= -g -Wall -O2 -march=armv5te -mtune=arm9tdmi -mlittle-endian
INCLUDE = -I${PUB_ROOT}/include
LIB = -static -Wl,--start-group -ltde -lapi -lhigo -lhigoadp -lpng -lz -lpthread -ljpeg -lm -lunify -Wl,--end-group
LIBPATH =-L${HIGO_LIB_PATH}
SRC = $(wildcard *.c)
APP = $(SRC:%.c=%)
all: $(APP)
$(APP): %: %.c
echo "===lgw=== $(APP): %: %.c"
$(CC) $(CFLAGS) -o $@ $
PUB_ROOT=/home/Hi3560e/Hi3560E_DMS_V100R001C01SPC050/sdk-hfp/pub
CROSS := arm-vfp_uclibc-linux-gnu-
CC = $(CROSS)gcc
PWD = `pwd`
SAMPLE_ROOT = $(PWD)/../..
HIGO_LIB_PATH = ${PUB_ROOT}/lib
CFLAGS= -g -Wall -O2 -march=armv5te -mtune=arm9tdmi -mlittle-endian
INCLUDE = -I${PUB_ROOT}/include
LIB = -static -Wl,--start-group -ltde -lapi -lhigo -lhigoadp -lpng -lz -lpthread -ljpeg -lm -lunify -Wl,--end-group
LIBPATH =-L${HIGO_LIB_PATH}
SRC = $(wildcard *.c)
APP = $(SRC:%.c=%)
all: $(APP)
$(APP): %: %.c
echo "===lgw=== $(APP): %: %.c"
$(CC) $(CFLAGS) -o $@ $