diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2012-05-23 16:59:22 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2012-05-23 16:59:22 -0700 |
| commit | e3ae5bb9d261e174a82e318f784a8ab2aa4036ec (patch) | |
| tree | b74473538845af72be3a3104ad0d52c1b6df9324 /src | |
| parent | 265ff670c8545a6ebaba7c13d946fc3c70eef36f (diff) | |
| parent | 105c11b7f6570292ad0fa15c8346c038f9d2f561 (diff) | |
| download | mruby-e3ae5bb9d261e174a82e318f784a8ab2aa4036ec.tar.gz mruby-e3ae5bb9d261e174a82e318f784a8ab2aa4036ec.zip | |
Merge pull request #188 from thecodeshop/makefile-mods
Makefile mods
Diffstat (limited to 'src')
| -rw-r--r-- | src/Makefile | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/Makefile b/src/Makefile index 385e447e3..61012ea68 100644 --- a/src/Makefile +++ b/src/Makefile @@ -19,12 +19,6 @@ OBJS := $(OBJ1) $(OBJ2) $(OBJ3) # libraries, includes INCLUDES = -I$(BASEDIR) -I$(BASEDIR)/../include -# compiler, linker (gcc) -CC = gcc -LL = gcc -AR = ar -YACC = bison - DEBUG_MODE = 1 ifeq ($(DEBUG_MODE),1) CFLAGS = -g -O3 @@ -33,6 +27,7 @@ CFLAGS = -O3 endif ALL_CFLAGS = -Wall -Werror-implicit-function-declaration $(CFLAGS) + ############################## # generic build targets, rules @@ -64,6 +59,6 @@ $(LDEF) : $(KWD) .PHONY : clean #cleandep clean : @echo "make: removing targets, objects and depend files of `pwd`" - -rm -f $(TARGET) $(OBJS) $(OBJY) $(YC) - -rm -f $(OBJS:.o=.d) $(OBJY:.o=.d) - -rm -f $(patsubst %.c,%.o,$(EXCEPT1)) $(patsubst %.c,%.d,$(EXCEPT1)) + -$(RM_F) $(TARGET) $(OBJS) $(OBJY) $(YC) + -$(RM_F) $(OBJS:.o=.d) $(OBJY:.o=.d) + -$(RM_F) $(patsubst %.c,%.o,$(EXCEPT1)) $(patsubst %.c,%.d,$(EXCEPT1)) |
