a371b6ebb0
Signed-off-by: Ian Moffett <ian@mirocom.org>
30 lines
399 B
Makefile
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)
|