Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

define $(RM) in Makefiles

In case make does not predefine it, eg. BSD make.

Signed-off-by: Michael Walle <michael@walle.cc>
  • Loading branch information...
commit 57d998d38fa1cd77c1c5eed72f079aaa2b0b0721 1 parent 68d407f
Michael Walle authored January 10, 2013
4  test/Makefile
@@ -10,6 +10,10 @@ EXTRA_DEFINES ?=
10 10
 
11 11
 CC      = $(CROSS_COMPILE)gcc
12 12
 OBJCOPY = $(CROSS_COMPILE)objcopy
  13
+
  14
+# in case make does not have this already defined
  15
+RM ?= rm -f
  16
+
13 17
 LDFLAGS = -Tlinker.ld -fno-builtin -nostdlib -lgcc
14 18
 
15 19
 RTL ?= ../rtl
3  test/unittests/Makefile
@@ -7,6 +7,9 @@ SIZE    = $(CROSS_COMPILE)size
7 7
 LD      = $(CC)
8 8
 OBJCOPY = $(CROSS_COMPILE)objcopy
9 9
 
  10
+# in case make does not have this already defined
  11
+RM ?= rm -f
  12
+
10 13
 LDFLAGS = -Tlinker.ld -nostdlib -lgcc
11 14
 ASFLAGS += -Wa,-I,.
12 15
 

0 notes on commit 57d998d

Please sign in to comment.
Something went wrong with that request. Please try again.