<commit_before>include ../../../support/include.mk

CFLAGS += -I$(ERL_C_INCLUDE_DIR) -I.

UNIXDOM_DRV_SO = ../priv/unixdom_drv.so

SHLIB_OBJS = unixdom_drv.o my-unixdom.o erl_driver_tk.o

all: $(UNIXDOM_DRV_SO)

$(UNIXDOM_DRV_SO): $(SHLIB_OBJS)
	ld -G -o $@ $^
	# Symlink is only to help when using "jerl" script.
	-ln -s $(UNIXDOM_DRV_SO) ../ebin

unixdom_drv.o: unixdom_drv.c
	$(CC) $(CFLAGS) -o $@ -c -fpic $(ERL_INCLUDE) $<

my-unixdom.o: my-unixdom.c
	$(CC) $(CFLAGS) -o $@ -c -fpic $(ERL_INCLUDE) $<

erl_driver_tk.o: erl_driver_tk.c
	$(CC) $(CFLAGS) -o $@ -c -fpic $(ERL_INCLUDE) $<
<commit_msg>Fix Makefle to use the configured shared library link command<commit_after>include ../../../support/include.mk

CFLAGS += -I$(ERL_C_INCLUDE_DIR) -I.

UNIXDOM_DRV_SO = ../priv/unixdom_drv.so

SHLIB_OBJS = unixdom_drv.o my-unixdom.o erl_driver_tk.o

all: $(UNIXDOM_DRV_SO)

$(UNIXDOM_DRV_SO): $(SHLIB_OBJS)
	$(LD_SHARED) -o $@ $^
	# Symlink is only to help when using "jerl" script.
	-ln -s $(UNIXDOM_DRV_SO) ../ebin

unixdom_drv.o: unixdom_drv.c
	$(CC) $(CFLAGS) -o $@ -c -fpic $(ERL_INCLUDE) $<

my-unixdom.o: my-unixdom.c
	$(CC) $(CFLAGS) -o $@ -c -fpic $(ERL_INCLUDE) $<

erl_driver_tk.o: erl_driver_tk.c
	$(CC) $(CFLAGS) -o $@ -c -fpic $(ERL_INCLUDE) $<

{'fraction_non_alphanumeric': 0.1938046068308181, 'fraction_numerical': 0.0, 'mean_word_length': 3.736842105263158, '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': '1722283', 'n_tokens_mistral': 628, 'n_tokens_neox': 586, 'n_words': 118}