xref: /freebsd/contrib/pkgconf/Makefile.am (revision a3cefe7f2b4df0f70ff92d4570ce18e517af43ec)
1libdir                 = @libdir@
2datarootdir            = @datarootdir@
3datadir                = @datadir@
4includedir             = @includedir@
5system_includedir      = @SYSTEM_INCLUDEDIR@
6system_libdir          = @SYSTEM_LIBDIR@
7pkg_default_dir        = @PKG_DEFAULT_PATH@
8personality_dir        = @PERSONALITY_PATH@
9pkgconfigdir           = $(libdir)/pkgconfig
10nodist_pkgconfig_DATA  = libpkgconf.pc
11
12ACLOCAL_AMFLAGS = -I m4
13AM_CFLAGS = -DPERSONALITY_PATH=\"$(personality_dir)\" -DPKG_DEFAULT_PATH=\"$(pkg_default_dir)\" -DSYSTEM_INCLUDEDIR=\"$(system_includedir)\" -DSYSTEM_LIBDIR=\"$(system_libdir)\"
14
15bin_PROGRAMS = pkgconf bomtool
16lib_LTLIBRARIES = libpkgconf.la
17
18EXTRA_DIST =	pkg.m4 \
19		meson.build \
20		meson_options.txt \
21		pkgconf.wxs.in \
22		txt2rtf.py \
23		libpkgconf/meson.build \
24		libpkgconf/config.h.meson \
25		libpkgconf/win-dirent.h \
26		tests/lib-relocatable/lib/pkgconfig/foo.pc \
27		tests/lib1/argv-parse-2.pc \
28		tests/lib1/billion-laughs.pc \
29		tests/lib1/dos-lineendings.pc \
30		tests/lib1/paren-quoting.pc \
31		tests/lib1/argv-parse-3.pc \
32		tests/lib1/foo.pc \
33		tests/lib1/foobar.pc \
34		tests/lib1/unavailable-provider.pc \
35		tests/lib1/prefix-foo1.pc \
36		tests/lib1/argv-parse.pc \
37		tests/lib1/framework-1.pc \
38		tests/lib1/prefix-foo2.pc \
39		tests/lib1/bar.pc \
40		tests/lib1/framework-2.pc \
41		tests/lib1/private-libs-duplication.pc \
42		tests/lib1/baz.pc \
43		tests/lib1/incomplete.pc \
44		tests/lib1/quotes.pc \
45		tests/lib1/case-sensitivity.pc \
46		tests/lib1/intermediary-1.pc \
47		tests/lib1/static-archive-libs.pc \
48		tests/lib1/cflags-libs-only.pc \
49		tests/lib1/intermediary-2.pc \
50		tests/lib1/static-libs.pc \
51		tests/lib1/circular-1.pc \
52		tests/lib1/missing-require.pc \
53		tests/lib1/sysroot-dir.pc \
54		tests/lib1/circular-2.pc \
55		tests/lib1/multiline.pc \
56		tests/lib1/multiline-bogus.pc \
57		tests/lib1/tilde-quoting.pc \
58		tests/lib1/circular-3.pc \
59		tests/lib1/no-trailing-newline.pc \
60		tests/lib1/tilde.pc \
61		tests/lib1/comments-in-fields.pc \
62		tests/lib1/nocflag.pc \
63		tests/lib1/typelibdir.pc \
64		tests/lib2/foo.pc \
65		tests/lib1/comments.pc \
66		tests/lib1/nolib.pc \
67		tests/lib3/bar.pc \
68		tests/lib1/conflicts.pc \
69		tests/lib1/omg-uninstalled.pc \
70		tests/lib1/omg-sysroot-uninstalled.pc \
71		tests/lib1/isystem.pc \
72		tests/lib1/idirafter.pc \
73		tests/lib1/idirafter-ordering.pc \
74		tests/lib1/depgraph-break.pc \
75		tests/lib1/cflags-whitespace.pc \
76		tests/lib1/cflags-whitespace-trailing.pc \
77		tests/lib1/provides.pc \
78		tests/lib1/provides-request-simple.pc \
79		tests/lib1/flag-order-1.pc \
80		tests/lib1/flag-order-3.pc \
81		tests/lib1/variable-whitespace.pc \
82		tests/lib1/fragment-collision.pc \
83		tests/lib1/fragment-collision-intermediary.pc \
84		tests/lib1/fragment-collision-1.pc \
85		tests/lib1/fragment-collision-2.pc \
86		tests/lib1/fragment-comment.pc \
87		tests/lib1/fragment-escaping-1.pc \
88		tests/lib1/fragment-escaping-2.pc \
89		tests/lib1/fragment-escaping-3.pc \
90		tests/lib1/fragment-quoting.pc \
91		tests/lib1/fragment-quoting-2.pc \
92		tests/lib1/fragment-quoting-3.pc \
93		tests/lib1/fragment-quoting-5.pc \
94		tests/lib1/fragment-quoting-7.pc \
95		tests/lib1/fragment-groups.pc \
96		tests/lib1/fragment-groups-2.pc \
97		tests/lib1/fragment-group-a.pc \
98		tests/lib1/fragment-group-b.pc \
99		tests/lib1/fragment-group-c.pc \
100		tests/lib1/malformed-1.pc \
101		tests/lib1/malformed-quoting.pc \
102		tests/lib1/malformed-version.pc \
103		tests/lib1/metapackage.pc \
104		tests/lib1/metapackage-1.pc \
105		tests/lib1/metapackage-2.pc \
106		tests/lib1/metapackage-3.pc \
107		tests/lib1/explicit-sysroot.pc \
108		tests/lib1/escaped-backslash.pc \
109		tests/lib1/cflags-internal.pc \
110		tests/lib1/requires-internal.pc \
111		tests/lib1/requires-internal-2.pc \
112		tests/lib1/requires-internal-missing.pc \
113		tests/lib1/requires-internal-collision.pc \
114		tests/lib1/tuple-quoting.pc \
115		tests/lib1/empty-tuple.pc \
116		tests/lib1/orphaned-requires-private.pc \
117		tests/lib1/pcfiledir.pc \
118		tests/lib1/sysroot-dir-2.pc \
119		tests/lib1/sysroot-dir-3.pc \
120		tests/lib1/sysroot-dir-4.pc \
121		tests/lib1/sysroot-dir-5.pc \
122		tests/lib1/child-prefix/pkgconfig/child-prefix-1.pc \
123		tests/lib1/cflags-libs-private-a.pc \
124		tests/lib1/cflags-libs-private-b.pc \
125		tests/lib1/cflags-libs-private-c.pc \
126		tests/lib1/truncated.pc \
127		tests/lib1/c-comment.pc \
128		tests/meson.build \
129		$(test_scripts) \
130		doc/conf.py \
131		doc/extract.py \
132		doc/index.rst \
133		doc/libpkgconf.rst \
134		doc/libpkgconf-argvsplit.rst \
135		doc/libpkgconf-audit.rst \
136		doc/libpkgconf-cache.rst \
137		doc/libpkgconf-client.rst \
138		doc/libpkgconf-dependency.rst \
139		doc/libpkgconf-fragment.rst \
140		doc/libpkgconf-path.rst \
141		doc/libpkgconf-pkg.rst \
142		doc/libpkgconf-queue.rst \
143		doc/libpkgconf-tuple.rst
144
145test_scripts=	tests/basic.sh \
146		tests/builtins.sh \
147		tests/conflicts.sh \
148		tests/framework.sh \
149		tests/parser.sh \
150		tests/provides.sh \
151		tests/regress.sh \
152		tests/requires.sh \
153		tests/symlink.sh \
154		tests/sysroot.sh \
155		tests/version.sh
156
157test_sh = $(test_scripts)
158check_SCRIPTS = ${test_sh:.sh=}
159
160SUFFIXES=	.sh
161
162nobase_pkginclude_HEADERS = libpkgconf/bsdstubs.h libpkgconf/iter.h libpkgconf/libpkgconf.h libpkgconf/stdinc.h libpkgconf/libpkgconf-api.h
163libpkgconf_la_SOURCES  =	\
164		libpkgconf/audit.c		\
165		libpkgconf/buffer.c		\
166		libpkgconf/cache.c		\
167		libpkgconf/client.c		\
168		libpkgconf/pkg.c		\
169		libpkgconf/bsdstubs.c		\
170		libpkgconf/fragment.c		\
171		libpkgconf/argvsplit.c		\
172		libpkgconf/fileio.c		\
173		libpkgconf/tuple.c		\
174		libpkgconf/dependency.c		\
175		libpkgconf/queue.c		\
176		libpkgconf/path.c		\
177		libpkgconf/personality.c	\
178		libpkgconf/parser.c
179libpkgconf_la_LDFLAGS = -no-undefined -version-info 7:0:0 -export-symbols-regex '^pkgconf_'
180
181dist_man_MANS    = 		\
182	man/bomtool.1		\
183	man/pkgconf.1		\
184	man/pkg.m4.7		\
185	man/pc.5		\
186	man/pkgconf-personality.5
187
188pkgconf_LDADD    = libpkgconf.la
189pkgconf_SOURCES  = \
190	cli/main.c				\
191	cli/getopt_long.c			\
192	cli/renderer-msvc.c
193pkgconf_CPPFLAGS = -I$(top_srcdir)/libpkgconf -I$(top_srcdir)/cli
194noinst_HEADERS   = \
195	cli/getopt_long.h			\
196	cli/renderer-msvc.h
197
198bomtool_LDADD    = libpkgconf.la
199bomtool_SOURCES  = \
200	cli/bomtool/main.c				\
201	cli/getopt_long.c
202bomtool_CPPFLAGS = -I$(top_srcdir)/libpkgconf -I$(top_srcdir)/cli -I$(top_srcdir)/cli/bomtool
203
204dist_doc_DATA = README.md AUTHORS
205
206m4datadir              = $(datadir)/aclocal
207m4data_DATA            = pkg.m4
208
209CLEANFILES =	$(EXTRA_PROGRAMS) \
210		$(check_SCRIPTS)
211
212check: pkgconf $(check_SCRIPTS)
213	kyua --config=none test --kyuafile='$(top_builddir)/Kyuafile' \
214		--build-root='$(top_builddir)'
215
216.sh:
217	install -m 755 $< $@
218