Files
Cescal/Makefile
T
chloe a371b6ebb0 build: Add clean target
Signed-off-by: Ian Moffett <ian@mirocom.org>
2026-05-23 01:34:20 -04:00

30 lines
399 B
Makefile

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