Append _debug to debug builds and add file to .gitignore

This commit is contained in:
Spec-Chum 2016-09-07 23:07:17 +01:00
parent 9ea3402c9a
commit 61ff11a0fa
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 $@)