cryptopals-challenges/set1/Makefile

21 lines
337 B
Makefile

CC = gcc
CFLAGS = -Wall -Wpedantic -Wextra -std=c99 -fstack-protector-all \
-fdiagnostics-color=auto
DEBUG = -0g -ggdb
LINK =
SRC_DIR = src
OUT_DIR = bin
TARGETS = base64 fixed-xor
all: $(TARGETS)
%: $(SRC_DIR)/%.c
$(CC) $(CFLAGS) $(LINK) $< -o $(OUT_DIR)/$@
clean:
$(RM) *.o $(OUT_DIR)/*
.PHONY: all clean