From 1f245fbc0b25974992ad8c162d1f217ffc7162b2 Mon Sep 17 00:00:00 2001 From: Ben Date: Mon, 4 Jun 2018 21:27:04 -0400 Subject: [PATCH 1/2] Fix `make` failing in parent directories containing spaces --- src/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Makefile b/src/Makefile index 524651428..81adb804a 100644 --- a/src/Makefile +++ b/src/Makefile @@ -64,8 +64,8 @@ endif CFLAGS += -MMD -MP -O3 -I common \ -Wall -Wextra -Wno-char-subscripts $(USER_CFLAGS) \ - -DCA65_INC=$(CA65_INC) -DCC65_INC=$(CC65_INC) -DCL65_TGT=$(CL65_TGT) \ - -DLD65_LIB=$(LD65_LIB) -DLD65_OBJ=$(LD65_OBJ) -DLD65_CFG=$(LD65_CFG) \ + -DCA65_INC="$(CA65_INC)" -DCC65_INC="$(CC65_INC)" -DCL65_TGT="$(CL65_TGT)" \ + -DLD65_LIB="$(LD65_LIB)" -DLD65_OBJ="$(LD65_OBJ)" -DLD65_CFG="$(LD65_CFG)" \ -DGIT_SHA=$(GIT_SHA) LDLIBS += -lm @@ -148,7 +148,7 @@ endef # PROG_template ../wrk/%.o: %.c @echo $< - @$(CC) -c $(CFLAGS) -o $@ $< + $(CC) -c $(CFLAGS) -o $@ $< ../bin: @$(call MKDIR,$@) From 4fd17161ebe2f7dd64b1acc3fca36e29cce14dbb Mon Sep 17 00:00:00 2001 From: existensialMemory Date: Mon, 4 Jun 2018 22:17:25 -0400 Subject: [PATCH 2/2] Update Makefile --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 81adb804a..c1f11ff58 100644 --- a/src/Makefile +++ b/src/Makefile @@ -148,7 +148,7 @@ endef # PROG_template ../wrk/%.o: %.c @echo $< - $(CC) -c $(CFLAGS) -o $@ $< + @$(CC) -c $(CFLAGS) -o $@ $< ../bin: @$(call MKDIR,$@)