4 |
# |
# |
5 |
# Edit this file to enable/disable optimizations |
# Edit this file to enable/disable optimizations |
6 |
# |
# |
7 |
# $Id: Makefile.linux,v 1.2 2002-06-09 12:18:23 edgomez Exp $ |
# $Id: Makefile.linux,v 1.6.2.1 2002-09-04 18:58:27 chl Exp $ |
8 |
# |
# |
9 |
############################################################################# |
############################################################################# |
10 |
|
|
36 |
CFLAGS += -DARCH_X86 |
CFLAGS += -DARCH_X86 |
37 |
CFLAGS += -DLINUX |
CFLAGS += -DLINUX |
38 |
|
|
39 |
|
# Enable multithreaded ME (experimental), other routines to follow |
40 |
|
# CFLAGS += -D_SMP |
41 |
|
|
42 |
# Enable some experimental/debugging code |
# Enable some experimental/debugging code |
43 |
# (Use only if you know what you're doing !) |
# (Use only if you know what you're doing !) |
44 |
# CFLAGS += -D_DEBUG |
# PSNR during encoding |
45 |
|
# CFLAGS += -D_DEBUG_PSNR |
46 |
|
# BFRAMES encoding |
47 |
# CFLAGS += -DBFRAMES |
# CFLAGS += -DBFRAMES |
48 |
|
# BFRAMES decoding |
49 |
|
# CFLAGS += -DBFRAMES_DEC |
50 |
|
|
51 |
LIBDIR = /usr/local/lib |
LIBDIR = /usr/local/lib |
52 |
|
|
65 |
# To detect non ANSI C code (xvid is not ANSI C (yet?)) |
# To detect non ANSI C code (xvid is not ANSI C (yet?)) |
66 |
# CFLAGS += -pedantic |
# CFLAGS += -pedantic |
67 |
|
|
68 |
|
|
69 |
# General Optimization options |
# General Optimization options |
70 |
# Optimize code for size (implies -O2) |
# Optimize code for size (implies -O2) |
71 |
CFLAGS += -Os |
CFLAGS += -Os |
81 |
# Generates Position Independant Code depending on your nasm version, |
# Generates Position Independant Code depending on your nasm version, |
82 |
# this could generate shared libraries that segfault because of a nasm |
# this could generate shared libraries that segfault because of a nasm |
83 |
# bug |
# bug |
84 |
# CFLAGS += -fPIC |
CFLAGS += -fPIC |
85 |
|
|
86 |
|
# Debugging and Profiling options |
87 |
|
# Writes debugging symbols in object files |
88 |
|
# CFLAGS += -g |
89 |
|
# Includes profiling code in generated code, don't forget to disable |
90 |
|
# -fomit-frame-pointer as these 2 options are exclusive. |
91 |
|
# CFLAGS += -p |
92 |
|
|
93 |
|
|
94 |
# Architecture options : Valid for every gcc version |
# Architecture options : Valid for every gcc version |
98 |
# CFLAGS += -march=i486 -mcpu=i486 |
# CFLAGS += -march=i486 -mcpu=i486 |
99 |
# CFLAGS += -march=i586 -mcpu=i586 |
# CFLAGS += -march=i586 -mcpu=i586 |
100 |
# CFLAGS += -march=i686 -mcpu=i686 |
# CFLAGS += -march=i686 -mcpu=i686 |
101 |
|
# CFLAGS += -march=pentium -mcpu=pentium |
102 |
|
# CFLAGS += -march=pentiumpro -mcpu=pentiumpro |
103 |
|
|
104 |
# Architecture options : Valid for every gcc >= 3.1 |
# Architecture options : Valid for every gcc >= 3.1 |
105 |
# Uncomment the one which you want to compile for |
# Uncomment the one which you want to compile for |
115 |
# CFLAGS += -march=athlon-xp -mcpu=athlon-xp |
# CFLAGS += -march=athlon-xp -mcpu=athlon-xp |
116 |
# CFLAGS += -march=athlon-mp -mcpu=athlon-mp |
# CFLAGS += -march=athlon-mp -mcpu=athlon-mp |
117 |
|
|
118 |
# Architecture specific optimization for every gcc |
# x86 specific optimization for every gcc |
119 |
# Aligns the stack to 2^4=16bytes boundaries in each function |
# Aligns the stack to 2^4=16bytes boundaries in each function |
120 |
# Local variables should be aligned and make the code faster |
# Local variables should be aligned and make the code faster |
121 |
# some gcc versions (3.0.4) have problems with this option |
# some gcc versions (3.0.4) have problems with this option |
162 |
|
|
163 |
install: libxvidcore.so |
install: libxvidcore.so |
164 |
cp libxvidcore.so $(LIBDIR) # you have to bee root for this |
cp libxvidcore.so $(LIBDIR) # you have to bee root for this |
165 |
|
cp $(SRCDIR)/xvid.h /usr/local/include |
166 |
/sbin/ldconfig |
/sbin/ldconfig |
167 |
|
|
168 |
install-test: libxvidcore.so # if you don't want to overwrite previous compile |
install-test: libxvidcore.so # if you don't want to overwrite previous compile |