aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data/os
diff options
context:
space:
mode:
Diffstat (limited to 'src/build-data/os')
-rw-r--r--src/build-data/os/aix7
-rw-r--r--src/build-data/os/beos16
-rw-r--r--src/build-data/os/cygwin13
-rw-r--r--src/build-data/os/darwin26
-rw-r--r--src/build-data/os/defaults19
-rw-r--r--src/build-data/os/freebsd11
-rw-r--r--src/build-data/os/hpux13
-rw-r--r--src/build-data/os/irix7
-rw-r--r--src/build-data/os/linux12
-rw-r--r--src/build-data/os/mingw22
-rw-r--r--src/build-data/os/netbsd7
-rw-r--r--src/build-data/os/openbsd7
-rw-r--r--src/build-data/os/qnx7
-rw-r--r--src/build-data/os/solaris15
-rw-r--r--src/build-data/os/tru6411
-rw-r--r--src/build-data/os/windows26
16 files changed, 219 insertions, 0 deletions
diff --git a/src/build-data/os/aix b/src/build-data/os/aix
new file mode 100644
index 000000000..cec818580
--- /dev/null
+++ b/src/build-data/os/aix
@@ -0,0 +1,7 @@
+realname "AIX"
+
+os_type unix
+
+<supports_shared>
+all
+</supports_shared>
diff --git a/src/build-data/os/beos b/src/build-data/os/beos
new file mode 100644
index 000000000..2b12792bb
--- /dev/null
+++ b/src/build-data/os/beos
@@ -0,0 +1,16 @@
+realname "BeOS"
+
+os_type beos
+
+install_root /boot/beos
+header_dir ../develop/headers
+lib_dir system/lib
+doc_dir documentation
+
+<supports_shared>
+all
+</supports_shared>
+
+<aliases>
+haiku
+</aliases>
diff --git a/src/build-data/os/cygwin b/src/build-data/os/cygwin
new file mode 100644
index 000000000..c2aadea98
--- /dev/null
+++ b/src/build-data/os/cygwin
@@ -0,0 +1,13 @@
+realname "Cygwin"
+
+os_type unix
+
+install_root c:\Botan
+doc_dir docs
+
+# Cygwin supports shared libs fine, but there are problems with making a Botan
+# shared library when libraries it depends on are static-only (such as libz).
+# So until I can figure out a work-around, it's disabled.
+<supports_shared>
+#all
+</supports_shared>
diff --git a/src/build-data/os/darwin b/src/build-data/os/darwin
new file mode 100644
index 000000000..aa28dc59b
--- /dev/null
+++ b/src/build-data/os/darwin
@@ -0,0 +1,26 @@
+realname "Darwin / MacOS X"
+
+os_type unix
+
+so_suffix dylib
+
+# It doesn't have the 's' option; you need to use needs ranlib
+ar_command "ar cr"
+ar_needs_ranlib yes
+
+doc_dir doc
+
+<supports_shared>
+all
+</supports_shared>
+
+<arch>
+ia32
+amd64
+ppc
+ppc64 # g5!
+</arch>
+
+<aliases>
+macosx
+</aliases>
diff --git a/src/build-data/os/defaults b/src/build-data/os/defaults
new file mode 100644
index 000000000..88fd82252
--- /dev/null
+++ b/src/build-data/os/defaults
@@ -0,0 +1,19 @@
+# Defaults are for a Unix box, since that's what most of OS variants are. It
+# would be nice to have generic 'windows', 'beos', 'unix', etc targets to
+# handle defaults for those classes of OSes, though Unix is by far the most
+# varied/fragmented
+
+obj_suffix o
+so_suffix so
+static_suffix a
+
+ar_command "ar crs"
+ar_needs_ranlib no
+
+install_root /usr/local
+header_dir include
+lib_dir lib
+doc_dir share/doc
+
+install_cmd_data install -m 644
+install_cmd_exec install -m 755
diff --git a/src/build-data/os/freebsd b/src/build-data/os/freebsd
new file mode 100644
index 000000000..ea96b0c88
--- /dev/null
+++ b/src/build-data/os/freebsd
@@ -0,0 +1,11 @@
+realname "FreeBSD"
+
+os_type unix
+
+<target_features>
+posix_mlock
+</target_features>
+
+<supports_shared>
+all
+</supports_shared>
diff --git a/src/build-data/os/hpux b/src/build-data/os/hpux
new file mode 100644
index 000000000..6e17d3b73
--- /dev/null
+++ b/src/build-data/os/hpux
@@ -0,0 +1,13 @@
+realname "HP-UX"
+
+os_type unix
+
+so_suffix sl
+
+<supports_shared>
+all
+</supports_shared>
+
+<aliases>
+hp-ux
+</aliases>
diff --git a/src/build-data/os/irix b/src/build-data/os/irix
new file mode 100644
index 000000000..fd8b43287
--- /dev/null
+++ b/src/build-data/os/irix
@@ -0,0 +1,7 @@
+realname "IRIX"
+
+os_type unix
+
+<supports_shared>
+all
+</supports_shared>
diff --git a/src/build-data/os/linux b/src/build-data/os/linux
new file mode 100644
index 000000000..53528511a
--- /dev/null
+++ b/src/build-data/os/linux
@@ -0,0 +1,12 @@
+realname "Linux"
+
+os_type unix
+
+<target_features>
+posix_mlock
+</target_features>
+
+# Is this correct?
+<supports_shared>
+all
+</supports_shared>
diff --git a/src/build-data/os/mingw b/src/build-data/os/mingw
new file mode 100644
index 000000000..8c41fbc21
--- /dev/null
+++ b/src/build-data/os/mingw
@@ -0,0 +1,22 @@
+realname "MS Windows (MinGW)"
+os_type windows
+
+obj_suffix o
+so_suffix dll
+static_suffix a
+
+ar_command "ar crs"
+ar_needs_ranlib yes
+
+install_root /mingw
+header_dir include
+lib_dir lib
+doc_dir share/doc
+
+install_cmd_data install -m 644
+install_cmd_exec install -m 755
+
+<aliases>
+msys
+mingw32
+</aliases>
diff --git a/src/build-data/os/netbsd b/src/build-data/os/netbsd
new file mode 100644
index 000000000..435d8f5e8
--- /dev/null
+++ b/src/build-data/os/netbsd
@@ -0,0 +1,7 @@
+realname "NetBSD"
+
+os_type unix
+
+<supports_shared>
+all
+</supports_shared>
diff --git a/src/build-data/os/openbsd b/src/build-data/os/openbsd
new file mode 100644
index 000000000..cb44bd115
--- /dev/null
+++ b/src/build-data/os/openbsd
@@ -0,0 +1,7 @@
+realname "OpenBSD"
+
+os_type unix
+
+<supports_shared>
+all
+</supports_shared>
diff --git a/src/build-data/os/qnx b/src/build-data/os/qnx
new file mode 100644
index 000000000..28bc8dea9
--- /dev/null
+++ b/src/build-data/os/qnx
@@ -0,0 +1,7 @@
+realname "QNX"
+
+os_type unix
+
+<supports_shared>
+all
+</supports_shared>
diff --git a/src/build-data/os/solaris b/src/build-data/os/solaris
new file mode 100644
index 000000000..8610b4898
--- /dev/null
+++ b/src/build-data/os/solaris
@@ -0,0 +1,15 @@
+realname "Solaris"
+
+os_type unix
+
+<target_features>
+posix_mlock
+</target_features>
+
+<supports_shared>
+all
+</supports_shared>
+
+<aliases>
+sunos
+</aliases>
diff --git a/src/build-data/os/tru64 b/src/build-data/os/tru64
new file mode 100644
index 000000000..e320c1df4
--- /dev/null
+++ b/src/build-data/os/tru64
@@ -0,0 +1,11 @@
+realname "Tru64"
+
+os_type unix
+
+<supports_shared>
+all
+</supports_shared>
+
+<aliases>
+osf1
+</aliases>
diff --git a/src/build-data/os/windows b/src/build-data/os/windows
new file mode 100644
index 000000000..823c60d6c
--- /dev/null
+++ b/src/build-data/os/windows
@@ -0,0 +1,26 @@
+realname "MS Windows"
+
+os_type windows
+
+obj_suffix obj
+so_suffix dll
+static_suffix lib
+
+install_root c:\Botan
+doc_dir docs
+
+install_cmd_data copy
+install_cmd_exec copy
+
+<target_features>
+win32_virtual_lock
+</target_features>
+
+<supports_shared>
+msvc
+</supports_shared>
+
+<aliases>
+win32
+MSWin32
+</aliases>