2022-04-14 00:27:12 +00:00
|
|
|
CC = gcc
|
2022-04-14 02:17:01 +00:00
|
|
|
CFLAGS = -Wall -Wpedantic -Wextra -std=c99 -fstack-protector-all \
|
|
|
|
-fdiagnostics-color=auto
|
|
|
|
DEBUG = -0g -ggdb
|
2022-04-14 00:27:12 +00:00
|
|
|
LINK =
|
|
|
|
SRC_DIR = src
|
|
|
|
OUT_DIR = bin
|
2022-04-14 08:26:40 +00:00
|
|
|
TARGETS = base64 fixed-xor char-freq-analize
|
2022-04-08 00:51:38 +00:00
|
|
|
|
|
|
|
|
2022-04-14 00:27:12 +00:00
|
|
|
all: $(TARGETS)
|
2022-04-08 00:51:38 +00:00
|
|
|
|
2022-04-14 00:27:12 +00:00
|
|
|
%: $(SRC_DIR)/%.c
|
|
|
|
$(CC) $(CFLAGS) $(LINK) $< -o $(OUT_DIR)/$@
|
2022-04-08 00:51:38 +00:00
|
|
|
|
|
|
|
clean:
|
2022-04-14 00:27:12 +00:00
|
|
|
$(RM) *.o $(OUT_DIR)/*
|
|
|
|
|
|
|
|
.PHONY: all clean
|
2022-04-08 00:51:38 +00:00
|
|
|
|