summaryrefslogtreecommitdiffhomepage
path: root/tools/mrbc
diff options
context:
space:
mode:
authorJon <[email protected]>2012-05-23 12:01:08 -0400
committerJon <[email protected]>2012-05-23 13:19:40 -0400
commit105c11b7f6570292ad0fa15c8346c038f9d2f561 (patch)
treeb74473538845af72be3a3104ad0d52c1b6df9324 /tools/mrbc
parent6f00683e8729ad2a834de80ef312711d56a23d67 (diff)
downloadmruby-105c11b7f6570292ad0fa15c8346c038f9d2f561.tar.gz
mruby-105c11b7f6570292ad0fa15c8346c038f9d2f561.zip
Clean and DRY up the basic Makefiles
Diffstat (limited to 'tools/mrbc')
-rw-r--r--tools/mrbc/Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/mrbc/Makefile b/tools/mrbc/Makefile
index 9ecda4a59..99f5830e6 100644
--- a/tools/mrbc/Makefile
+++ b/tools/mrbc/Makefile
@@ -23,9 +23,6 @@ LIBS = -lm
INCLUDES = -I$(BASEDIR) -I$(BASEDIR)/../include
# compiler, linker (gcc)
-CC = gcc
-LL = gcc
-YACC = bison
DEBUG_MODE = 1
ifeq ($(DEBUG_MODE),1)
CFLAGS = -g -O3
@@ -39,6 +36,7 @@ else
MAKE_FLAGS = CC='$(CC)' LL='$(LL)' ALL_CFLAGS='$(ALL_CFLAGS)'
endif
+
##############################
# generic build targets, rules
@@ -63,5 +61,5 @@ $(LIBR) :
.PHONY : clean
clean :
@echo "make: removing targets, objects and depend files of `pwd`"
- -rm -f $(EXE) $(OBJS)
- -rm -f $(OBJS:.o=.d)
+ -$(RM_F) $(EXE) $(OBJS)
+ -$(RM_F) $(OBJS:.o=.d)