<commit_before>ROM_CONFIG = nrom.cfg
CRT_OBJ = crt0.o
GAME_OBJ = game.o
RUNTIME_LIB = runtime.lib

EXECUTABLE = splatood.nes

ASM = ca65
CC = cc65
LD = ld65


all: $(EXECUTABLE) ${CRT_OBJ}

crt0.o: *.s

%.s: %.c *.h
	$(CC) -Oi $< --add-source

%.o: %.s
	$(ASM) $<

$(EXECUTABLE): $(GAME_OBJ) $(ROM_CONFIG) $(CRT_OBJ) $(RUNTIME_LIB)
	$(LD) -C $(ROM_CONFIG) -o $(EXECUTABLE) $(CRT_OBJ) $(GAME_OBJ) $(RUNTIME_LIB)

clean:
	rm -f game.s *.o *.nes


.SECONDARY: # suppress removal of intermediate build files
%.o: %.c # suppress built in rule to build .o from .c<commit_msg>Rebuild crt0 on changes to tileset<commit_after>ROM_CONFIG = nrom.cfg
CRT_OBJ = crt0.o
GAME_OBJ = game.o
RUNTIME_LIB = runtime.lib

EXECUTABLE = splatood.nes

ASM = ca65
CC = cc65
LD = ld65


all: $(EXECUTABLE) ${CRT_OBJ}

crt0.o: *.s *.chr

%.s: %.c *.h
	$(CC) -Oi $< --add-source

%.o: %.s
	$(ASM) $<

$(EXECUTABLE): $(GAME_OBJ) $(ROM_CONFIG) $(CRT_OBJ) $(RUNTIME_LIB)
	$(LD) -C $(ROM_CONFIG) -o $(EXECUTABLE) $(CRT_OBJ) $(GAME_OBJ) $(RUNTIME_LIB)

clean:
	rm -f game.s *.o *.nes


.SECONDARY: # suppress removal of intermediate build files
%.o: %.c # suppress built in rule to build .o from .c
{'fraction_non_alphanumeric': 0.1854077253218884, 'fraction_numerical': 0.014592274678111588, 'mean_word_length': 3.7016129032258065, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6447509', 'n_tokens_mistral': 549, 'n_tokens_neox': 499, 'n_words': 139}