Files
remail/endpoint/Makefile
T

33 lines
526 B
Makefile
Raw Normal View History

2026-05-02 01:10:56 -04:00
#
# Copyright (c) 2026, Chloe Moffett
# Provided under the BSD-3 clause
#
CFILES = $(shell find . -name "*.c")
OFILES = $(CFILES:.c=.o)
2026-05-02 15:22:27 -04:00
OFILES += $(shell find ../libremail/ -name "*.o")
2026-05-02 01:10:56 -04:00
DFILES = $(CFILES:.c=.d)
CC = gcc
CFLAGS = \
-Wall \
-pedantic \
-MMD \
-Iinc \
-I../libremail/inc
.PHONY: all
all: ../bin/remailsv $(OFILES)
.PHONY: ../bin/remailsv
../bin/remailsv: $(OFILES)
$(CC) $^ -o $@
-include $(DFILES)
%.o: %.c
$(CC) -c $< $(CFLAGS) -o $@
2026-05-02 01:14:17 -04:00
.PHONY: clean
clean:
rm -f $(OFILES) $(DFILES)