Files
cc65/util/gamate/Makefile
2025-06-04 03:03:18 +00:00

41 lines
745 B
Makefile

# ---- Display info during parsing phase ----
$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~)
$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))))
ifeq ($(MAKECMDGOALS),)
$(info ~~~ Invoked target: (default))
else
$(info ~~~ Invoked target: $(MAKECMDGOALS))
endif
$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~)
CC = $(CROSS_COMPILE)gcc
ifdef CROSS_COMPILE
$(info CC: $(CC))
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)
.PHONY: mostlyclean clean
gamate: gamate-fixcart
gamate-fixcart: gamate-fixcart.c
$(CC) $(CFLAGS) -o gamate-fixcart gamate-fixcart.c
mostlyclean clean:
$(DEL) gamate-fixcart
install zip: