Merge pull request #3539 from spec-chum/_debug

Append _debug to debug builds and add file to .gitignore
This commit is contained in:
Twinaphex 2016-09-08 00:12:25 +02:00 committed by GitHub
commit bf68c549cc
2 changed files with 6 additions and 1 deletions

1
.gitignore vendored
View File

@ -11,6 +11,7 @@ config.log
/retroarch
/retroarch.cfg
/retroarch.exe
/retroarch_debug.exe
/config.h
/config.mk
/tools/retroarch-joyconfig

View File

@ -131,7 +131,11 @@ endif
retroarch: $(RARCH_OBJ)
@$(if $(Q), $(shell echo echo LD $@),)
$(Q)$(LINK) -o $@ $(RARCH_OBJ) $(LIBS) $(LDFLAGS) $(LIBRARY_DIRS)
ifeq ($(DEBUG), 1)
$(Q)$(LINK) -o $@_debug $(RARCH_OBJ) $(LIBS) $(LDFLAGS) $(LIBRARY_DIRS)
else
$(Q)$(LINK) -o $@ $(RARCH_OBJ) $(LIBS) $(LDFLAGS) $(LIBRARY_DIRS)
endif
$(OBJDIR)/%.o: %.c config.h config.mk
@mkdir -p $(dir $@)