summaryrefslogtreecommitdiff
path: root/Makefile
blob: 6f1c21e35bfaaa6269f157ccf07544a009ce3c94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#
# Copyright (c) 2026, Apollo Telephone Laboratories.
# 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	\
	-MMD		\
	-Ihead

.PHONY: all
all: $(OFILES)
	$(CC) $(OFILES) -o atas

-include $(DFILES)
%.o: %.c
	$(CC) -c $(CFLAGS) $< -o $@