<commit_before>SHELL = /bin/sh

PROJECT  := tic-tac-toe

# ------------------
# External programs
# ------------------
CC  := gcc
RM  := rm -rf
DG  := doxygen

# --------------------
# Directories & Files
# --------------------
D_SRC    := ./src
D_DOC    := ./doc
FILES_C  := $(wildcard $(D_SRC)/*.c)
FILES_O  := $(FILES_C:.c=.o)

# ------------
# Flags
# ------------
CFLAGS  := -Wall -I/usr/include/allegro5 
LFLAGS  := -L/usr/lib 

# ------------
# Targets
# ------------
default: $(PROJECT)

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

$(PROJECT): $(FILES_O)
	$(CC) -I $(D_SRC) $(LFLAGS) $(FILES_O) -o $@ `pkg-config --libs allegro-5`

.phony: doxygen
doxygen:
	$(DG) $(D_DOC)/doxygen.config

.phony: html
html: doxygen

.phony: pdf
pdf: doxygen
	make -C $(D_DOC)/output/latex

.phony:	clean
clean:
	-$(RM) $(FILES_O) $(PROJECT) $(D_DOC)/output<commit_msg>Добавление подключения доп. библиотек allegro в Makefile.<commit_after>SHELL = /bin/sh

PROJECT  := tic-tac-toe

# ------------------
# External programs
# ------------------
CC  := gcc
RM  := rm -rf
DG  := doxygen

# --------------------
# Directories & Files
# --------------------
D_SRC    := ./src
D_DOC    := ./doc
FILES_C  := $(wildcard $(D_SRC)/*.c)
FILES_O  := $(FILES_C:.c=.o)

# ------------
# Flags
# ------------
CFLAGS  := -Wall -I/usr/include/allegro5 
LFLAGS  := -L/usr/lib 
LIBALLEGRO := `pkg-config --libs allegro-5 allegro_font-5 allegro_ttf-5`

# ------------
# Targets
# ------------
default: $(PROJECT)

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

$(PROJECT): $(FILES_O)
	$(CC) -I $(D_SRC) $(LFLAGS) $(FILES_O) -o $@ $(LIBALLEGRO)

.phony: doxygen
doxygen:
	$(DG) $(D_DOC)/doxygen.config

.phony: html
html: doxygen

.phony: pdf
pdf: doxygen
	make -C $(D_DOC)/output/latex

.phony:	clean
clean:
	-$(RM) $(FILES_O) $(PROJECT) $(D_DOC)/output
{'fraction_non_alphanumeric': 0.3188010899182561, 'fraction_numerical': 0.0032697547683923707, 'mean_word_length': 1.9050632911392404, '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': '385907', 'n_tokens_mistral': 788, 'n_tokens_neox': 739, 'n_words': 159}