systemd-openbsd/init/Makefile
Reyk Floeter ef95987cfd Rename syslib_log to systemd_journal and log as JSON to improve readability.
Add the optional -DBINARYLOGS flag to encode the JSON logs as Base64.
This allows to log binary data as well but it is turned off for
backwards-compatibility.

Requested by https://github.com/reyk/systemd-openbsd/issues/3
2019-06-18 15:02:15 +02:00

41 lines
850 B
Makefile

# $OpenBSD: Makefile,v 1.10 2018/01/06 16:26:12 millert Exp $
PROG= init
MAN= init.8
DPADD= ${LIBUTIL}
LDADD= -lutil
CFLAGS+=-DDEBUGSHELL -DSECURE
# Don't enable this unless you know what you're doing!
#CFLAGS+=-DDANGEROUS
# Set this flag to enable regress tests.
#CFLAGS+=-DJUSTKIDDING
# Enable debug messages.
#CFLAGS+=-DDEBUG
# Encode logs as Base64 to allow logging of binary data.
#CFLAGS+=-DBINARYLOGS
# Some /sbin make flags
LDSTATIC=${STATIC}
BINDIR= /sbin
CFLAGS+=-Wall
CFLAGS+=-Wstrict-prototypes -Wmissing-prototypes
CFLAGS+=-Wmissing-declarations
CFLAGS+=-Wshadow -Wpointer-arith
CFLAGS+=-Wsign-compare -Wcast-qual
SRCS= init.c
SRCS+= systemd.c
SRCS+= systemd-journald.c
SRCS+= systemd-file.c
SRCS+= systemd-dir.c
SRCS+= systemd-proc.c
SRCS+= systemd-reboot.c
SRCS+= systemd-move.c
SRCS+= systemd-rename.c
.include <bsd.prog.mk>