<commit_before>#
# src/vala/Makefile
# =============================================================================
# DNS Resolver Daemon (dnsresolvd). Version 0.1
# =============================================================================
# A daemon that performs DNS lookups for the given hostname
# passed in an HTTP request, with the focus on its implementation
# using various programming languages. (libsoup-boosted impl.)
# =============================================================================
# Copyright (C) 2017-2018 Radislav (Radicchio) Golubtsov
#
# (See the LICENSE file at the top of the source tree.)
#

PREF = dnsresolv
EXEC = $(PREF)d
SRCS = $(PREF)d.vala \
       $(PREF)h.gs

# Specify flags and other vars here.
# If we're on OpenBSD, invoke its gcc from packages
# instead of implicitly using its system default gcc or clang.
ifeq ($(shell uname), OpenBSD)
    CC = egcc
endif

VC      = valac
VCFLAGS = --target-glib=2.40 --cc=$(CC) -X -s                       \
                                        -X -O3                      \
                                        -X -mtune=generic           \
                                        -X -pipe                    \
                                        -X -fstack-protector-strong \
          --pkg=posix --pkg=libsoup-2.4 -o

# Making the target.
$(EXEC): $(SRCS)
	$(VC) $(VCFLAGS) $@ $^<commit_msg>libsoup/vala: Build against the JSON-GLib library to produce JSON output.<commit_after>#
# src/vala/Makefile
# =============================================================================
# DNS Resolver Daemon (dnsresolvd). Version 0.1
# =============================================================================
# A daemon that performs DNS lookups for the given hostname
# passed in an HTTP request, with the focus on its implementation
# using various programming languages. (libsoup-boosted impl.)
# =============================================================================
# Copyright (C) 2017-2018 Radislav (Radicchio) Golubtsov
#
# (See the LICENSE file at the top of the source tree.)
#

PREF = dnsresolv
EXEC = $(PREF)d
SRCS = $(PREF)d.vala \
       $(PREF)h.gs

# Specify flags and other vars here.
# If we're on OpenBSD, invoke its gcc from packages
# instead of implicitly using its system default gcc or clang.
ifeq ($(shell uname), OpenBSD)
    CC = egcc
endif

VC      = valac
VCFLAGS = --target-glib=2.40 --cc=$(CC) -X -s                       \
                                        -X -O3                      \
                                        -X -mtune=generic           \
                                        -X -pipe                    \
                                        -X -fstack-protector-strong \
          --pkg=posix                                               \
          --pkg=libsoup-2.4                                         \
          --pkg=json-glib-1.0           -o

# Making the target.
$(EXEC): $(SRCS)
	$(VC) $(VCFLAGS) $@ $^
{'fraction_non_alphanumeric': 0.24147157190635452, 'fraction_numerical': 0.01137123745819398, 'mean_word_length': 1.845861084681256, 'pattern_counts': {'":': 0, '<': 3, '<?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': 19, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7441353', 'n_tokens_mistral': 793, 'n_tokens_neox': 719, 'n_words': 242}