请在下面的makefile中解释$ @ $ ^ $
LIBS = -lkernel32 -luser32 -lgdi32 -lopengl32
CFLAGS = -Wall
# (This should be the actual list of C files)
SRC=$(wildcard '*.c')
test: $(SRC)
gcc -o $@ $^ $(CFLAGS) $(LIBS)
Run Code Online (Sandbox Code Playgroud)
这就是这两个符号的含义:
test
SRC=$(wildcard '*.c')
)所有这些变量都在GNU make手册的Automatic variables页面中解释.
归档时间: |
|
查看次数: |
4039 次 |
最近记录: |