From f05121df7c7271c06301a43a0e21f25d3113cce3 Mon Sep 17 00:00:00 2001 From: Nishi Date: Fri, 4 Oct 2024 00:29:03 +0000 Subject: [PATCH] openbsd support git-svn-id: file:///raid/svn-personal/tewi/trunk@252 8739d7e6-ffea-ec47-b151-bdff447c6205 --- Platform/openbsd.mk | 9 +++++++++ README | 1 + README.tmpl | 1 + Server/version.c | 2 ++ 4 files changed, 13 insertions(+) create mode 100644 Platform/openbsd.mk diff --git a/Platform/openbsd.mk b/Platform/openbsd.mk new file mode 100644 index 0000000..2c32256 --- /dev/null +++ b/Platform/openbsd.mk @@ -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 f2380f2..f58444f 100644 --- 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) diff --git a/README.tmpl b/README.tmpl index 601eac1..ca7bf1f 100644 --- a/README.tmpl +++ b/README.tmpl @@ -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) diff --git a/Server/version.c b/Server/version.c index 25abdd1..a6f4f0d 100644 --- a/Server/version.c +++ b/Server/version.c @@ -11,6 +11,8 @@ const char* tw_platform = PLATFORM #elif defined(__NetBSD__) "NetBSD" +#elif defined(__OpenBSD__) + "OpenBSD" #elif defined(__linux__) "Linux" #elif defined(__MINGW32__) -- 2.45.2