[svn] / trunk / xvidcore / build / generic / Makefile.linux Repository:
ViewVC logotype

Diff of /trunk/xvidcore/build/generic/Makefile.linux

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 266, Sun Jul 7 11:21:20 2002 UTC revision 508, Sun Sep 22 10:27:52 2002 UTC
# Line 4  Line 4 
4  #  #
5  # Edit this file to enable/disable optimizations  # Edit this file to enable/disable optimizations
6  #  #
7  # $Id: Makefile.linux,v 1.4 2002-07-07 11:21:20 chl Exp $  # $Id: Makefile.linux,v 1.9 2002-09-22 10:27:52 edgomez Exp $
8  #  #
9  #############################################################################  #############################################################################
10    
# Line 36  Line 36 
36  CFLAGS += -DARCH_X86  CFLAGS += -DARCH_X86
37  CFLAGS += -DLINUX  CFLAGS += -DLINUX
38    
 # Enable multithreaded ME (experimental), other routines to follow  
 # CFLAGS += -D_SMP  
   
39  # Enable some experimental/debugging code  # Enable some experimental/debugging code
40  #   (Use only if you know what you're doing !)  #   (Use only if you know what you're doing !)
41      # PSNR during encoding      # PSNR during encoding
42  # CFLAGS += -D_DEBUG_PSNR  # CFLAGS += -D_DEBUG_PSNR
43      # BFRAMES encoding  
44  # CFLAGS += -DBFRAMES  # Enable BFrame decoding (still beta)
45      # BFRAMES decoding  # CFLAGS += -DBRAMES_DEC
 # CFLAGS += -DBFRAMES_DEC  
46    
47  LIBDIR = /usr/local/lib  LIBDIR = /usr/local/lib
48    
# Line 65  Line 61 
61        # To detect non ANSI C code (xvid is not ANSI C (yet?))        # To detect non ANSI C code (xvid is not ANSI C (yet?))
62    # CFLAGS += -pedantic    # CFLAGS += -pedantic
63    
64    
65    # General Optimization options    # General Optimization options
66        # Optimize code for size (implies -O2)        # Optimize code for size (implies -O2)
67    CFLAGS += -Os    CFLAGS += -Os
# Line 80  Line 77 
77        # Generates Position Independant Code depending on your nasm version,        # Generates Position Independant Code depending on your nasm version,
78        # this could generate shared libraries that segfault because of a nasm        # this could generate shared libraries that segfault because of a nasm
79        # bug        # bug
80    # CFLAGS += -fPIC    CFLAGS += -fPIC
81    
82      # Debugging and Profiling options
83         # Writes debugging symbols in object files
84      # CFLAGS += -g
85         # Includes profiling code in generated code, don't forget to disable
86         # -fomit-frame-pointer as these 2 options are exclusive.
87      # CFLAGS += -pg
88         # Precise profiling + test coverage (-pg must be activated)
89         # Build the library twice and execute a program using the lib twice too
90           # First pass : Will create sourcefile.da files to keep branch statistics
91      # CFLAGS += -fprofile-arcs
92           # Second pass : Will create .bb and .bbg files suitable for coverage and
93           #               branch probabilities during compilation
94      # CFLAGS += -fprofile-arcs -fbranch-probabilities -ftest-coverage
95    
96    
97    # Architecture options : Valid for every gcc version    # Architecture options : Valid for every gcc version
# Line 90  Line 101 
101    # CFLAGS += -march=i486 -mcpu=i486    # CFLAGS += -march=i486 -mcpu=i486
102    # CFLAGS += -march=i586 -mcpu=i586    # CFLAGS += -march=i586 -mcpu=i586
103    # CFLAGS += -march=i686 -mcpu=i686    # CFLAGS += -march=i686 -mcpu=i686
104      # CFLAGS += -march=pentium -mcpu=pentium
105      # CFLAGS += -march=pentiumpro -mcpu=pentiumpro
106    
107    # Architecture options : Valid for every gcc >= 3.1    # Architecture options : Valid for every gcc >= 3.1
108    # Uncomment the one which you want to compile for    # Uncomment the one which you want to compile for
# Line 105  Line 118 
118    # CFLAGS += -march=athlon-xp -mcpu=athlon-xp    # CFLAGS += -march=athlon-xp -mcpu=athlon-xp
119    # CFLAGS += -march=athlon-mp -mcpu=athlon-mp    # CFLAGS += -march=athlon-mp -mcpu=athlon-mp
120    
121    # Architecture specific optimization for every gcc    # x86 specific optimization for every gcc
122        # Aligns the stack to 2^4=16bytes boundaries in each function        # Aligns the stack to 2^4=16bytes boundaries in each function
123        # Local variables should be aligned and make the code faster        # Local variables should be aligned and make the code faster
124        # some gcc versions (3.0.4) have problems with this option        # some gcc versions (3.0.4) have problems with this option

Legend:
Removed from v.266  
changed lines
  Added in v.508

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4