aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJozanLeClerc <JozanLeClerc@noemail.net>2020-11-25 22:00:38 +0000
committerJozanLeClerc <JozanLeClerc@noemail.net>2020-11-25 22:00:38 +0000
commit2a065f48ecefe46ebd7689f4adc9db277fb8ad33 (patch)
tree0043ee3db0866b5bcec40c26bf98c57dcb30e7c7 /Makefile
parentStarting C (diff)
downloadbsdsetsid-2a065f48ecefe46ebd7689f4adc9db277fb8ad33.tar.gz
bsdsetsid-2a065f48ecefe46ebd7689f4adc9db277fb8ad33.tar.bz2
bsdsetsid-2a065f48ecefe46ebd7689f4adc9db277fb8ad33.tar.xz
bsdsetsid-2a065f48ecefe46ebd7689f4adc9db277fb8ad33.tar.zst
bsdsetsid-2a065f48ecefe46ebd7689f4adc9db277fb8ad33.zip
C version in progress
FossilOrigin-Name: c143b7b33eed96b1183129105594fb8e74d1e0cb
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
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}: