2022-04-14 00:27:12 +00:00
|
|
|
CC = gcc
|
|
|
|
CFLAGS = -Wall -Wpedantic -Wextra -std=c99
|
|
|
|
DEBUG = -g
|
|
|
|
LINK =
|
|
|
|
SRC_DIR = src
|
|
|
|
OUT_DIR = bin
|
|
|
|
TARGETS = base64
|
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
|
|
|
|