DEBUG = -g -gdwarf-4 AFLAGS += --fatal-warnings CFLAGS += -falign-functions=4 -ffunction-sections -fdata-sections -fshort-enums CFLAGS += -Wall -Werror -Wfatal-errors -Wno-error=dangling-else CFLAGS += -std=c2x DEPFLAGS = -MMD -MP CC = $(TARGET)gcc OBJS = \ decode_execute.o \ decode_print.o \ exception.o \ execute.o \ impl.o \ main.o \ ram.o all: main %.o: %.c $(CC) $(CARCH) $(CFLAGS) $(OPT) $(DEBUG) $(DEPFLAGS) -MF ${<}.d -c $< -o $@ main: $(OBJS) $(CC) $^ -o $@ -include $(shell find -type f -name '*.d')