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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.47  
changed lines
  Added in v.71

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