1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-22 12:30:41 +00:00

fixes so "make clean" will work without failing on cmd.exe

This commit is contained in:
Bob Andrews 2022-11-18 16:28:25 +01:00
parent 1ce044c2b4
commit 0408d71cc5
3 changed files with 33 additions and 3 deletions

View File

@ -5,6 +5,16 @@ ifdef CROSS_COMPILE
$(info CC: $(CC)) $(info CC: $(CC))
endif endif
ifneq ($(shell echo),)
CMD_EXE = 1
endif
ifdef CMD_EXE
DEL = -del /f
else
DEL = $(RM)
endif
CFLAGS += -O3 -Wall -Wextra -Wno-char-subscripts $(USER_CFLAGS) CFLAGS += -O3 -Wall -Wextra -Wno-char-subscripts $(USER_CFLAGS)
.PHONY: mostlyclean clean .PHONY: mostlyclean clean
@ -15,6 +25,6 @@ ataricvt: ataricvt.c
$(CC) $(CFLAGS) -o ataricvt ataricvt.c $(CC) $(CFLAGS) -o ataricvt ataricvt.c
mostlyclean clean: mostlyclean clean:
$(RM) ataricvt $(DEL) ataricvt
install zip: install zip:

View File

@ -5,6 +5,16 @@ ifdef CROSS_COMPILE
$(info CC: $(CC)) $(info CC: $(CC))
endif endif
ifneq ($(shell echo),)
CMD_EXE = 1
endif
ifdef CMD_EXE
DEL = -del /f
else
DEL = $(RM)
endif
CFLAGS += -O3 -Wall -Wextra -Wno-char-subscripts $(USER_CFLAGS) CFLAGS += -O3 -Wall -Wextra -Wno-char-subscripts $(USER_CFLAGS)
.PHONY: mostlyclean clean .PHONY: mostlyclean clean
@ -15,6 +25,6 @@ gamate-fixcart: gamate-fixcart.c
$(CC) $(CFLAGS) -o gamate-fixcart gamate-fixcart.c $(CC) $(CFLAGS) -o gamate-fixcart gamate-fixcart.c
mostlyclean clean: mostlyclean clean:
$(RM) gamate-fixcart $(DEL) gamate-fixcart
install zip: install zip:

View File

@ -5,6 +5,16 @@ ifdef CROSS_COMPILE
$(info CC: $(CC)) $(info CC: $(CC))
endif endif
ifneq ($(shell echo),)
CMD_EXE = 1
endif
ifdef CMD_EXE
DEL = -del /f
else
DEL = $(RM)
endif
CFLAGS += -O3 -Wall -Wextra -Wno-char-subscripts $(USER_CFLAGS) CFLAGS += -O3 -Wall -Wextra -Wno-char-subscripts $(USER_CFLAGS)
.PHONY: mostlyclean clean .PHONY: mostlyclean clean
@ -22,6 +32,6 @@ deflater: deflater.c
$(CC) $(CFLAGS) -o deflater deflater.c -lz $(CC) $(CFLAGS) -o deflater deflater.c -lz
mostlyclean clean: mostlyclean clean:
$(RM) deflater $(DEL) deflater
install zip: install zip: