[x264-devel] compile x264 on AMD64
Gert Vervoort
gert.vervoort at hccnet.nl
Sun Oct 31 17:47:40 CET 2004
The following patch adds AMD64 support to the Makefile, it enables
compiling x264 as a 64 bit application:
--- x264/Makefile.orig 2004-10-31 17:32:41.823381152 +0100
+++ x264/Makefile 2004-10-31 17:40:50.309120032 +0100
@@ -5,6 +5,9 @@
# Uncomment this for Mac OS X
#SYS_MACOSX=1
+# Uncomment this for x86_64
+#SYS_x86_64=1
+
SRCS_COMMON= core/mc.c core/predict.c core/pixel.c core/macroblock.c \
core/frame.c core/dct.c core/cpu.c core/cabac.c \
core/common.c core/mdate.c core/csp.c \
@@ -16,11 +19,16 @@
PFLAGS=-DARCH_PPC -DSYS_MACOSX -faltivec
SRCS= $(SRCS_COMMON) core/ppc/mc.c core/ppc/pixel.c
else
+ifdef SYS_x86_64
+PFLAGS=-DHAVE_MALLOC_H
+SRCS= $(SRCS_COMMON)
+else
PFLAGS=-DARCH_X86 -DHAVE_MMXEXT -DHAVE_SSE2 -DHAVE_MALLOC_H
SRCS= $(SRCS_COMMON) core/i386/mc-c.c core/i386/dct-c.c core/i386/predict.c
ASMSRC= core/i386/dct.asm core/i386/cpu.asm core/i386/pixel.asm
core/i386/mc.asm
OBJASM= $(ASMSRC:%.asm=%.o)
endif
+endif
CC=gcc
CFLAGS=-g -Wall -I. -DDEBUG -O4 -funroll-loops -D__X264__ $(PFLAGS)
Gert
--
This is the x264-devel mailing-list
To unsubscribe, go to: http://developers.videolan.org/lists.html
More information about the x264-devel
mailing list