summaryrefslogtreecommitdiff
path: root/Makefile
blob: 5d497f9f08e5ef971984553f48a19394ba73ef53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#
# 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 $@