summaryrefslogtreecommitdiff
path: root/ffbuild/common.mak
diff options
context:
space:
mode:
authorZhao Zhili <quinkblack@foxmail.com>2021-12-20 17:09:09 +0800
committerAman Karmani <aman@tmm1.net>2021-12-20 12:05:39 -0800
commit35420ab7fd76bdcf43a2f671c39a2555a5fba488 (patch)
tree8bdbf66b0486a9e7ea20ddef0c945ca96de3c54e /ffbuild/common.mak
parent3c56b9c597565affdb97316fec11afb4cb5f1f00 (diff)
downloadffmpeg-35420ab7fd76bdcf43a2f671c39a2555a5fba488.tar.gz
build: simplify rules for metal
Signed-off-by: Aman Karmani <aman@tmm1.net>
Diffstat (limited to 'ffbuild/common.mak')
-rw-r--r--ffbuild/common.mak6
1 files changed, 3 insertions, 3 deletions
diff --git a/ffbuild/common.mak b/ffbuild/common.mak
index e79b509425..c13148f476 100644
--- a/ffbuild/common.mak
+++ b/ffbuild/common.mak
@@ -113,13 +113,13 @@ $(BIN2CEXE): ffbuild/bin2c_host.o
$(HOSTLD) $(HOSTLDFLAGS) $(HOSTLD_O) $^ $(HOSTEXTRALIBS)
%.metal.air: %.metal
- $(METALCC) $(patsubst $(SRC_PATH)/%,$(SRC_LINK)/%,$<) -o $@
+ $(METALCC) $< -o $@
%.metallib: %.metal.air
- $(METALLIB) --split-module-without-linking $(patsubst $(SRC_PATH)/%,$(SRC_LINK)/%,$<) -o $@
+ $(METALLIB) --split-module-without-linking $< -o $@
%.metallib.c: %.metallib $(BIN2CEXE)
- $(BIN2C) $(patsubst $(SRC_PATH)/%,$(SRC_LINK)/%,$<) $@ $(subst .,_,$(basename $(notdir $@)))
+ $(BIN2C) $< $@ $(subst .,_,$(basename $(notdir $@)))
%.ptx: %.cu $(SRC_PATH)/compat/cuda/cuda_runtime.h
$(COMPILE_NVCC)