Skip to content

Commit

Permalink
define $(RM) in Makefiles
Browse files Browse the repository at this point in the history
In case make does not predefine it, eg. BSD make.

Signed-off-by: Michael Walle <michael@walle.cc>
  • Loading branch information
mwalle committed Jan 10, 2013
1 parent 68d407f commit 57d998d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/Makefile
Expand Up @@ -10,6 +10,10 @@ EXTRA_DEFINES ?=

CC = $(CROSS_COMPILE)gcc
OBJCOPY = $(CROSS_COMPILE)objcopy

# in case make does not have this already defined
RM ?= rm -f

LDFLAGS = -Tlinker.ld -fno-builtin -nostdlib -lgcc

RTL ?= ../rtl
Expand Down
3 changes: 3 additions & 0 deletions test/unittests/Makefile
Expand Up @@ -7,6 +7,9 @@ SIZE = $(CROSS_COMPILE)size
LD = $(CC)
OBJCOPY = $(CROSS_COMPILE)objcopy

# in case make does not have this already defined
RM ?= rm -f

LDFLAGS = -Tlinker.ld -nostdlib -lgcc
ASFLAGS += -Wa,-I,.

Expand Down

0 comments on commit 57d998d

Please sign in to comment.