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

Annotation of /trunk/xvidcore/build/generic/Makefile.linuxppc_altivec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 71 - (view) (download)

1 : canard 71 #/**************************************************************************
2 :     # *
3 :     # * Linux PPC makefile
4 :     # *
5 :     # * Adapted from linux x86 Makefile by Guillaume Morin <guillaume@morinfr.org>
6 :     # *
7 :     # * libso:
8 :     # * (-lm not neccessary if using -ffast-math)
9 :     # *
10 :     # *************************************************************************/
11 :    
12 :    
13 :     include Makefile.inc
14 :    
15 :     CC = gcc
16 :    
17 :     CFLAGS = -DLINUX -DARCH_PPC -DARCH_IS_BIG_ENDIAN -DARCH_PPC_ALTIVEC
18 :     LIBDIR = /usr/local/lib
19 :    
20 :     CFLAGS += -Wall -O3 -funroll-loops -ffast-math
21 :     CFLAGS += -fstrict-aliasing -fomit-frame-pointer
22 :    
23 :     AS = as
24 :    
25 :     %.o: %.s
26 :     $(AS) $< -o $@
27 :    
28 :     RM = rm -rf
29 :    
30 :     all: $(LIB) $(LIBSO)
31 :    
32 :     $(LIB): $(SRC:.c=.o) $(SRC_ALTIVEC:.s=.o)
33 :     @echo
34 :     @echo WARNING: Because of memory alignment problems, Altivec does not work yet
35 :     @echo -
36 :     ar rcs $@ $^
37 :    
38 :    
39 :     $(LIBSO): $(SRC:.c=.o) $(SRC_ALTIVEC:.s=.o)
40 :     @echo
41 :     @echo WARNING: Because of memory alignment problems, Altivec does not work yet
42 :     @echo
43 :     $(CC) $(CFLAGS) $^ -shared -lc -lm -o $@
44 :    
45 :     clean:
46 :     $(RM) `find $(SRCDIR) -name "*.o"`
47 :    
48 :     remove-all:
49 :     $(RM) $(DIRS)
50 :     $(RM) $(DIRS_PPC)
51 :     $(RM) $(LIB)
52 :     $(RM) $(LIBSO)
53 :    
54 :    
55 :     install: libxvidcore.so
56 :     cp libxvidcore.so $(LIBDIR) # you have to be root for this
57 :     /sbin/ldconfig
58 :    
59 :     install-test: libxvidcore.so # if you don't want to overwrite previous compile
60 :     cp libxvidcore.so $(LIBDIR)/libtestcore.so
61 :     /sbin/ldconfig

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