aboutsummaryrefslogtreecommitdiffstats
path: root/config-x86.mk
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2024-10-14 18:23:30 +0200
committerMattias Andrée <m@maandree.se>2024-10-14 18:23:30 +0200
commite605868a9c9924e3d68ef0b04b247c297e58bb05 (patch)
treec32b7ef67ec150a74efb562ce442f90d5c2a191b /config-x86.mk
parentFix whitespace (diff)
downloadlibsha1-e605868a9c9924e3d68ef0b04b247c297e58bb05.tar.gz
libsha1-e605868a9c9924e3d68ef0b04b247c297e58bb05.tar.bz2
libsha1-e605868a9c9924e3d68ef0b04b247c297e58bb05.tar.xz
Rename config.mk to config-x86.mk and add config-portable.mk
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'config-x86.mk')
-rw-r--r--config-x86.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/config-x86.mk b/config-x86.mk
new file mode 100644
index 0000000..a79e63f
--- /dev/null
+++ b/config-x86.mk
@@ -0,0 +1,14 @@
+PREFIX = /usr
+MANPREFIX = $(PREFIX)/share/man
+
+CC = cc -std=c11
+
+CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700
+CFLAGS = -Wall -O3 -msse4 -msha
+LDFLAGS = -s
+
+# You can add -DALLOCA_LIMIT=# to CPPFLAGS, where # is a size_t
+# value, to put a limit on how large allocation the library is
+# allowed to make with alloca(3). For buffers that can have any
+# size this limit will be used if it wants to allocate a larger
+# buffer. Choose 0 to use malloc(3) instead of alloca(3).