<commit_before># libseuser and libseuser-tcl

LIB-OBJ		= fsdata.o

TARGET = libsefs.so
SONAME = $(TARGET).1
LIBSO  = $(TARGET).$(shell cat VERSION)

CFLAGS		+= -I. -I../libapol

all: libsefs libsefsso

libsefs: libsefs.a

libsefsso: $(LIB-OBJ)
	$(CC) $(LDFLAGS) -shared -o $(LIBSO) $(LIB-OBJ) -Wl,-soname,$(SONAME) 

libsefs.a:  $(LIB-OBJ) 
	 ar cr $@ $(LIB-OBJ) 

install-libsefs-shared: libsefsso
	install -m 755 $(LIBSO) $(SHARED_LIB_INSTALL_DIR)
	cd $(SHARED_LIB_INSTALL_DIR) && ln -sf $(LIBSO) $(SONAME) && ln -sf $(SONAME) $(TARGET)

install-libsefs-static: libsefs
	install -m 644 libsefs.a $(STATIC_LIB_INSTALL_DIR)
	install -m 755 -d $(SETOOLS_INCLUDE)/libsefs
	install -m 644 *.h $(SETOOLS_INCLUDE)/libsefs
	
install: install-libsefs-shared install-libsefs-static

install-policy:
	chcon system_u:object_r:shlib_t $(SHARED_LIB_INSTALL_DIR)/$(LIBSO)
	
%.o:  %.c 
	$(CC) $(CFLAGS) -c $<

clean:
	rm -f *.o core *~

bare: clean
	rm -f *.o core *~ libsefs.a $(LIBSO)
<commit_msg>clean SONAME too<commit_after># libseuser and libseuser-tcl

LIB-OBJ		= fsdata.o

TARGET = libsefs.so
SONAME = $(TARGET).1
LIBSO  = $(TARGET).$(shell cat VERSION)

CFLAGS		+= -I. -I../libapol

all: libsefs libsefsso

libsefs: libsefs.a

libsefsso: $(LIB-OBJ)
	$(CC) $(LDFLAGS) -shared -o $(LIBSO) $(LIB-OBJ) -Wl,-soname,$(SONAME) 

libsefs.a:  $(LIB-OBJ) 
	 ar cr $@ $(LIB-OBJ) 

install-libsefs-shared: libsefsso
	install -m 755 $(LIBSO) $(SHARED_LIB_INSTALL_DIR)
	cd $(SHARED_LIB_INSTALL_DIR) && ln -sf $(LIBSO) $(SONAME) && ln -sf $(SONAME) $(TARGET)

install-libsefs-static: libsefs
	install -m 644 libsefs.a $(STATIC_LIB_INSTALL_DIR)
	install -m 755 -d $(SETOOLS_INCLUDE)/libsefs
	install -m 644 *.h $(SETOOLS_INCLUDE)/libsefs
	
install: install-libsefs-shared install-libsefs-static

install-policy:
	chcon system_u:object_r:shlib_t $(SHARED_LIB_INSTALL_DIR)/$(LIBSO)
	
%.o:  %.c 
	$(CC) $(CFLAGS) -c $<

clean:
	rm -f *.o core *~

bare: clean
	rm -f *.o core *~ libsefs.a $(LIBSO) $(SONAME)

{'fraction_non_alphanumeric': 0.17397881996974282, 'fraction_numerical': 0.013111447302067574, 'mean_word_length': 4.061224489795919, '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': '3550903', 'n_tokens_mistral': 939, 'n_tokens_neox': 880, 'n_words': 193}