<commit_before>CC=gcc
CFLAGS=-Wall -g -ggdb3 -I../include -iquote . -iquote lib `pkg-config glib-2.0 --cflags`
DEPS=../include/rubinius.h
LIBS=`pkg-config glib-2.0 --libs` -lncurses libs/libtommath/libtommath.a libs/libedit/libedit.a libs/onig/.libs/libonig.a
OBJS=$(patsubst %.c,%.o,$(shell ls *.c))
RBLIB=lib/librubinius.a

%.o: %.c $(DEPS)
	$(CC) -c -o $@ $< $(CFLAGS)

libs/libtommath/libtommath.a:
	cd libs/libtommath; $(MAKE)

libs/libedit/libedit.a:
	cd libs/libedit; ./configure; $(MAKE) libedit.a

libs/onig/.libs/libonig.a:
	cd libs/onig; ./configure; $(MAKE)

librubinius.a: libs/libtommath/libtommath.a libs/libedit/libedit.a libs/onig/.libs/libonig.a
	cd lib; $(MAKE) librubinius.a

.PHONY: librubinius.a

rubinius: librubinius.a main.o
	$(CC) -o rubinius main.o lib/librubinius.a $(LIBS)

test/test_state: test/test_state.c librubinius.a
	$(CC) -c -o test/test_state.o test/test_state.c $(CFLAGS)
	$(CC) $(LIBS) -o test/test_state test/test_state.o $(RBLIB)

test/test_instructions: test/test_instructions.c librubinius.a 
	$(CC) -c -o test/test_instructions.o test/test_instructions.c $(CFLAGS)
	$(CC) $(LIBS) -o test/test_instructions test/test_instructions.o $(RBLIB)

test: test/test_state test/test_instructions
	./test/test_state
	./test/test_instructions

clean:
	rm -f *.o *.gen rubinius
	cd lib; $(MAKE) clean
	cd libs/libtommath; $(MAKE) clean
	cd libs/libedit; $(MAKE) clean || exit 0
	cd libs/onig; $(MAKE) clean

.PHONY: test<commit_msg>Adding svn:ignores for all generated files. Oniguruma doesn't have a 'clean' target.<commit_after>CC=gcc
CFLAGS=-Wall -g -ggdb3 -I../include -iquote . -iquote lib `pkg-config glib-2.0 --cflags`
DEPS=../include/rubinius.h
LIBS=`pkg-config glib-2.0 --libs` -lncurses libs/libtommath/libtommath.a libs/libedit/libedit.a libs/onig/.libs/libonig.a
OBJS=$(patsubst %.c,%.o,$(shell ls *.c))
RBLIB=lib/librubinius.a

%.o: %.c $(DEPS)
	$(CC) -c -o $@ $< $(CFLAGS)

libs/libtommath/libtommath.a:
	cd libs/libtommath; $(MAKE)

libs/libedit/libedit.a:
	cd libs/libedit; ./configure; $(MAKE) libedit.a

libs/onig/.libs/libonig.a:
	cd libs/onig; ./configure; $(MAKE)

librubinius.a: libs/libtommath/libtommath.a libs/libedit/libedit.a libs/onig/.libs/libonig.a
	cd lib; $(MAKE) librubinius.a

.PHONY: librubinius.a

rubinius: librubinius.a main.o
	$(CC) -o rubinius main.o lib/librubinius.a $(LIBS)

test/test_state: test/test_state.c librubinius.a
	$(CC) -c -o test/test_state.o test/test_state.c $(CFLAGS)
	$(CC) $(LIBS) -o test/test_state test/test_state.o $(RBLIB)

test/test_instructions: test/test_instructions.c librubinius.a 
	$(CC) -c -o test/test_instructions.o test/test_instructions.c $(CFLAGS)
	$(CC) $(LIBS) -o test/test_instructions test/test_instructions.o $(RBLIB)

test: test/test_state test/test_instructions
	./test/test_state
	./test/test_instructions

clean:
	rm -f *.o *.gen rubinius
	cd lib; $(MAKE) clean
	cd libs/libtommath; $(MAKE) clean
	cd libs/libedit; $(MAKE) clean || exit 0
#	cd libs/onig; $(MAKE) clean

.PHONY: test
{'fraction_non_alphanumeric': 0.17166666666666666, 'fraction_numerical': 0.004, 'mean_word_length': 4.0864406779661016, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5584227', 'n_tokens_mistral': 1364, 'n_tokens_neox': 1291, 'n_words': 262}