<commit_before># CC      := gcc -std=gnu99
CC      := clang
CFLAGS  := -g -march=native -Wall -Wno-unused-function -Wno-unused-variable -O3 `sdl-config --cflags` # -flto -B/home/abyrd/svn/binutils/build/gold/ld-new -use-gold-plugin
LIBS    := -lzmq -lczmq -lm -lwebsockets -lprotobuf-c
SOURCES := $(wildcard *.c)
OBJECTS := $(SOURCES:.c=.o)
BINS    := webworkerrrr workerrrr brrrroker client lookup-console hashgrid testerrrr explorerrrr rrrrealtime

#CC=gcc
#CFLAGS=-g -march=native -Wall -std=gnu99 #-O2

all: $(BINS)

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

hashgrid: hashgrid.o geometry.o tdata.o util.o gtfs-realtime.pb-c.o radixtree.o
	$(CC) $(CFLAGS) $^ $(LIBS) -o $@ 

brrrroker: broker.o
	$(CC) $(CFLAGS) $^ $(LIBS) -o $@ 
		
workerrrr: worker.o bitset.o qstring.o router.o tdata.o util.o bitset.o json.o gtfs-realtime.pb-c.o radixtree.o
	$(CC) $(CFLAGS) $^ $(LIBS) -o $@ 

webworkerrrr: worker-web.o parse.o bitset.o qstring.o router.o tdata.o util.o bitset.o json.o gtfs-realtime.pb-c.o radixtree.o
	$(CC) $(CFLAGS) $^ $(LIBS) -o $@ 

testerrrr: tester.o parse.o bitset.o qstring.o router.o tdata.o util.o bitset.o json.o gtfs-realtime.pb-c.o radixtree.o
	$(CC) $(CFLAGS) $^ $(LIBS) -o $@ 

explorerrrr: explorer.o bitset.o qstring.o router.o tdata.o util.o bitset.o json.o gtfs-realtime.pb-c.o radixtree.o
	$(CC) $(CFLAGS) $^ $(LIBS) -o $@ 

rrrrealtime: realtime.o gtfs-realtime.pb-c.o radixtree.o tdata.o util.o gtfs-realtime.pb-c.o radixtree.o
	$(CC) $(CFLAGS) $^ $(LIBS) -o $@

client: client.o bitset.o qstring.o router.o tdata.o util.o json.o gtfs-realtime.pb-c.o radixtree.o
	$(CC) $(CFLAGS) $^ $(LIBS) -o $@ 

lookup-console: tdata.o util.o lookup-console.o trie.o gtfs-realtime.pb-c.o radixtree.o
	$(CC) $(CFLAGS) $^ $(LIBS) -o $@ 

clean:
	rm -f *.o *~ core $(BINS)

<commit_msg>Update the makefile a bit so SDL is not required anymore<commit_after># CC      := gcc -std=gnu99
CC      := clang
CFLAGS  := -g -march=native -Wall -Wno-unused-function -Wno-unused-variable -O3 -D_GNU_SOURCE # -flto -B/home/abyrd/svn/binutils/build/gold/ld-new -use-gold-plugin
LIBS    := -lzmq -lczmq -lm -lwebsockets -lprotobuf-c
SOURCES := $(wildcard *.c)
OBJECTS := $(SOURCES:.c=.o)
BINS    := webworkerrrr workerrrr brrrroker client lookup-console hashgrid testerrrr explorerrrr rrrrealtime rrrrealtime-viz

#CC=gcc
#CFLAGS=-g -march=native -Wall -std=gnu99 #-O2

all: $(BINS)

realtime-viz.o:
	$(CC) realtime-viz.c -c $(CFLAGS) `sdl-config --cflags` -o $@

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

hashgrid: hashgrid.o geometry.o tdata.o util.o gtfs-realtime.pb-c.o radixtree.o
	$(CC) $(CFLAGS) $^ $(LIBS) -o $@ 

brrrroker: broker.o
	$(CC) $(CFLAGS) $^ $(LIBS) -o $@ 
		
workerrrr: worker.o bitset.o qstring.o router.o tdata.o util.o bitset.o json.o gtfs-realtime.pb-c.o radixtree.o
	$(CC) $(CFLAGS) $^ $(LIBS) -o $@ 

webworkerrrr: worker-web.o parse.o bitset.o qstring.o router.o tdata.o util.o bitset.o json.o gtfs-realtime.pb-c.o radixtree.o
	$(CC) $(CFLAGS) $^ $(LIBS) -o $@ 

testerrrr: tester.o parse.o bitset.o qstring.o router.o tdata.o util.o bitset.o json.o gtfs-realtime.pb-c.o radixtree.o
	$(CC) $(CFLAGS) $^ $(LIBS) -o $@ 

explorerrrr: explorer.o bitset.o qstring.o router.o tdata.o util.o bitset.o json.o gtfs-realtime.pb-c.o radixtree.o
	$(CC) $(CFLAGS) $^ $(LIBS) -o $@ 

rrrrealtime: realtime.o gtfs-realtime.pb-c.o radixtree.o tdata.o util.o gtfs-realtime.pb-c.o radixtree.o
	$(CC) $(CFLAGS) $^ $(LIBS) -o $@

rrrrealtime-viz: realtime-viz.o gtfs-realtime.pb-c.o radixtree.o tdata.o util.o gtfs-realtime.pb-c.o radixtree.o
	$(CC) $(CFLAGS) $^ $(LIBS) `sdl-config --libs` -lshp -lGL -o $@

client: client.o bitset.o qstring.o router.o tdata.o util.o json.o gtfs-realtime.pb-c.o radixtree.o
	$(CC) $(CFLAGS) $^ $(LIBS) -o $@ 

lookup-console: tdata.o util.o lookup-console.o trie.o gtfs-realtime.pb-c.o radixtree.o
	$(CC) $(CFLAGS) $^ $(LIBS) -o $@ 

clean:
	rm -f *.o *~ core $(BINS)


{'fraction_non_alphanumeric': 0.19130434782608696, 'fraction_numerical': 0.003069053708439898, 'mean_word_length': 3.350389321468298, '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': '688819', 'n_tokens_mistral': 1854, 'n_tokens_neox': 1749, 'n_words': 384}