]> git.armaanb.net Git - opendoas.git/blobdiff - Makefile
timestamp: error out if fstat and lstat st_ino and st_dev are not the same
[opendoas.git] / Makefile
index 7bb667e9a8927aa4be886f245bc56fd0acdec04e..9cca8ca26322cae9607ecb6de5ba2ad00b1f142d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,37 +1,16 @@
 #      $OpenBSD: Makefile,v 1.9 2014/01/13 01:41:00 tedu Exp $
 
-SRCS=  parse.y doas.c
+SRCS=  parse.y doas.c env.c
 
 PROG=  doas
 MAN=   doas.1 doas.conf.5
 
 BINOWN= root
-BINGRP= wheel
-BINMODE=4555
+BINGRP= root
+BINMODE=4111
 
-COPTS+= -Wall -Wextra -Werror -pedantic -std=c11
-CFLAGS+= -I${CURDIR} -I${CURDIR}/libopenbsd ${COPTS}
+CFLAGS+= -I${CURDIR}
+COPTS+=        -Wall -Wextra -Werror -pedantic
+YFLAGS=
 
-BINDIR?=/usr/bin
-MANDIR?=/usr/share/man
-
-default: ${PROG}
-
-OBJS:=${SRCS:.y=.c}
-OBJS:=${OBJS:.c=.o}
-
-${PROG}: ${OBJS}
-       ${CC} ${COPTS} ${LDOPTS} $^ -o $@
-
-${BINDIR}/${PROG}: ${PROG}
-       cp $< $@
-       chown ${BINOWN}:${BINGRP} $@
-       chmod ${BINMODE} $@
-
-install: ${BINDIR}/${PROG}
-
-clean:
-       rm -f ${OBJS}
-       rm -f ${PROG}
-
-.PHONY: default clean install
+include bsd.prog.mk