mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 14:52:00 +00:00
* NetBSD support patch from optical (alex@rigbo.se)
This commit is contained in:
parent
7607d1083b
commit
db5faeaeaa
2 changed files with 68 additions and 0 deletions
|
@ -192,6 +192,32 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
|
||||
#endif
|
||||
|
||||
//================================================================ NetBSD ===
|
||||
|
||||
// This is very much like the FreeBSD one and can probably be merged
|
||||
#ifdef __NetBSD__
|
||||
|
||||
#include <machine/endian.h>
|
||||
|
||||
#define OS_STRING "netbsd"
|
||||
#define ID_INLINE inline
|
||||
#define PATH_SEP '/'
|
||||
|
||||
#ifdef __i386__
|
||||
#define ARCH_STRING "i386"
|
||||
// Netbsd has alot of platforms
|
||||
#endif
|
||||
|
||||
#if BYTE_ORDER == BIG_ENDIAN
|
||||
#define Q3_BIG_ENDIAN
|
||||
#else
|
||||
#define Q3_LITTLE_ENDIAN
|
||||
#endif
|
||||
|
||||
#define DLL_EXT ".so"
|
||||
|
||||
#endif
|
||||
|
||||
//================================================================= SUNOS ===
|
||||
|
||||
#ifdef __sun
|
||||
|
|
|
@ -472,6 +472,47 @@ ifeq ($(PLATFORM),freebsd)
|
|||
|
||||
else # ifeq freebsd
|
||||
|
||||
#############################################################################
|
||||
# SETUP AND BUILD -- NETBSD
|
||||
#############################################################################
|
||||
|
||||
ifeq ($(PLATFORM),netbsd)
|
||||
|
||||
ifeq ($(shell uname -m),i386)
|
||||
ARCH=i386
|
||||
endif
|
||||
|
||||
CC=gcc
|
||||
LDFLAGS=-lm
|
||||
SHLIBEXT=so
|
||||
SHLIBCFLAGS=-fPIC
|
||||
SHLIBLDFLAGS=-shared $(LDFLAGS)
|
||||
THREAD_LDFLAGS=-lpthread
|
||||
|
||||
BASE_CFLAGS = -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes
|
||||
DEBUG_CFLAGS=$(BASE_CFLAGS) -g
|
||||
|
||||
ifneq ($(ARCH),i386)
|
||||
BASE_CFLAGS += -DNO_VM_COMPILED
|
||||
endif
|
||||
|
||||
ifeq ($(ARCH),i386)
|
||||
TARGETS=\
|
||||
$(B)/baseq3/cgame$(ARCH).$(SHLIBEXT) \
|
||||
$(B)/baseq3/qagame$(ARCH).$(SHLIBEXT) \
|
||||
$(B)/baseq3/ui$(ARCH).$(SHLIBEXT) \
|
||||
$(B)/missionpack/cgame$(ARCH).$(SHLIBEXT) \
|
||||
$(B)/missionpack/qagame$(ARCH).$(SHLIBEXT) \
|
||||
$(B)/missionpack/ui$(ARCH).$(SHLIBEXT) \
|
||||
$(B)/$(PLATFORM)q3ded
|
||||
else
|
||||
TARGETS=\
|
||||
$(B)/$(PLATFORM)q3ded
|
||||
|
||||
endif
|
||||
|
||||
else # ifeq netbsd
|
||||
|
||||
#############################################################################
|
||||
# SETUP AND BUILD -- IRIX
|
||||
#############################################################################
|
||||
|
@ -630,6 +671,7 @@ endif #Linux
|
|||
endif #darwin
|
||||
endif #mingw32
|
||||
endif #FreeBSD
|
||||
endif #NetBSD
|
||||
endif #IRIX
|
||||
endif #SunOS
|
||||
|
||||
|
|
Loading…
Reference in a new issue