]> git.sesse.net Git - x264/blob - Jamfile
* all: re-import of the CVS.
[x264] / Jamfile
1 # $Id: Jamfile,v 1.1 2004/06/03 19:27:06 fenrir Exp $
2 #
3
4 # Compilers
5 CC = gcc ;
6 AS = nasm ;
7
8 # Flags
9 # To profile: -fprofile-arcs
10 # Once done : -fbranch-probabilities
11 CCFLAGS = -g -Wall -W ;
12
13 # Globals defines
14 DEFINES = DEBUG __X264__ ;
15
16 # Optims
17 OPTIM = -O3 -funroll-loops ;
18
19 # Headers rep
20 HDRS = . core core/i366 decoder encoder ;
21
22 SOURCES_C = core/mc.c core/predict.c core/pixel.c core/macroblock.c
23             core/frame.c core/dct.c core/cpu.c core/cabac.c
24             core/common.c core/mdate.c core/csp.c
25             encoder/analyse.c encoder/me.c encoder/ratecontrol.c
26             encoder/set.c encoder/macroblock.c encoder/cabac.c encoder/cavlc.c
27             encoder/encoder.c ;
28
29 SOURCES_X86 = core/i386/cpu.asm ;
30 SOURCES_MMX = core/i386/mc-c.c core/i386/dct-c.c core/i386/predict.c core/i386/dct.asm core/i386/pixel.asm core/i386/mc.asm ;
31
32 SOURCES_ALTIVEC = core/ppc/mc.c core/ppc/pixel.c ;
33
34 # libx264
35 SOURCES_X264 = $(SOURCES_C) ;
36 if $(OS) = LINUX
37 {
38     DEFINES      += ARCH_X86 HAVE_MMXEXT HAVE_MALLOC_H ;
39     SOURCES_X264 += $(SOURCES_MMX) ;
40     SOURCES_X264 += $(SOURCES_X86) ;
41     ASFLAGS = -f elf ;
42
43     # Don't ask why
44     NOARUPDATE = false ;
45 }
46 if $(OS) = MACOSX
47 {
48     DEFINES      += HAVE_ALTIVEC ;
49     SOURCES_X264 += $(SOURCES_ALTIVEC) ;
50     CCFLAGS      += -faltivec ;
51 #    OPTIM        += -falign-loops=16 ;
52 }
53 Library libx264 : $(SOURCES_X264) ;
54
55 # x264
56 LINKLIBS += -lm ;
57 LinkLibraries x264 : libx264.a ;
58 Main x264 : x264.c ;
59
60 # checkasm
61 LinkLibraries checkasm : libx264.a ;
62 Main checkasm : testing/checkasm.c ;
63
64 # XXX Do not remove *.o files
65 actions quietly updated piecemeal together RmTemps
66 {
67 }