1 # Copyright (c) 2022-2024, PostgreSQL Global Development Group
3 # libraries that other subsystems might depend upon first, in their respective
16 subdir('tools/pg_bsd_indent')
19 ### Generate a Makefile.global that's complete enough for PGXS to work.
21 # This is somewhat ugly, but allows extensions to use a single buildsystem
22 # across all the supported postgres versions. Once all supported PG versions
23 # support meson, we can remove all of this.
25 # XXX: Should we make this optional?
27 # pgxs_cdata is built in makefiles/meson.build, but some of the generated
28 # files are output into src/
31 makefile_global = configure_file(
32 input: 'Makefile.global.in',
33 output: 'Makefile.global',
34 configuration: pgxs_cdata,
36 install_dir: dir_pgxs / 'src',
38 configure_files += makefile_global
40 makefile_port = configure_file(
41 input: 'makefiles' / 'Makefile.@0@'.format(portname),
42 output: 'Makefile.port',
44 install_dir: dir_pgxs / 'src')
45 configure_files += makefile_port
48 'Makefile.shlib', 'nls-global.mk',
49 install_dir: dir_pgxs / 'src')
53 install_dir: dir_pgxs / 'src' / 'makefiles')