File: Makefile.am

package info (click to toggle)
got 0.119-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,448 kB
  • sloc: ansic: 124,378; sh: 50,814; yacc: 4,353; makefile: 2,241; perl: 357
file content (85 lines) | stat: -rw-r--r-- 1,640 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
noinst_LIBRARIES = libopenbsd-compat.a

include $(top_builddir)/Makefile.common

LDADD = $(libbsd_LIBS)
AM_CPPFLAGS += $(libbsd_CFLAGS)

libopenbsd_compat_a_SOURCES =  \
	asprintf.c \
	fmt_scaled.c \
	freezero.c \
	getdtablecount.c \
	getprogname.c \
	merge.c \
	reallocarray.c \
	recallocarray.c \
	strndup.c \
	strnlen.c \
	strsep.c \
	strtonum.c \
	imsg.h \
	tree.h

# For MacOS, don't build the compat versions of strl{cat,cpy}, but do for all
# other systems.
if !HOST_DARWIN
libopenbsd_compat_a_SOURCES += strlcat.c strlcpy.c
endif

if HOST_DARWIN
libopenbsd_compat_a_SOURCES += uuid.c bsd-poll.c bsd-poll.h
endif

if !HAVE_GETOPT
libopenbsd_compat_a_SOURCES += getopt.c
endif

if !HAVE_B64
libopenbsd_compat_a_SOURCES += base64.c
LDADD += $(libresolv_LIBS)
endif

if !HAVE_CLOSEFROM
libopenbsd_compat_a_SOURCES += closefrom.c
endif

if HOST_NETBSD
libopenbsd_compat_a_SOURCES += bsd-poll.c bsd-poll.h
endif

if HOST_LINUX
libopenbsd_compat_a_SOURCES += uuid.c
endif

if HAVE_LINUX_LANDLOCK
libopenbsd_compat_a_SOURCES += landlock.c
endif

if !HAVE_SIPHASH
libopenbsd_compat_a_SOURCES += siphash.c siphash.h
endif

if !HAVE_SETPROCTITLE
libopenbsd_compat_a_SOURCES += setproctitle.c
endif

if !HAVE_IMSG
libopenbsd_compat_a_SOURCES += imsg-buffer.c imsg.c
endif

if !HOST_DARWIN
# Fake an assigment here.  It does nothing, but you cannot have consecutive
# nested if statements in Makefiles, so we have to do something here, even if
# it's a dummy assignment.
NOTING=something
if !HAVE_SHA2
libopenbsd_compat_a_SOURCES += sha2.c sha2.h
endif
endif

EXTRA_DIST = \
	$(top_srcdir)/include/got_compat.h \
	imsg.h \
	tree.h \
	bsd-poll.h