<commit_before>CC	= vc +warpos
AS68K	= phxass quiet noexe
ASPPC	= pasm -F2 -ms -mo
COPTS	= -amiga-align -DBIGENDIAN -dontwarn=129


all: wosdb

OBJECTS = stdui.o debugger.o asmdebugger.o ppc_disasm.o exchandler.o \
          newRunPPC.o


wosdb: $(OBJECTS)
	$(CC) -o wosdb $(OBJECTS) -lm -lamiga


stdui.o: stdui.c debugger.h ppc_disasm.h
	$(CC) $(COPTS) -c stdui.c

debugger.o: debugger.c debugger.h ppc_disasm.h
	$(CC) $(COPTS) -c debugger.c

asmdebugger.o: asmdebugger.s warpos_lvo.i
	$(ASPPC) asmdebugger.s

ppc_disasm.o: ppc_disasm.c ppc_disasm.h
	$(CC) $(COPTS) -c ppc_disasm.c

exchandler.o: exchandler.s warpos_lvo.i
	$(ASPPC) exchandler.s

newRunPPC.o: newRunPPC.asm
	$(AS68K) newRunPPC.asm
<commit_msg>Make wosdb buildable in our environment.<commit_after>CC	= vc +sonnet
LD	= vlink
AS68K	= vasmm68k_mot -Fhunk
ASPPC	= vasmppc_std -Fhunk
COPTS	= -amiga-align -DBIGENDIAN -dontwarn=129

LDFLAGS = -bamigaehf -x -Rshort -Bstatic -Cvbcc -nostdlib
LDHUNKATTR = -hunkattr .text=0x2005 -hunkattr newRunPPC=0x2005 -hunkattr .tocd=0x2005 -hunkattr .rodata=0x2005 -hunkattr .data=0x2005 -hunkattr .ctors=0x2005 -hunkattr .dtors=0x2005 -hunkattr .bss=0x2005
VBCC_WARPOS_TARGET = /opt/amiga-cross/vbcc/ppc-warpos # XXX: inherit this from main Makefile, base on vlibwos: on AmigaOS, environment variable on Unix

all: wosdb

OBJECTS = stdui.o debugger.o asmdebugger.o ppc_disasm.o exchandler.o \
          newRunPPC.o


wosdb: $(OBJECTS)
#	$(CC) -v -o wosdb $(OBJECTS) -lm -lamiga
	$(LD) -t $(LDFLAGS) $(VBCC_WARPOS_TARGET)/lib/sonnet.o $(OBJECTS) -lm -lamiga -s -Rshort -L$(VBCC_WARPOS_TARGET)/lib -lvc $(VBCC_WARPOS_TARGET)/lib/x.o  $(LDHUNKATTR) -o $@ 
# XXX: we can avoid calling ld manually here by configuring vbcc correctly?


stdui.o: stdui.c debugger.h ppc_disasm.h
	$(CC) $(COPTS) -c -o $@ $<  

debugger.o: debugger.c debugger.h ppc_disasm.h
	$(CC) $(COPTS) -c -o $@ $<  

asmdebugger.o: asmdebugger.s warpos_lvo.i
	$(ASPPC) -o $@ $<  

ppc_disasm.o: ppc_disasm.c ppc_disasm.h
	$(CC) $(COPTS) -c -o $@ $<  

exchandler.o: exchandler.s warpos_lvo.i
	$(ASPPC) -o $@ $<  

newRunPPC.o: newRunPPC.asm
	$(AS68K)  -o $@ $<  

{'fraction_non_alphanumeric': 0.14520676691729323, 'fraction_numerical': 0.026785714285714284, 'mean_word_length': 3.720620842572062, 'pattern_counts': {'":': 0, '<': 9, '<?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': '712724', 'n_tokens_mistral': 1071, 'n_tokens_neox': 1007, 'n_words': 212}