]> Nishi Git Mirror - tewi.git/commitdiff
openbsd support
authorNishi <nishi@nishi.boats>
Fri, 4 Oct 2024 00:29:03 +0000 (00:29 +0000)
committerNishi <nishi@nishi.boats>
Fri, 4 Oct 2024 00:29:03 +0000 (00:29 +0000)
git-svn-id: file:///raid/svn-personal/tewi/trunk@252 8739d7e6-ffea-ec47-b151-bdff447c6205

Platform/openbsd.mk [new file with mode: 0644]
README
README.tmpl
Server/version.c

diff --git a/Platform/openbsd.mk b/Platform/openbsd.mk
new file mode 100644 (file)
index 0000000..2c32256
--- /dev/null
@@ -0,0 +1,9 @@
+# $Id$
+
+CC = cc
+AR = ar
+CFLAGS = -g -std=c99 -DPREFIX=\"$(PREFIX)\" -I $(PWD)/Common -I /usr/local/include -fPIC
+LDFLAGS = -Wl,-R/usr/local/lib/eopenssl33 -L/usr/local/lib/eopenssl33
+LIBS =
+EXEC =
+LIBSUF = .so
diff --git a/README b/README
index f2380f20a80b0498f2dcb41aaf3de126acb5722c..f58444fbd6a3ad0456861ee459cab1e38a7f61c9 100644 (file)
--- a/README
+++ b/README
@@ -42,6 +42,7 @@ Windows 9x               Working if I compile it using Borland C++ 5.x
 Windows NT 4.0/later     Working on NT 4.0 SP6a
 Linux                    Working on Debian GNU/Linux 12 (x86_64)
 NetBSD                   Working on NetBSD/amd64 10.0
+OpenBSD                  Working
 Haiku                    Working
 PlayStation Portable     Working, missing module support
                          TODO: Get multi-threading working (maybe)
index 601eac17597fb35fe567e298fd2675f864069557..ca7bf1f839a5475b5b442cbfc2d7843c49a9710c 100644 (file)
@@ -42,6 +42,7 @@ Windows 9x               Working if I compile it using Borland C++ 5.x
 Windows NT 4.0/later     Working on NT 4.0 SP6a
 Linux                    Working on Debian GNU/Linux 12 (x86_64)
 NetBSD                   Working on NetBSD/amd64 10.0
+OpenBSD                  Working
 Haiku                    Working
 PlayStation Portable     Working, missing module support
                          TODO: Get multi-threading working (maybe)
index 25abdd1ce7245906dcc8b2368cd40d05cb6e5fae..a6f4f0d7997eaa7d4bc6e39693b7216d2d580801 100644 (file)
@@ -11,6 +11,8 @@ const char* tw_platform =
     PLATFORM
 #elif defined(__NetBSD__)
     "NetBSD"
+#elif defined(__OpenBSD__)
+    "OpenBSD"
 #elif defined(__linux__)
     "Linux"
 #elif defined(__MINGW32__)