libremail: Add shared try_mkdir() function

Signed-off-by: Chloe M. <chloe@mirocom.org>
This commit is contained in:
2026-05-02 15:22:27 -04:00
parent b44459df62
commit b4c14b82d9
7 changed files with 76 additions and 1 deletions
+25
View File
@@ -0,0 +1,25 @@
# Copyright (c) 2026, Chloe Moffett
# Provided under the BSD-3 clause
#
CFILES = $(shell find . -name "*.c")
OFILES = $(CFILES:.c=.o)
DFILES = $(CFILES:.c=.d)
CC = gcc
CFLAGS = \
-Wall \
-pedantic \
-MMD \
-Iinc
.PHONY: all
all: $(OFILES)
-include $(DFILES)
%.o: %.c
$(CC) -c $< $(CFLAGS) -o $@
.PHONY: clean
clean:
rm -f $(OFILES) $(DFILES)