all repos — cryptopals-challenges @ d32e28bde36161fac9688123c867c2609af65c4f

cryptopals-challenges

Improve makefile, change dir structure
x1phosura x1phosura@x1phosura.zone
Wed, 13 Apr 2022 17:27:12 -0700
commit

d32e28bde36161fac9688123c867c2609af65c4f

parent

471d31b50476275f47f2bc4854ca7e0c6b2aee6c

2 files changed, 13 insertions(+), 8 deletions(-)

jump to
M set1/Makefileset1/Makefile

@@ -1,14 +1,19 @@

+CC = gcc +CFLAGS = -Wall -Wpedantic -Wextra -std=c99 +DEBUG = -g +LINK = +SRC_DIR = src +OUT_DIR = bin +TARGETS = base64 -CC = gcc -CFLAGS = -Wall -Wpedantic -Wextra -std=c99 -g -RM = rm -all: base64 +all: $(TARGETS) -base64: base64.c - $(CC) -o $@ $^ +%: $(SRC_DIR)/%.c + $(CC) $(CFLAGS) $(LINK) $< -o $(OUT_DIR)/$@ clean: - $(RM) base64 - $(RM) *.o + $(RM) *.o $(OUT_DIR)/* + +.PHONY: all clean