<commit_before>REQ_LIBS = glib-2.0 gio-2.0 gio-unix-2.0 gobject-2.0
CFLAGS += -fpic
#CFLAGS += `pkg-config --cflags ${REQ_LIBS}`
CFLAGS += -pthread -I${LEGATO_SYSROOT}/usr/include/gio-unix-2.0/ -I${LEGATO_SYSROOT}/usr/include/glib-2.0 -I${LEGATO_SYSROOT}/usr/lib/glib-2.0/include
#LDFLAGS += `pkg-config --libs ${REQ_LIBS}`
LDFLAGS += -lgio-2.0 -lgobject-2.0 -lglib-2.0

.PRECIOUS: %.c %.h

libBluezDBus.so: org.bluez.Adapter1.o
	$(CC) -shared -o $@ $^ $(LDFLAGS)

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

#%.h: %.xml
#	gdbus-codegen --interface-prefix "org.bluez." --c-namespace bluez --header --output $@ $<
#
#%.c: %.xml
#	gdbus-codegen --interface-prefix "org.bluez." --c-namespace bluez --body --output $@ $<

%.c %.h: %.xml
	gdbus-codegen --generate-c-code=$(basename $<) --interface-prefix org.bluez. --c-namespace bluez $<

clean:
	$(RM) *.c *.h *.o libBluezDBus.so
<commit_msg>bluezDBus: cleanup commented out lines in Makefile<commit_after>REQ_LIBS = glib-2.0 gio-2.0 gio-unix-2.0 gobject-2.0
CFLAGS += -fpic

# The wrong pkg-config (the one from the build system) was running when these
# commands were executed, so the LDFLAGS and CFLAGS definitions below are based
# on manually running those commands with the toolchain version of pkg-config.
#CFLAGS += `pkg-config --cflags ${REQ_LIBS}`
#LDFLAGS += `pkg-config --libs ${REQ_LIBS}`
CFLAGS += -pthread -I${LEGATO_SYSROOT}/usr/include/gio-unix-2.0/ -I${LEGATO_SYSROOT}/usr/include/glib-2.0 -I${LEGATO_SYSROOT}/usr/lib/glib-2.0/include
LDFLAGS += -lgio-2.0 -lgobject-2.0 -lglib-2.0

.PRECIOUS: %.c %.h

libBluezDBus.so: org.bluez.Adapter1.o
	$(CC) -shared -o $@ $^ $(LDFLAGS)

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

%.h: %.xml
	gdbus-codegen --interface-prefix "org.bluez." --c-namespace bluez --header --output $@ $<

%.c: %.xml
	gdbus-codegen --interface-prefix "org.bluez." --c-namespace bluez --body --output $@ $<

clean:
	$(RM) *.c *.h *.o libBluezDBus.so

{'fraction_non_alphanumeric': 0.21202695697252463, 'fraction_numerical': 0.02177293934681182, 'mean_word_length': 3.3176733780760626, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 5}, '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': '4413677', 'n_tokens_mistral': 839, 'n_tokens_neox': 810, 'n_words': 179}