commit: 6e469ae866a97293762f5045f6eed8888a95a7ac
parent 94a495a50a1f155995fad47cfc72ae6d18b4549a
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Wed, 18 Jun 2025 13:06:12 +0200
Makefile: add .c.o rule
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
@@ -6,6 +6,9 @@ BINDIR ?= ${PREFIX}/bin
MANDIR ?= ${PREFIX}/share/man
MAN1DIR ?= ${MANDIR}/man1
+.c.o:
+ ${CC} -std=c99 ${CFLAGS} -c -o $@ $<
+
TIMER_SRC_C = timer.c strtodur.o
timer: ${TIMER_SRC_C} timer.h
${CC} -std=c99 ${CFLAGS} -o $@ ${TIMER_SRC_C} ${LDFLAGS} ${LDSTATIC}