[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 93 - (download) (annotate)
Sat Mar 30 19:09:17 2002 UTC (21 years, 11 months ago) by canard
File size: 1278 byte(s)
CFLAGS fix
#/**************************************************************************
# *
# * Linux PPC makefile
# *
# * Adapted from linux x86 Makefile by Guillaume Morin <guillaume@morinfr.org>
# * 
# * libso:
# * (-lm not neccessary if using -ffast-math)
# *
# *************************************************************************/


include Makefile.inc

CC = gcc

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

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

## for profiling, uncomment the next line.
#CFLAGS += -D_PROFILING_

## for debugging, comment the previous lines and uncomment the next one.
#CFLAGS += -Wall -g


AS = as

%.o: %.s
	$(AS) $< -o $@

RM = rm -rf

all: $(LIB) $(LIBSO)

$(LIB): $(SRC:.c=.o) $(SRC_PPC:.s=.o)
	ar rcs $@ $^


$(LIBSO): $(SRC:.c=.o) $(SRC_PPC:.s=.o)
	$(CC) $(CFLAGS) $^ -shared -lc -lm -o $@

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

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


install: libxvidcore.so
	cp libxvidcore.so $(LIBDIR)			# you have to be 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