1 noinst_LIBRARIES = libopenbsd-compat.a
3 include $(top_builddir)/Makefile.common
6 AM_CPPFLAGS += $(libbsd_CFLAGS)
8 libopenbsd_compat_a_SOURCES = \
24 # For MacOS, don't build the compat versions of strl{cat,cpy}, but do for all
27 libopenbsd_compat_a_SOURCES += strlcat.c strlcpy.c
31 libopenbsd_compat_a_SOURCES += uuid.c bsd-poll.c bsd-poll.h
35 libopenbsd_compat_a_SOURCES += getopt.c
39 libopenbsd_compat_a_SOURCES += base64.c
40 LDADD += $(libresolv_LIBS)
44 libopenbsd_compat_a_SOURCES += closefrom.c
48 libopenbsd_compat_a_SOURCES += bsd-poll.c bsd-poll.h
52 libopenbsd_compat_a_SOURCES += uuid.c
55 if HAVE_LINUX_LANDLOCK
56 libopenbsd_compat_a_SOURCES += landlock.c
60 libopenbsd_compat_a_SOURCES += siphash.c siphash.h
64 libopenbsd_compat_a_SOURCES += setproctitle.c
68 libopenbsd_compat_a_SOURCES += imsg-buffer.c imsg.c
72 # Fake an assigment here. It does nothing, but you cannot have consecutive
73 # nested if statements in Makefiles, so we have to do something here, even if
74 # it's a dummy assignment.
77 libopenbsd_compat_a_SOURCES += sha2.c sha2.h
82 $(top_srcdir)/include/got_compat.h \