1 noinst_LIBRARIES = libopenbsd-compat.a
3 include $(top_builddir)/Makefile.common
6 AM_CPPFLAGS += $(libbsd_CFLAGS)
8 libopenbsd_compat_a_SOURCES = \
25 # For MacOS, don't build the compat versions of strl{cat,cpy}, but do for all
28 libopenbsd_compat_a_SOURCES += strlcat.c strlcpy.c
32 libopenbsd_compat_a_SOURCES += uuid.c bsd-poll.c bsd-poll.h
36 libopenbsd_compat_a_SOURCES += base64.c
37 LDADD += $(libresolv_LIBS)
41 libopenbsd_compat_a_SOURCES += closefrom.c
45 libopenbsd_compat_a_SOURCES += bsd-poll.c bsd-poll.h
49 libopenbsd_compat_a_SOURCES += uuid.c
52 if HAVE_LINUX_LANDLOCK
53 libopenbsd_compat_a_SOURCES += landlock.c
57 libopenbsd_compat_a_SOURCES += siphash.c siphash.h
61 libopenbsd_compat_a_SOURCES += setproctitle.c
65 libopenbsd_compat_a_SOURCES += imsg-buffer.c imsg.c
69 # Fake an assigment here. It does nothing, but you cannot have consecutive
70 # nested if statements in Makefiles, so we have to do something here, even if
71 # it's a dummy assignment.
74 libopenbsd_compat_a_SOURCES += sha2.c sha2.h
79 $(top_srcdir)/include/got_compat.h \