diff options
author | 2022-05-04 21:16:14 -0300 | |
---|---|---|
committer | 2022-06-12 16:08:47 -0300 | |
commit | 4e8244fb81e17840cf1e0c2410683992c25867a9 (patch) | |
tree | 4ac5c0a92292e607bb3b12afa06e6f9bf9da8e69 /config.mk.in | |
parent | makefiles: define root dir and include relative to it (diff) | |
download | firejail-4e8244fb81e17840cf1e0c2410683992c25867a9.tar.gz firejail-4e8244fb81e17840cf1e0c2410683992c25867a9.tar.zst firejail-4e8244fb81e17840cf1e0c2410683992c25867a9.zip |
makefiles: deduplicate configure-time vars into new config.mk.in
Currently, the configure-time variables (that is, the ones that assign
to placeholders, such as "@HAVE_MAN@", which are set/replaced at
configure-time) are defined on multiple files (such as on Makefile.in
and on common.mk.in).
To avoid duplication, centralize these variables on a single file
(config.mk.in) and replace all of the other definitions of them with an
include of config.mk.
Diffstat (limited to 'config.mk.in')
-rw-r--r-- | config.mk.in | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/config.mk.in b/config.mk.in new file mode 100644 index 000000000..e76b7ac34 --- /dev/null +++ b/config.mk.in | |||
@@ -0,0 +1,58 @@ | |||
1 | # Configure-time variable definitions and any other common definition that can | ||
2 | # be safely included by all makefiles. | ||
3 | # | ||
4 | # Note: Do not define any targets on this file, as that could potentially end | ||
5 | # up overriding the includer's intended default target (which by default is the | ||
6 | # first target encountered). | ||
7 | |||
8 | CC=@CC@ | ||
9 | prefix=@prefix@ | ||
10 | exec_prefix=@exec_prefix@ | ||
11 | bindir=@bindir@ | ||
12 | libdir=@libdir@ | ||
13 | datarootdir=@datarootdir@ | ||
14 | mandir=@mandir@ | ||
15 | sysconfdir=@sysconfdir@ | ||
16 | |||
17 | VERSION=@PACKAGE_VERSION@ | ||
18 | NAME=@PACKAGE_NAME@ | ||
19 | PACKAGE_TARNAME=@PACKAGE_TARNAME@ | ||
20 | DOCDIR=@docdir@ | ||
21 | HAVE_APPARMOR=@HAVE_APPARMOR@ | ||
22 | HAVE_CONTRIB_INSTALL=@HAVE_CONTRIB_INSTALL@ | ||
23 | BUSYBOX_WORKAROUND=@BUSYBOX_WORKAROUND@ | ||
24 | HAVE_SUID=@HAVE_SUID@ | ||
25 | HAVE_MAN=@HAVE_MAN@ | ||
26 | |||
27 | HAVE_CHROOT=@HAVE_CHROOT@ | ||
28 | HAVE_FATAL_WARNINGS=@HAVE_FATAL_WARNINGS@ | ||
29 | HAVE_NETWORK=@HAVE_NETWORK@ | ||
30 | HAVE_USERNS=@HAVE_USERNS@ | ||
31 | HAVE_X11=@HAVE_X11@ | ||
32 | HAVE_FILE_TRANSFER=@HAVE_FILE_TRANSFER@ | ||
33 | HAVE_GLOBALCFG=@HAVE_GLOBALCFG@ | ||
34 | HAVE_APPARMOR=@HAVE_APPARMOR@ | ||
35 | HAVE_OVERLAYFS=@HAVE_OVERLAYFS@ | ||
36 | HAVE_FIRETUNNEL=@HAVE_FIRETUNNEL@ | ||
37 | HAVE_PRIVATE_HOME=@HAVE_PRIVATE_HOME@ | ||
38 | HAVE_IDS=@HAVE_IDS@ | ||
39 | HAVE_GCOV=@HAVE_GCOV@ | ||
40 | HAVE_SELINUX=@HAVE_SELINUX@ | ||
41 | HAVE_SUID=@HAVE_SUID@ | ||
42 | HAVE_DBUSPROXY=@HAVE_DBUSPROXY@ | ||
43 | HAVE_USERTMPFS=@HAVE_USERTMPFS@ | ||
44 | HAVE_OUTPUT=@HAVE_OUTPUT@ | ||
45 | HAVE_LTS=@HAVE_LTS@ | ||
46 | HAVE_FORCE_NONEWPRIVS=@HAVE_FORCE_NONEWPRIVS@ | ||
47 | HAVE_ONLY_SYSCFG_PROFILES=@HAVE_ONLY_SYSCFG_PROFILES@ | ||
48 | |||
49 | MANFLAGS = $(HAVE_LTS) $(HAVE_OUTPUT) $(HAVE_X11) $(HAVE_PRIVATE_HOME) $(HAVE_APPARMOR) $(HAVE_IDS) $(HAVE_OVERLAYFS) $(HAVE_USERTMPFS) $(HAVE_DBUSPROXY) $(HAVE_FIRETUNNEL) $(HAVE_GLOBALCFG) $(HAVE_CHROOT) $(HAVE_NETWORK) $(HAVE_USERNS) $(HAVE_FILE_TRANSFER) $(HAVE_SELINUX) $(HAVE_SUID) $(HAVE_FORCE_NONEWPRIVS) $(HAVE_ONLY_SYSCFG_PROFILES) | ||
50 | |||
51 | CFLAGS=@CFLAGS@ | ||
52 | |||
53 | ifdef NO_EXTRA_CFLAGS | ||
54 | else | ||
55 | EXTRA_CFLAGS +=@EXTRA_CFLAGS@ | ||
56 | endif | ||
57 | |||
58 | EXTRA_LDFLAGS +=@EXTRA_LDFLAGS@ | ||