<commit_before>PREFIXDIR = /usr/local
BINDIR = /bin
MANDIR = /usr/share/man/man8
PROG = numatop
CC = gcc
LD = gcc
CFLAGS = -g -Wall -O2
LDLIBS = -lncurses -lpthread -lnuma

COMMON_OBJS = cmd.o disp.o lwp.o node.o numatop.o page.o perf.o \
	plat.o proc.o reg.o util.o win.o pfwrapper.o sym.o \
	map.o

INTEL_OBJS = wsm.o snb.o nhm.o

all: $(PROG)

$(PROG): $(COMMON_OBJS) $(INTEL_OBJS)
	$(LD) $(LDLIBS) -o $@ $(COMMON_OBJS) $(INTEL_OBJS)

%.o: ./common/%.c ./common/include/*.h
	$(CC) $(CFLAGS) -o $@ -c $<

%.o: ./intel/%.c ./intel/include/*.h
	$(CC) $(CFLAGS) -o $@ -c $<

install: $(PROG)
	install -m 0755 $(PROG) $(PREFIXDIR)$(BINDIR)/
	gzip -c numatop.8 > numatop.8.gz
	mv -f numatop.8.gz $(MANDIR)/

clean:
	rm -rf *.o $(PROG)<commit_msg>Move the -l libraries to the end of linker command line to solve the build issue by gcc 4.7.2 on ubuntu.<commit_after>PREFIXDIR = /usr/local
BINDIR = /bin
MANDIR = /usr/share/man/man8
PROG = numatop
CC = gcc
LD = gcc
CFLAGS = -g -Wall -O2
LDLIBS = -lncurses -lpthread -lnuma

COMMON_OBJS = cmd.o disp.o lwp.o node.o numatop.o page.o perf.o \
	plat.o proc.o reg.o util.o win.o pfwrapper.o sym.o \
	map.o

INTEL_OBJS = wsm.o snb.o nhm.o

all: $(PROG)

$(PROG): $(COMMON_OBJS) $(INTEL_OBJS)
	$(LD) -o $@ $(COMMON_OBJS) $(INTEL_OBJS) $(LDLIBS)

%.o: ./common/%.c ./common/include/*.h
	$(CC) $(CFLAGS) -o $@ -c $<

%.o: ./intel/%.c ./intel/include/*.h
	$(CC) $(CFLAGS) -o $@ -c $<

install: $(PROG)
	install -m 0755 $(PROG) $(PREFIXDIR)$(BINDIR)/
	gzip -c numatop.8 > numatop.8.gz
	mv -f numatop.8.gz $(MANDIR)/

clean:
	rm -rf *.o $(PROG)
{'fraction_non_alphanumeric': 0.20672162333544705, 'fraction_numerical': 0.013316423589093214, 'mean_word_length': 2.935162094763092, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '7667921', 'n_tokens_mistral': 767, 'n_tokens_neox': 746, 'n_words': 187}