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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 71 - (view) (download)

1 : canard 44 #/**************************************************************************
2 :     # *
3 : canard 52 # * Linux PPC makefile
4 : canard 44 # *
5 : canard 52 # * Adapted from linux x86 Makefile by Guillaume Morin <guillaume@morinfr.org>
6 :     # *
7 : canard 44 # * 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
18 :     LIBDIR = /usr/local/lib
19 :    
20 : canard 52 CFLAGS += -Wall -O3 -funroll-loops -ffast-math
21 :     CFLAGS += -fstrict-aliasing -fomit-frame-pointer
22 : canard 44
23 :     AS = as
24 :    
25 : canard 52 %.o: %.s
26 :     $(AS) $< -o $@
27 : canard 44
28 :     RM = rm -rf
29 :    
30 :     all: $(LIB) $(LIBSO)
31 :    
32 : canard 52 $(LIB): $(SRC:.c=.o) $(SRC_PPC:.s=.o)
33 : canard 44 ar rcs $@ $^
34 :    
35 :    
36 : canard 52 $(LIBSO): $(SRC:.c=.o) $(SRC_PPC:.s=.o)
37 : canard 44 $(CC) $(CFLAGS) $^ -shared -lc -lm -o $@
38 :    
39 :     clean:
40 :     $(RM) `find $(SRCDIR) -name "*.o"`
41 :    
42 :     remove-all:
43 :     $(RM) $(DIRS)
44 : canard 52 $(RM) $(DIRS_PPC)
45 : canard 44 $(RM) $(LIB)
46 :     $(RM) $(LIBSO)
47 :    
48 :    
49 :     install: libxvidcore.so
50 : canard 52 cp libxvidcore.so $(LIBDIR) # you have to be root for this
51 : canard 44 /sbin/ldconfig
52 :    
53 :     install-test: libxvidcore.so # if you don't want to overwrite previous compile
54 :     cp libxvidcore.so $(LIBDIR)/libtestcore.so
55 :     /sbin/ldconfig

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