<commit_before>TOPDIR=../../
include $(TOPDIR)/ld.so-1/Rules.mak

DIRS = $(TARGET_ARCH)

CFLAGS += -DNO_UNDERSCORE -DVERBOSE_DLINKER
CFLAGS += -DUSE_CACHE -fPIC -D__PIC__ #-funroll-loops

CSRC= boot1.c hash.c readelflib1.c vsprintf.c
COBJS=$(patsubst %.c,%.o, $(CSRC))
OBJS=$(COBJS)

ELF_LDFLAGS=--shared # using GNU ld

all: lib

lib:: $(OBJS)
	$(LD) -e _dl_boot $(ELF_LDFLAGS) -o $(DLINKER).$(LDSO_VMAJOR) \
	  -soname $(DLINKER).$(LDSO_VMAJOR) *.o

$(COBJS): %.o : %.c
	$(CC) -I. -I./$(TARGET_ARCH) -I../libdl $(CFLAGS) -c $< -o $@
	$(STRIPTOOL) -x -R .note -R .comment $*.o

realclean::
	$(RM) -f .depend $(DLINKER) core *.o *.a *.s *.i tmp_make foo *~

clean::
	$(RM) -f $(DLINKER)* core *.o *.a *.s *.i tmp_make foo *~
<commit_msg>oops again!  I forgot to pull in the arch specific stuff, and forgot to update those makefiles.  -Erik<commit_after>TOPDIR=../../
include $(TOPDIR)/ld.so-1/Rules.mak

CFLAGS += -DNO_UNDERSCORE -DVERBOSE_DLINKER
CFLAGS += -DUSE_CACHE -fPIC -D__PIC__ #-funroll-loops

CSRC= boot1.c hash.c readelflib1.c vsprintf.c
COBJS=$(patsubst %.c,%.o, $(CSRC))
OBJS=$(COBJS)

ELF_LDFLAGS=--shared # using GNU ld

all: sysdeps lib

sysdeps:
	make -C $(TARGET_ARCH)

lib:: $(OBJS)
	$(LD) -e _dl_boot $(ELF_LDFLAGS) -o $(DLINKER).$(LDSO_VMAJOR) \
	  -soname $(DLINKER).$(LDSO_VMAJOR) *.o

$(COBJS): %.o : %.c
	$(CC) -I. -I./$(TARGET_ARCH) -I../libdl $(CFLAGS) -c $< -o $@
	$(STRIPTOOL) -x -R .note -R .comment $*.o

realclean::
	$(RM) -f .depend $(DLINKER) core *.o *.a *.s *.i tmp_make foo *~

clean::
	$(RM) -f $(DLINKER)* core *.o *.a *.s *.i tmp_make foo *~

.PHONY: sysdeps
{'fraction_non_alphanumeric': 0.2246558197747184, 'fraction_numerical': 0.0037546933667083854, 'mean_word_length': 3.3569482288828336, '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': '1310782', 'n_tokens_mistral': 765, 'n_tokens_neox': 742, 'n_words': 180}