File: Makefile.am

package info (click to toggle)
libbsd 0.11.3-1%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,828 kB
  • sloc: ansic: 10,518; sh: 4,329; cpp: 581; makefile: 486
file content (78 lines) | stat: -rw-r--r-- 1,435 bytes parent folder | download
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
## Process this file with automake to produce Makefile.in

HEADERS_CPPFLAGS = \
	-I$(top_builddir) \
	-include $(top_builddir)/config.h \
	-DLIBBSD_DISABLE_DEPRECATED \
	-D__REENTRANT

AM_CPPFLAGS = \
	-isystem $(top_srcdir)/include/bsd/ \
	$(HEADERS_CPPFLAGS) \
	-DLIBBSD_OVERLAY

AM_TESTS_ENVIRONMENT = \
	export CC="$(CC)"; \
	export CPPFLAGS="$(HEADERS_CPPFLAGS)"; \
	export top_srcdir="$(top_srcdir)"; \
	$(nil)

LDADD = $(top_builddir)/src/libbsd.la

EXTRA_DIST = \
	headers-overlay.sh \
	headers-system.sh \
	$(nil)

check_SCRIPTS = \
	headers-overlay.sh \
	headers-system.sh \
	$(nil)

check_PROGRAMS = \
	overlay \
	bzero \
	closefrom \
	endian \
	humanize \
	fgetln \
	funopen \
	fparseln \
	fpurge \
	md5 \
	nlist \
	proctitle-init \
	progname \
	pwcache \
	setmode \
	strl \
	strmode \
	strnstr \
	vis \
	vis-openbsd \
	$(nil)

if HAVE_LIBTESTU01
arc4random_LDADD = $(LDADD) $(TESTU01_LIBS)

check_PROGRAMS += arc4random
endif

if BUILD_LIBBSD_CTOR
proctitle_LDFLAGS = \
	-Wl,-u,libbsd_init_func \
	$(top_builddir)/src/libbsd-ctor.a \
	$(top_builddir)/src/libbsd.la \
	$(nil)

check_PROGRAMS += proctitle
endif

fgetln_SOURCES = test-stream.c test-stream.h fgetln.c
fgetln_CFLAGS = -Wno-deprecated-declarations
fparseln_SOURCES = test-stream.c test-stream.h fparseln.c

proctitle_init_SOURCES = proctitle.c
proctitle_init_CPPFLAGS = $(AM_CPPFLAGS) -DTEST_USE_SETPROCTITLE_INIT=1

TESTS = $(check_SCRIPTS) $(check_PROGRAMS)