This patch replaces the usages of `$(RM)` with cross platform `$(call RM,...)` calls which was added in https://github.com/llvm/llvm-project/pull/180224.
17 lines
332 B
Makefile
17 lines
332 B
Makefile
C_SOURCES := main.c
|
|
|
|
all: dirsymlink
|
|
|
|
dirreal: a.out
|
|
$(call RM_RF,$@)
|
|
mkdir $@
|
|
$(OBJCOPY) --only-keep-debug $< $@/stripped.debug
|
|
$(OBJCOPY) --strip-all --add-gnu-debuglink=$@/stripped.debug $< $@/stripped.out
|
|
|
|
dirsymlink: dirreal
|
|
$(call RM_RF,$@)
|
|
mkdir $@
|
|
ln -s ../$</stripped.out $@/stripped.symlink
|
|
|
|
include Makefile.rules
|