<commit_before>CC = gcc
OUTFILE = aqu4bot
OS = UNIX
AQ_CORE_OBJECTS = auth.o commands.o config.o ddg.o irc.o logging.o main.o netcore.o curlcore.o wz.o
AQ_OBJECTS = $(AQ_CORE_OBJECTS)

ifeq ($(USECURL),NO)
	CFLAGS = -std=gnu89 -pedantic -Wall -g3 -O0 -DNO_LIBCURL -DBOT_OS="\"UNIX (without libcurl)\""
	AQ_CORE_OBJECTS = auth.o commands.o config.o irc.o logging.o main.o netcore.o wz.o
	AQ_OBJECTS = $(AQ_CORE_OBJECTS)
	LDFLAGS =
else
	CFLAGS = -std=gnu89 -pedantic -Wall -g3 -O0
	LDFLAGS = -lcurl
endif

ifeq ($(OS),WIN)
	
	ifeq ($(USECURL),NO)
		LDFLAGS = -lws2_32
		CFLAGS = -std=gnu89 -pedantic -Wall -g3 -O0 -DWIN -DBOT_OS="\"Windows (without libcurl)\"" -DNO_LIBCURL
	else
		LDFLAGS = -lws2_32 `i686-pc-mingw32-pkg-config --libs libcurl`
		CFLAGS = -std=gnu89 -pedantic -Wall -g3 -O0 -DWIN -DBOT_OS=\"Windows\" -DCURL_STATICLIB
	endif

	OUTFILE = aqu4bot.exe
	RANLIB = i686-pc-mingw32-ranlib
	CC = i686-pc-mingw32-gcc
	AQ_OBJECTS = $(AQ_CORE_OBJECTS) ../win32/aqu4bot-win.o
endif

ifeq ($(OS),HAIKU)
	ifeq ($(USECURL),NO)
		CFLAGS = -std=gnu89 -pedantic -Wall -g3 -O0 -DHAIKU -DBOT_OS="\"Haiku OS (without libcurl)\"" -DNO_LIBCURL
		LDFLAGS = -lnetwork
	else
		LDFLAGS = -lcurl -lnetwork
		CFLAGS = -std=gnu89 -pedantic -Wall -g3 -O0 -DHAIKU -DBOT_OS="\"Haiku OS\""
	endif

endif

all:

ifeq ($(OS),WIN)
	$(MAKE) -C ../win32
endif
	$(CC) auth.c -c $(CFLAGS)
	$(CC) commands.c -c $(CFLAGS)
	$(CC) config.c -c $(CFLAGS)
	$(CC) irc.c -c $(CFLAGS)
	$(CC) logging.c -c $(CFLAGS)<commit_msg>Switch aqu4bot to compile as C99.<commit_after>CC = gcc
OUTFILE = aqu4bot
OS = UNIX
AQ_CORE_OBJECTS = auth.o commands.o config.o ddg.o irc.o logging.o main.o netcore.o curlcore.o wz.o
AQ_OBJECTS = $(AQ_CORE_OBJECTS)

ifeq ($(USECURL),NO)
	CFLAGS = -std=gnu99 -pedantic -Wall -g3 -O0 -DNO_LIBCURL -DBOT_OS="\"UNIX (without libcurl)\""
	AQ_CORE_OBJECTS = auth.o commands.o config.o irc.o logging.o main.o netcore.o wz.o
	AQ_OBJECTS = $(AQ_CORE_OBJECTS)
	LDFLAGS =
else
	CFLAGS = -std=gnu99 -pedantic -Wall -g3 -O0
	LDFLAGS = -lcurl
endif

ifeq ($(OS),WIN)
	
	ifeq ($(USECURL),NO)
		LDFLAGS = -lws2_32
		CFLAGS = -std=gnu99 -pedantic -Wall -g3 -O0 -DWIN -DBOT_OS="\"Windows (without libcurl)\"" -DNO_LIBCURL
	else
		LDFLAGS = -lws2_32 `i686-pc-mingw32-pkg-config --libs libcurl`
		CFLAGS = -std=gnu99 -pedantic -Wall -g3 -O0 -DWIN -DBOT_OS=\"Windows\" -DCURL_STATICLIB
	endif

	OUTFILE = aqu4bot.exe
	RANLIB = i686-pc-mingw32-ranlib
	CC = i686-pc-mingw32-gcc
	AQ_OBJECTS = $(AQ_CORE_OBJECTS) ../win32/aqu4bot-win.o
endif

ifeq ($(OS),HAIKU)
	ifeq ($(USECURL),NO)
		CFLAGS = -std=gnu99 -pedantic -Wall -g3 -O0 -DHAIKU -DBOT_OS="\"Haiku OS (without libcurl)\"" -DNO_LIBCURL
		LDFLAGS = -lnetwork
	else
		LDFLAGS = -lcurl -lnetwork
		CFLAGS = -std=gnu99 -pedantic -Wall -g3 -O0 -DHAIKU -DBOT_OS="\"Haiku OS\""
	endif

endif

all:

ifeq ($(OS),WIN)
	$(MAKE) -C ../win32
endif
	$(CC) auth.c -c $(CFLAGS)
	$(CC) commands.c -c $(CFLAGS)
	$(CC) config.c -c $(CFLAGS)
	$(CC) irc.c -c $(CFLAGS)
	$(CC) logging.c -c $(CFLAGS)
{'fraction_non_alphanumeric': 0.16822118587608262, 'fraction_numerical': 0.03564290473017988, 'mean_word_length': 3.4357459379615953, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '707736', 'n_tokens_mistral': 1480, 'n_tokens_neox': 1355, 'n_words': 316}