[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 52 - (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 :     # * Still incomplete but WIP
8 : canard 44 # *
9 :     # * libso:
10 :     # * (-lm not neccessary if using -ffast-math)
11 :     # *
12 :     # *************************************************************************/
13 :    
14 :    
15 :     include Makefile.inc
16 :    
17 :     CC = gcc
18 :    
19 :     CFLAGS = -DLINUX -DARCH_PPC -DARCH_IS_BIG_ENDIAN
20 :     LIBDIR = /usr/local/lib
21 :    
22 : canard 52 CFLAGS += -Wall -O3 -funroll-loops -ffast-math
23 :     CFLAGS += -fstrict-aliasing -fomit-frame-pointer
24 : canard 44
25 :     AS = as
26 :    
27 : canard 52 %.o: %.s
28 :     $(AS) $< -o $@
29 : canard 44
30 :     RM = rm -rf
31 :    
32 :     all: $(LIB) $(LIBSO)
33 :    
34 :    
35 : canard 52 $(LIB): $(SRC:.c=.o) $(SRC_PPC:.s=.o)
36 : canard 44 ar rcs $@ $^
37 :    
38 :    
39 : canard 52 $(LIBSO): $(SRC:.c=.o) $(SRC_PPC:.s=.o)
40 : canard 44 $(CC) $(CFLAGS) $^ -shared -lc -lm -o $@
41 :    
42 :    
43 :     clean:
44 :     $(RM) `find $(SRCDIR) -name "*.o"`
45 :    
46 :     remove-all:
47 :     $(RM) $(DIRS)
48 : canard 52 $(RM) $(DIRS_PPC)
49 : canard 44 $(RM) $(LIB)
50 :     $(RM) $(LIBSO)
51 :    
52 :    
53 :     install: libxvidcore.so
54 : canard 52 cp libxvidcore.so $(LIBDIR) # you have to be root for this
55 : canard 44 /sbin/ldconfig
56 :    
57 :     install-test: libxvidcore.so # if you don't want to overwrite previous compile
58 :     cp libxvidcore.so $(LIBDIR)/libtestcore.so
59 :     /sbin/ldconfig

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