SOURCES_X264 = $(SOURCES_C) ;
if $(OSPLAT) = X86
{
- DEFINES += HAVE_MALLOC_H HAVE_MMXEXT HAVE_SSE2 ;
+ DEFINES += HAVE_MMXEXT HAVE_SSE2 ;
SOURCES_X264 += $(SOURCES_MMX) ;
SOURCES_X264 += $(SOURCES_X86) ;
ASFLAGS = -f elf ;
{
DEFINES += HAVE_STDINT_H ;
}
+ if $(OS) != FREEBSD
+ {
+ DEFINES += HAVE_MALLOC_H ;
+ }
# Don't ask
NOARUPDATE = false ;
# SRCS: core/ppc/mc.c core/ppc/pixel.c
# Defines: HAVE_PPC
# CFLAGS: -faltivec
+# For FreeBSD, remove -DHAVE_MALLOC_H and add -DSYS_FREEBSD
#
PFLAGS=-DARCH_X86 -DHAVE_MMXEXT -DHAVE_SSE2
CC=gcc
#ifdef SYS_MACOSX
#define exp2f(x) ( (float) exp2( (x) ) )
#endif
+#ifdef SYS_FREEBSD
+#define exp2f(x) powf( 2, (x) )
+#endif
typedef struct