]> git.sur5r.net Git - cc65/commitdiff
Fix `make` failing in parent directories containing spaces
authorBen <bengdahl341@gmail.com>
Tue, 5 Jun 2018 01:27:04 +0000 (21:27 -0400)
committerBen <bengdahl341@gmail.com>
Tue, 5 Jun 2018 01:27:04 +0000 (21:27 -0400)
src/Makefile

index 52465142864e47c02ae08866ab061bf60a49232f..81adb804aeeeccd93892659edacc9308c1ba5fdd 100644 (file)
@@ -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,$@)