<commit_before>
HERE = $+$(%cwd)$-

OBJS =     cmm.obj

CC       = wcc
CFLAGS   = -zq -ml -s -bt=dos -oilrtm -fr=nul -wx -0 -fo=.obj -q -zu -zdf -zff -zgf -zc -fpi87 -i../.. -dTARGET_MSDOS=16 -dMSDOS=1

all: final.exe test.exe

header.asm: final.def
	./clsggen.pl --def $[@ --asm $@ --enum final.h

header.obj: header.asm
	nasm -o $@ -f obj $(NASMFLAGS) $[@

.C.OBJ:
	$(CC) $(CFLAGS) $[@

../../hw/dos/dos86l/dos.lib:
	@cd ../../hw/dos
	@./make.sh build lib
	@cd $(HERE)

test.exe: test.obj ../../hw/dos/dos86l/dos.lib
	%write tmp.cmd option quiet system dos
	%write tmp.cmd library ../../hw/dos/dos86l/dos.lib
	%write tmp.cmd file test.obj
	%write tmp.cmd name test.exe
	%write tmp.cmd option map=test.map
	@wlink @tmp.cmd

cmm.obj: cmm.c
	$(CC) $(CFLAGS) -ms -zl $[@

final.exe: cmm.obj header.obj
	%write tmp.cmd option quiet system dos
	%write tmp.cmd file header.obj
	%write tmp.cmd file cmm.obj
	%write tmp.cmd name final.exe
	%write tmp.cmd option map=final.map<commit_msg>clsggen.pl changed locations, update makefile<commit_after>
HERE = $+$(%cwd)$-

OBJS =     cmm.obj

CC       = wcc
CFLAGS   = -zq -ml -s -bt=dos -oilrtm -fr=nul -wx -0 -fo=.obj -q -zu -zdf -zff -zgf -zc -fpi87 -i../.. -dTARGET_MSDOS=16 -dMSDOS=1

all: final.exe test.exe

header.asm: final.def
	../../hw/dos/clsggen.pl --def $[@ --asm $@ --enum final.h

header.obj: header.asm
	nasm -o $@ -f obj $(NASMFLAGS) $[@

.C.OBJ:
	$(CC) $(CFLAGS) $[@

../../hw/dos/dos86l/dos.lib:
	@cd ../../hw/dos
	@./make.sh build lib
	@cd $(HERE)

test.exe: test.obj ../../hw/dos/dos86l/dos.lib
	%write tmp.cmd option quiet system dos
	%write tmp.cmd library ../../hw/dos/dos86l/dos.lib
	%write tmp.cmd file test.obj
	%write tmp.cmd name test.exe
	%write tmp.cmd option map=test.map
	@wlink @tmp.cmd

cmm.obj: cmm.c
	$(CC) $(CFLAGS) -ms -zl $[@

final.exe: cmm.obj header.obj
	%write tmp.cmd option quiet system dos
	%write tmp.cmd file header.obj
	%write tmp.cmd file cmm.obj
	%write tmp.cmd name final.exe
	%write tmp.cmd option map=final.map
{'fraction_non_alphanumeric': 0.19570644033949075, 'fraction_numerical': 0.011982026959560658, 'mean_word_length': 2.5531914893617023, 'pattern_counts': {'":': 0, '<': 3, '<?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': '623531', 'n_tokens_mistral': 928, 'n_tokens_neox': 862, 'n_words': 229}