[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 44 - (view) (download)

1 : canard 44 #/**************************************************************************
2 :     # *
3 :     # * linux makefile
4 :     # *
5 :     # * nasm args:
6 :     # * -f fmt elf (linux), coff (djgpp)
7 :     # * -DPREFIX add '_' prefix to symbol names
8 :     # *
9 :     # * libso:
10 :     # * (-lm not neccessary if using -ffast-math)
11 :     # *
12 :     # *************************************************************************/
13 :    
14 :    
15 :     #
16 :     # Adapted from linux x86 Makefile by Guillaume Morin <guillaume@morinfr.org>
17 :     #
18 :     # This needs lots of work but that is a good beginning :-)
19 :    
20 :     include Makefile.inc
21 :    
22 :     CC = gcc
23 :     #CC=icc
24 :     #CC = /opt/experimental/bin/gcc # that's where SuSE installs gcc3
25 :    
26 :     CFLAGS = -DLINUX -DARCH_PPC -DARCH_IS_BIG_ENDIAN
27 :     LIBDIR = /usr/local/lib
28 :    
29 :     # CFLAGS += -funroll-loops -ffast-math -fstrict-aliasing -fomit-frame-pointer
30 :     # CFLAGS += -fPIC
31 :     # CFLAGS += -m486
32 :     # CFLAGS += -march=pentium -mcpu=pentium
33 :     # CFLAGS += -march=pentiumpro -mcpu=pentiumpro
34 :    
35 :     CFLAGS += -Wall -O3 -funroll-loops -ffast-math
36 :     CFLAGS += -fstrict-aliasing -fomit-frame-pointer
37 :    
38 :     AS = as
39 :     AFLAGS = -f elf
40 :    
41 :     %.o: %.asm
42 :     $(AS) $(AFLAGS) $< -o $@
43 :    
44 :     RM = rm -rf
45 :    
46 :    
47 :     all: $(LIB) $(LIBSO)
48 :    
49 :    
50 :     $(LIB): $(SRC:.c=.o) $(SRC_INTEL:.asm=.o)
51 :     ar rcs $@ $^
52 :    
53 :    
54 :     $(LIBSO): $(SRC:.c=.o) $(SRC_INTEL:.asm=.o)
55 :     $(CC) $(CFLAGS) $^ -shared -lc -lm -o $@
56 :    
57 :    
58 :     clean:
59 :     $(RM) `find $(SRCDIR) -name "*.o"`
60 :    
61 :     remove-all:
62 :     $(RM) $(DIRS)
63 :     $(RM) $(DIRS_INTEL)
64 :     $(RM) $(LIB)
65 :     $(RM) $(LIBSO)
66 :    
67 :    
68 :     install: libxvidcore.so
69 :     cp libxvidcore.so $(LIBDIR) # you have to bee root for this
70 :     /sbin/ldconfig
71 :    
72 :     install-test: libxvidcore.so # if you don't want to overwrite previous compile
73 :     cp libxvidcore.so $(LIBDIR)/libtestcore.so
74 :     /sbin/ldconfig

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