<commit_before>#
# Makefile for DGD, Dworkin's Game Driver
#
DEFINES=-DMINIX_68K
DEBUG=
CCFLAGS=-O $(DEFINES) $(DEBUG)
CFLAGS=	-I. -Ikfun -Ilex -Icomp -Ied $(CCFLAGS)
LDFLAGS=-m200000
LIBS=
CC=	cc
LD=	cc
MAKE=	make
BIN=	../bin

OBJ=	host.o alloc.o error.o hash.o path.o swap.o str.o array.o object.o \
	data.o comm.o interpret.o dgd.o
EDOBJ=	host.o alloc.o error.o
LEXOBJ=	host.o alloc.o hash.o
COMPOBJ=host.o alloc.o error.o hash.o path.o swap.o str.o array.o object.o \
	data.o comm.o

a.out:	$(OBJ)
	cd comp; $(MAKE) 'MAKE=$(MAKE)' 'CC=$(CC)' 'CCFLAGS=$(CCFLAGS)' dgd
	cd lex; $(MAKE) 'MAKE=$(MAKE)' 'CC=$(CC)' 'CCFLAGS=$(CCFLAGS)' dgd
	cd kfun; $(MAKE) 'MAKE=$(MAKE)' 'CC=$(CC)' 'CCFLAGS=$(CCFLAGS)' dgd
	$(LD) $(LDFLAGS) $(OBJ) `cat comp/dgd` `cat lex/dgd` `cat kfun/dgd` \
	$(LIBS)

$(BIN)/driver: a.out
	@mv -f $(BIN)/driver $(BIN)/driver.old
	cp a.out $(BIN)/driver

$(BIN)/precomp: comp/a.out
	cp comp/a.out $(BIN)/precomp

all:	$(BIN)/driver $(BIN)/precomp

ed.sub:	$(EDOBJ)
	@for i in $(EDOBJ); do echo ../$$i; done > ed.sub

lex.sub: $(LEXOBJ)
	@for i in $(LEXOBJ); do echo ../$$i; done > lex.sub

comp.sub: $(COMPOBJ)
	@for i in $(COMPOBJ); do echo ../$$i; done > comp.sub

comp/a.out:
	cd comp; $(MAKE) 'MAKE=$(MAKE)' 'CC=$(CC)' 'CCFLAGS=$(CCFLAGS)' a.out

clean:
	rm -f a.out $(OBJ) ed.sub lex.sub comp.sub
	cd ed; $(MAKE) clean
	cd comp; $(MAKE) clean
	cd lex; $(MAKE) clean
	cd kfun; $(MAKE) clean<commit_msg>1.0.a1<commit_after>#
# Makefile for DGD, Dworkin's Game Driver
#
DEFINES=-DSUN -DRUSAGE
DEBUG=	-g
CCFLAGS=$(DEFINES) $(DEBUG)
CFLAGS=	-I. -Icomp -Ilex -Ied -Ikfun $(CCFLAGS)
LDFLAGS=
LIBS=
CC=	gcc
LD=	$(CC)
MAKE=	make
BIN=	../bin

OBJ=	host.o alloc.o error.o hash.o path.o swap.o str.o array.o object.o \
	data.o comm.o interpret.o dgd.o
EDOBJ=	host.o alloc.o error.o
LEXOBJ=	host.o alloc.o hash.o
COMPOBJ=host.o alloc.o error.o hash.o path.o swap.o str.o array.o object.o \
	data.o comm.o

a.out:	$(OBJ)
	cd comp; $(MAKE) 'MAKE=$(MAKE)' 'CC=$(CC)' 'CCFLAGS=$(CCFLAGS)' dgd
	cd lex; $(MAKE) 'MAKE=$(MAKE)' 'CC=$(CC)' 'CCFLAGS=$(CCFLAGS)' dgd
	cd ed; $(MAKE) 'MAKE=$(MAKE)' 'CC=$(CC)' 'CCFLAGS=$(CCFLAGS)' dgd
	cd kfun; $(MAKE) 'MAKE=$(MAKE)' 'CC=$(CC)' 'CCFLAGS=$(CCFLAGS)' dgd
	$(LD) $(LDFLAGS) $(OBJ) `cat comp/dgd` `cat lex/dgd` `cat ed/dgd` \
	`cat kfun/dgd` $(LIBS)

$(BIN)/driver: a.out
	@mv -f $(BIN)/driver $(BIN)/driver.old
	cp a.out $(BIN)/driver

$(BIN)/precomp: comp/a.out
	cp comp/a.out $(BIN)/precomp

all:	$(BIN)/driver $(BIN)/precomp

comp.sub: $(COMPOBJ)
	@for i in $(COMPOBJ); do echo ../$$i; done > comp.sub

lex.sub: $(LEXOBJ)
	@for i in $(LEXOBJ); do echo ../$$i; done > lex.sub

ed.sub:	$(EDOBJ)
	@for i in $(EDOBJ); do echo ../$$i; done > ed.sub

comp/a.out:
	cd comp; $(MAKE) 'MAKE=$(MAKE)' 'CC=$(CC)' 'CCFLAGS=$(CCFLAGS)' a.out

clean:
	rm -f a.out $(OBJ) comp.sub lex.sub ed.sub
	cd comp; $(MAKE) clean
	cd lex; $(MAKE) clean
	cd ed; $(MAKE) clean
	cd kfun; $(MAKE) clean
{'fraction_non_alphanumeric': 0.2270861833105335, 'fraction_numerical': 0.003761969904240766, 'mean_word_length': 3.740680713128039, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '1143162', 'n_tokens_mistral': 1383, 'n_tokens_neox': 1295, 'n_words': 363}