Skip to content

Commit 57d998d

Browse files
committedJan 10, 2013
define $(RM) in Makefiles
In case make does not predefine it, eg. BSD make. Signed-off-by: Michael Walle <michael@walle.cc>
1 parent 68d407f commit 57d998d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
 

Diff for: ‎test/Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ EXTRA_DEFINES ?=
1010

1111
CC = $(CROSS_COMPILE)gcc
1212
OBJCOPY = $(CROSS_COMPILE)objcopy
13+
14+
# in case make does not have this already defined
15+
RM ?= rm -f
16+
1317
LDFLAGS = -Tlinker.ld -fno-builtin -nostdlib -lgcc
1418

1519
RTL ?= ../rtl

Diff for: ‎test/unittests/Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ SIZE = $(CROSS_COMPILE)size
77
LD = $(CC)
88
OBJCOPY = $(CROSS_COMPILE)objcopy
99

10+
# in case make does not have this already defined
11+
RM ?= rm -f
12+
1013
LDFLAGS = -Tlinker.ld -nostdlib -lgcc
1114
ASFLAGS += -Wa,-I,.
1215

0 commit comments

Comments
 (0)
Please sign in to comment.