Files
blobchain/Makefile
T
chloe d7b25b944b initial commit
Signed-off-by: Chloe M. <chloe@mirocom.org>
2026-04-30 08:08:34 -04:00

27 lines
361 B
Makefile

#
# Copyright (c) 2026, Chloe M.
# Provided under the BSD-3 clause
#
CFILES = $(shell find . -name "*.c")
DFILES = $(CFILES:.c=.d)
OFILES = $(CFILES:.c=.o)
CC = gcc
CFLAGS = \
-Wall \
-pedantic \
-Iinc/ \
-MMD
.PHONY: all
all: blobchain
.PHONY: blobchain
blobchain: $(OFILES)
$(CC) $< -o $@
-include $(DFILES)
%.o: %.c
$(CC) -c $< $(CFLAGS) -o $@