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