<commit_before># The Cupcake GUI Toolkit Makefile
# (c) <NAME> 2012 <<EMAIL>>
# Report bugs and issues on <http://github.com/skordal/cupcake/issues>
include ../config.mk

.PHONY: all backend clean

# Ada source files to build:
SOURCE_FILES := \
	cupcake.adb \
	cupcake-components.adb \
	cupcake-fonts.adb \
	cupcake-graphics.adb \
	cupcake-layouts.adb \
	cupcake-primitives.adb \
	cupcake-windows.adb

# Ada specification files to build:
SPEC_FILES := \
	cupcake-colors.ads \
	cupcake-events.ads

# Object files to build:
OBJECT_FILES := $(SOURCE_FILES:.adb=.o) $(SPEC_FILES:.ads=.o) \
	$(C_SOURCE_FILES:.c=.o)

all: backend $(OBJECT_FILES)
	$(AR) rc libcupcake-tk.a $(OBJECT_FILES) $(shell find backend -type f | grep '\.o')
	$(RANLIB) libcupcake-tk.a
	gcc -shared -o libcupcake-tk.so $(OBJECT_FILES) $(shell find backend -type f| grep '\.o') $(LDFLAGS)

backend:
	@$(MAKE) -C backend

clean:
	-$(RM) $(OBJECT_FILES)
	-$(RM) $(SOURCE_FILES:.adb=.ali)
	-$(RM) $(SPEC_FILES:.ads=.ali)
	-$(RM) libcupcake-tk.so libcupcake-tk.a
	@$(MAKE) -C backend clean

%.o: %.adb %.ads
	$(GNATCC) -c $(GNATFLAGS) -o $@ $<

%.o: %.ads
	$(GNATCC) -c $(GNATFLAGS) -o $@ $<
<commit_msg>Removed mention of C source files from the src Makefile<commit_after># The Cupcake GUI Toolkit Makefile
# (c) <NAME> 2012 <<EMAIL>>
# Report bugs and issues on <http://github.com/skordal/cupcake/issues>
include ../config.mk

.PHONY: all backend clean

# Ada source files to build:
SOURCE_FILES := \
	cupcake.adb \
	cupcake-components.adb \
	cupcake-fonts.adb \
	cupcake-graphics.adb \
	cupcake-layouts.adb \
	cupcake-primitives.adb \
	cupcake-windows.adb

# Ada specification files to build:
SPEC_FILES := \
	cupcake-colors.ads \
	cupcake-events.ads

# Object files to build:
OBJECT_FILES := $(SOURCE_FILES:.adb=.o) $(SPEC_FILES:.ads=.o)

all: backend $(OBJECT_FILES)
	$(AR) rc libcupcake-tk.a $(OBJECT_FILES) $(shell find backend -type f | grep '\.o')
	$(RANLIB) libcupcake-tk.a
	gcc -shared -o libcupcake-tk.so $(OBJECT_FILES) $(shell find backend -type f| grep '\.o') $(LDFLAGS)

backend:
	@$(MAKE) -C backend

clean:
	-$(RM) $(OBJECT_FILES)
	-$(RM) $(SOURCE_FILES:.adb=.ali)
	-$(RM) $(SPEC_FILES:.ads=.ali)
	-$(RM) libcupcake-tk.so libcupcake-tk.a
	@$(MAKE) -C backend clean

%.o: %.adb %.ads
	$(GNATCC) -c $(GNATFLAGS) -o $@ $<

%.o: %.ads
	$(GNATCC) -c $(GNATFLAGS) -o $@ $<

{'fraction_non_alphanumeric': 0.1832126118449084, 'fraction_numerical': 0.0034086067319982955, 'mean_word_length': 3.7530364372469633, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 11, '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': '1489668', 'n_tokens_mistral': 1045, 'n_tokens_neox': 923, 'n_words': 230}