1
0
mirror of https://github.com/cc65/cc65.git synced 2026-01-26 13:16:42 +00:00
Files
cc65/util/atari/Makefile
2025-06-26 22:36:12 +02:00

45 lines
703 B
Makefile

# ---- Display info during parsing phase ----
SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS)))
ifneq ($(SILENT),s)
$(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS))
endif
ifeq ($(SILENT),s)
QUIET = 1
endif
ifdef QUIET
.SILENT:
endif
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
atari: ataricvt
ataricvt: ataricvt.c
$(if $(QUIET),echo HOST:$@)
$(CC) $(CFLAGS) -o ataricvt ataricvt.c
mostlyclean clean:
$(DEL) ataricvt
install zip: