From: Ben Date: Tue, 5 Jun 2018 01:27:04 +0000 (-0400) Subject: Fix `make` failing in parent directories containing spaces X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1f245fbc0b25974992ad8c162d1f217ffc7162b2;p=cc65 Fix `make` failing in parent directories containing spaces --- 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,$@)