forked from bartvdbraak/blender
added support for linux on pa-risc
This commit is contained in:
parent
fa2d6c195e
commit
4a6d75af27
@ -349,7 +349,7 @@ ifeq ($(NAN_NO_OPENAL), true)
|
||||
NAN_SND_LIBS += $(SOUNDSYSTEM)
|
||||
else
|
||||
ifeq ($(OS),$(findstring $(OS), "freebsd linux windows"))
|
||||
ifeq ($(CPU),$(findstring $(CPU), "i386 powerpc x86_64"))
|
||||
ifeq ($(CPU),$(findstring $(CPU), "i386 powerpc x86_64 parisc64"))
|
||||
NAN_SND_LIBS = $(SOUNDSYSTEM)
|
||||
NAN_SND_LIBS += $(DUMMYSOUND)
|
||||
NAN_SND_LIBS += $(OPENALSOUND)
|
||||
|
@ -46,7 +46,7 @@
|
||||
#include "MEM_guardedalloc.h"
|
||||
#include "avirgb.h"
|
||||
|
||||
#if defined(__sgi) || defined (__sparc) || defined (__sparc__) || defined (__PPC__) || defined (__ppc__) || defined (__BIG_ENDIAN__)
|
||||
#if defined(__sgi) || defined (__sparc) || defined (__sparc__) || defined (__PPC__) || defined (__ppc__) || defined (__hppa__) || defined (__BIG_ENDIAN__)
|
||||
#define WORDS_BIGENDIAN
|
||||
#endif
|
||||
|
||||
|
@ -46,7 +46,7 @@
|
||||
#include "endian.h"
|
||||
#include "avi_intern.h"
|
||||
|
||||
#if defined(__sgi) || defined (__sparc) || defined (__sparc__) || defined (__PPC__) || defined (__ppc__) || defined (__BIG_ENDIAN__)
|
||||
#if defined(__sgi) || defined (__sparc) || defined (__sparc__) || defined (__PPC__) || defined (__ppc__) || defined (__hppa__) || defined (__BIG_ENDIAN__)
|
||||
#define WORDS_BIGENDIAN
|
||||
#endif
|
||||
|
||||
|
@ -136,7 +136,7 @@
|
||||
#endif
|
||||
|
||||
/* INTEGER CODES */
|
||||
#if defined(__sgi) || defined (__sparc) || defined (__sparc__) || defined (__PPC__) || defined (__ppc__) || defined (__BIG_ENDIAN__)
|
||||
#if defined(__sgi) || defined (__sparc) || defined (__sparc__) || defined (__PPC__) || defined (__ppc__) || defined (__hppa__) || defined (__BIG_ENDIAN__)
|
||||
/* Big Endian */
|
||||
#define MAKE_ID(a,b,c,d) ( (int)(a)<<24 | (int)(b)<<16 | (c)<<8 | (d) )
|
||||
#else
|
||||
|
@ -99,7 +99,7 @@
|
||||
#define SWAP_S(x) (((x << 8) & 0xff00) | ((x >> 8) & 0xff))
|
||||
|
||||
/* more endianness... should move to a separate file... */
|
||||
#if defined(__sgi) || defined (__sparc) || (__sparc__) || defined (__PPC__) || defined (__ppc__) || defined (__BIG_ENDIAN__)
|
||||
#if defined(__sgi) || defined (__sparc) || (__sparc__) || defined (__PPC__) || defined (__ppc__) || defined (__hppa__) || defined (__BIG_ENDIAN__)
|
||||
#define GET_ID GET_BIG_LONG
|
||||
#define LITTLE_LONG SWAP_LONG
|
||||
#else
|
||||
|
@ -55,7 +55,7 @@
|
||||
#define SWAP_S(x) (((x << 8) & 0xff00) | ((x >> 8) & 0xff))
|
||||
|
||||
/* more endianness... should move to a separate file... */
|
||||
#if defined(__sgi) || defined (__sparc) || defined (__sparc__) || defined (__PPC__) || defined (__ppc__) || defined (__BIG_ENDIAN__)
|
||||
#if defined(__sgi) || defined (__sparc) || defined (__sparc__) || defined (__PPC__) || defined (__ppc__) || defined (__hppa__) || defined (__BIG_ENDIAN__)
|
||||
#define GET_ID GET_BIG_LONG
|
||||
#define LITTLE_LONG SWAP_LONG
|
||||
#else
|
||||
|
@ -56,7 +56,7 @@
|
||||
#define SWAP_S(x) (((x << 8) & 0xff00) | ((x >> 8) & 0xff))
|
||||
|
||||
/* more endianness... should move to a separate file... */
|
||||
#if defined(__sgi) || defined (__sparc) || defined (__sparc__) || defined (__PPC__) || defined (__ppc__) || defined (__BIG_ENDIAN__)
|
||||
#if defined(__sgi) || defined (__sparc) || defined (__sparc__) || defined (__PPC__) || defined (__ppc__) || defined (__hppa__) || defined (__BIG_ENDIAN__)
|
||||
#define GET_ID GET_BIG_LONG
|
||||
#define LITTLE_LONG SWAP_LONG
|
||||
#else
|
||||
|
@ -63,7 +63,7 @@
|
||||
|
||||
#define ENDIAN_NOP(x) (x)
|
||||
|
||||
#if defined(__sgi) || defined(__sparc) || defined(__sparc__) || defined (__PPC__) || (defined (__APPLE__) && !defined(__LITTLE_ENDIAN__))
|
||||
#if defined(__sgi) || defined(__sparc) || defined(__sparc__) || defined (__PPC__) || defined (__hppa__) || (defined (__APPLE__) && !defined(__LITTLE_ENDIAN__))
|
||||
#define LITTLE_SHORT SWAP_SHORT
|
||||
#define LITTLE_LONG SWAP_LONG
|
||||
#define BIG_SHORT ENDIAN_NOP
|
||||
|
@ -53,7 +53,7 @@ typedef unsigned char uchar;
|
||||
|
||||
/* Endianness: flip the byte order. It's strange that this is needed..
|
||||
* After all, there is an internal endian.{c,h}... */
|
||||
#if defined(__sgi) || defined (__sparc) || defined(__sparc__) || defined (__PPC__) || defined (__ppc__) || defined (__BIG_ENDIAN__)
|
||||
#if defined(__sgi) || defined (__sparc) || defined(__sparc__) || defined (__PPC__) || defined (__ppc__) || defined (__hppa__) || defined (__BIG_ENDIAN__)
|
||||
#define MAKE_ID(a,b,c,d) ( (int)(a)<<24 | (int)(b)<<16 | (c)<<8 | (d) )
|
||||
#else
|
||||
#define MAKE_ID(a,b,c,d) ( (int)(d)<<24 | (int)(c)<<16 | (b)<<8 | (a) )
|
||||
|
@ -76,7 +76,7 @@
|
||||
#define SWAP_S(x) (((x << 8) & 0xff00) | ((x >> 8) & 0xff))
|
||||
|
||||
/* more endianness... should move to a separate file... */
|
||||
#if defined(__sgi) || defined (__sparc) || defined (__sparc__) || defined (__PPC__) || defined (__ppc__) || defined (__BIG_ENDIAN__)
|
||||
#if defined(__sgi) || defined (__sparc) || defined (__sparc__) || defined (__PPC__) || defined (__ppc__) || defined(__hppa__) || defined (__BIG_ENDIAN__)
|
||||
#define GET_ID GET_BIG_LONG
|
||||
#define LITTLE_LONG SWAP_LONG
|
||||
#else
|
||||
|
@ -73,7 +73,7 @@
|
||||
#define RET_YES (1 == 1)
|
||||
#define RET_NO (1 == 0)
|
||||
|
||||
#if defined(__sgi) || defined(__sparc) || defined(__sparc__) || defined (__PPC__) || defined (__ppc__) || defined (__BIG_ENDIAN__)
|
||||
#if defined(__sgi) || defined(__sparc) || defined(__sparc__) || defined (__PPC__) || defined (__ppc__) || defined (__hppa__) || defined (__BIG_ENDIAN__)
|
||||
/* big endian */
|
||||
#define MAKE_ID2(c, d) ( (c)<<8 | (d) )
|
||||
#define MOST_SIG_BYTE 0
|
||||
|
@ -140,7 +140,7 @@ typedef struct PreviewImage {
|
||||
*
|
||||
**/
|
||||
|
||||
#if defined(__sgi) || defined(__sparc) || defined(__sparc__) || defined (__PPC__) || defined (__ppc__) || defined (__BIG_ENDIAN__)
|
||||
#if defined(__sgi) || defined(__sparc) || defined(__sparc__) || defined (__PPC__) || defined (__ppc__) || defined (__hppa__) || defined (__BIG_ENDIAN__)
|
||||
/* big endian */
|
||||
#define MAKE_ID2(c, d) ( (c)<<8 | (d) )
|
||||
#define MOST_SIG_BYTE 0
|
||||
|
@ -55,7 +55,7 @@
|
||||
|
||||
/* XXX, could be better implemented... this is for endian issues
|
||||
*/
|
||||
#if defined(__sgi) || defined(__sparc) || defined(__sparc__) || defined (__PPC__) || defined (__ppc__) || defined (__BIG_ENDIAN__)
|
||||
#if defined(__sgi) || defined(__sparc) || defined(__sparc__) || defined (__PPC__) || defined (__ppc__) || defined (__hppa__) || defined (__BIG_ENDIAN__)
|
||||
#define RCOMP 3
|
||||
#define GCOMP 2
|
||||
#define BCOMP 1
|
||||
|
@ -90,7 +90,7 @@ ifeq ($(OS),linux)
|
||||
LLIBS += -lc -lm -ldl -lutil
|
||||
LOPTS = -export-dynamic
|
||||
endif
|
||||
ifeq ($(CPU),$(findstring $(CPU), "i386 x86_64 ia64"))
|
||||
ifeq ($(CPU),$(findstring $(CPU), "i386 x86_64 ia64 parisc64 powerpc sparc64"))
|
||||
COMMENT = "MESA 3.1"
|
||||
LLIBS = -L$(NAN_MESA)/lib -L/usr/X11R6/lib -lXmu -lXext -lX11 -lXi
|
||||
LLIBS += -lutil -lc -lm -ldl -lpthread
|
||||
@ -99,13 +99,6 @@ ifeq ($(OS),linux)
|
||||
DADD = -lGL -lGLU
|
||||
SADD = $(NAN_MESA)/lib/libGL.a $(NAN_MESA)/lib/libGLU.a
|
||||
DYNLDFLAGS = -shared $(LDFLAGS)
|
||||
endif
|
||||
ifeq ($(CPU),$(findstring $(CPU), "powerpc sparc64"))
|
||||
LLIBS = -L/usr/X11R6/lib/ -lXmu -lXext -lX11 -lc -ldl -lm -lutil
|
||||
DADD = -lGL -lGLU
|
||||
SADD = /usr/lib/libGL.a /usr/lib/libGLU.a
|
||||
LOPTS = -export-dynamic
|
||||
DYNLDFLAGS = -shared $(LDFLAGS)
|
||||
endif
|
||||
LLIBS += -lz
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user