From 2a065f48ecefe46ebd7689f4adc9db277fb8ad33 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Wed, 25 Nov 2020 22:00:38 +0000 Subject: C version in progress FossilOrigin-Name: c143b7b33eed96b1183129105594fb8e74d1e0cb --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 405060a..994b9c1 100644 --- a/Makefile +++ b/Makefile @@ -30,9 +30,11 @@ SRCS := ${SRCS:S/^/${SRCS_DIR}/g} OBJS := ${SRCS:=.o} +INCS := ${SRCS:.c=.h} + NAME := bsdsetsid -CFLAGS += -std=c89 +CFLAGS = -std=c89 CFLAGS += -Wall CFLAGS += -Wextra CFLAGS += -Werror @@ -44,7 +46,7 @@ MKDIR := mkdir -p .OBJDIR: ./ .SUFFIXES: .c.o .c -.c.c.o: +.c.c.o: ${INCS} ${CC} -c ${CFLAGS} -o ${.TARGET:S/src/obj/} ${.IMPSRC} ${OBJS_DIR}: -- cgit v1.2.3