summaryrefslogtreecommitdiffstats
path: root/config.mk
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2023-12-03 19:23:35 +0100
committerMattias Andrée <maandree@kth.se>2023-12-03 19:23:35 +0100
commitc131f122778c62f920a99bbf854ced4a37ee8b03 (patch)
tree14c933f98f4d64dffb0a594bc40dd5121c6c5a8e /config.mk
downloadlibsyscalls-c131f122778c62f920a99bbf854ced4a37ee8b03.tar.gz
libsyscalls-c131f122778c62f920a99bbf854ced4a37ee8b03.tar.bz2
libsyscalls-c131f122778c62f920a99bbf854ced4a37ee8b03.tar.xz
First commit
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk47
1 files changed, 47 insertions, 0 deletions
diff --git a/config.mk b/config.mk
new file mode 100644
index 0000000..144b7ac
--- /dev/null
+++ b/config.mk
@@ -0,0 +1,47 @@
+PREFIX = /usr
+MANPREFIX = $(PREFIX)/share/man
+
+CC = cc -std=c2x
+
+CC_DEF_EXTRACT =
+# If set, it will be used with -E -dM (must have the same meaning
+# as in GCC and clang), otherwise $(CC) is used if it is GCC or
+# clang, otherwise a gcc or clang from PATH is used
+
+CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_GNU_SOURCE
+CFLAGS = -Os
+LDFLAGS =
+# It is important that CFLAGS at least specifies some optimisation,
+# otherwise you may get binaries containing a lot of unused symbols
+# and so be unnecessarily large. (The build deduplicates identical
+# system call description, but only references to them, not their
+# instantiations (which have static storage), for that it it relies
+# on compiler optimisation.)
+
+DOWNLOAD = curl --
+
+DEFAULT_OS_SUPPORT_SELECTION = yes
+# You may for example put `DEFAULT_OS_SUPPORT_SELECTION = no` but add
+# `LINUX_SUPPORT = yes` to this file if you always only want to have
+# Linux supported.
+
+#SUPPORTED_ARCHES != util/what-architecture-am-i-using true
+# Uncomment this limit supported architectures. You will find which
+# architectures are support in Makefile (don't add anything else).
+# If you uncomment this without editing it ('!=' means it will execute
+# that text behind it as a shell commend; change to '=' to list
+# manually), the architecture you are running on, and modes
+# (e.g. i386 and x32 on amd64, however if the kernel is built to
+# support them)[1], its supports, will be selected.
+# [1] Change 'true' to 'false' to exclude them, or remove 'true'
+# to support even ones that the kernel is not compiled to support
+
+# You can also limit supported architectures on an per-OS basis, by
+# setting SUPPORTED_${NAME_OF_OS}_ARCHES; you will find the list of
+# support architectures in ${name-of-os}/${name-of-os}-support.mk,
+# however architectures not support in libsyscalls's core may be listed;
+# do not add anything that is not supported by both libsyscalls's core
+# and it's OS support
+
+
+# This file is included multiple times, don't do anything weird