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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 47 - (download) (annotate)
Thu Mar 21 17:27:01 2002 UTC (22 years ago) by canard
File size: 1598 byte(s)
removed intel asm parts
#/**************************************************************************
# *
# * linux makefile
# *
# * nasm args:
# * -f fmt		elf (linux), coff (djgpp)
# * -DPREFIX	add '_' prefix to symbol names
# *
# * libso:
# * (-lm not neccessary if using -ffast-math)
# *
# *************************************************************************/


#
# Adapted from linux x86 Makefile by Guillaume Morin <guillaume@morinfr.org>
#
# This needs lots of work but that is a good beginning :-)

include Makefile.inc

CC = gcc
#CC=icc
#CC = /opt/experimental/bin/gcc 	# that's where SuSE installs gcc3

CFLAGS = -DLINUX -DARCH_PPC -DARCH_IS_BIG_ENDIAN
LIBDIR = /usr/local/lib

# CFLAGS += -funroll-loops -ffast-math -fstrict-aliasing -fomit-frame-pointer
# CFLAGS += -fPIC
# CFLAGS += -m486
# CFLAGS += -march=pentium -mcpu=pentium
# CFLAGS += -march=pentiumpro -mcpu=pentiumpro

    CFLAGS += -Wall -O3 -funroll-loops -ffast-math  
    CFLAGS += -fstrict-aliasing -fomit-frame-pointer 

AS = as
AFLAGS = -f elf

%.o: %.asm
	$(AS) $(AFLAGS) $< -o $@

RM = rm -rf


all: $(LIB) $(LIBSO)


$(LIB): $(SRC:.c=.o) #$(SRC_INTEL:.asm=.o)
	ar rcs $@ $^


$(LIBSO): $(SRC:.c=.o) #$(SRC_INTEL:.asm=.o)
	$(CC) $(CFLAGS) $^ -shared -lc -lm -o $@


clean:	
	$(RM) `find $(SRCDIR) -name "*.o"`

remove-all:
	$(RM) $(DIRS)
	$(RM) $(DIRS_INTEL)
	$(RM) $(LIB)
	$(RM) $(LIBSO)


install: libxvidcore.so
	cp libxvidcore.so $(LIBDIR)			# you have to bee root for this
	/sbin/ldconfig 

install-test: libxvidcore.so				# if you don't want to overwrite previous compile
	cp libxvidcore.so $(LIBDIR)/libtestcore.so
	/sbin/ldconfig

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