[cvs] / xvidcore / build / generic / Makefile.ia64 Repository:
ViewVC logotype

View of /xvidcore/build/generic/Makefile.ia64

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (download) (annotate)
Sun Feb 9 19:32:52 2003 UTC (21 years, 3 months ago) by edgomez
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +0 -0 lines
FILE REMOVED
I made all these changes on my own working copy until i had
something really usable wihtout regressions for most users.

I think its place is now in CVS. Here is a ChangeLog summary
generated from my local patches.

base-0
    Imported xvidcore 0.9.0 into arch repository
patch-1
    Updated to current stable CVS_HEAD
patch-2
    Changed build system for Unix OSes
patch-3
    Fixes for the new build system in sources.
patch-4
    Fixed options and added the --disable-assembly option
patch-5
    Fixed a BSD checking in nasm output format.
patch-6
    Fixed the "ar" "s" option for some platforms.
patch-7
    Changed the way I add strings into variables.
patch-8
    Fixed portab.h for _DEBUG target and GCC/ICC compilers.
patch-9
    Added Altivec detection (Guillaume Morin)
patch-10
    Fixed MacOSX build.
patch-11
    Fixed WIN32/_MSC_VER confusion and updated MSVC libxvidcore.dsp project file.
patch-12
    DivX4 compatibility layer has been turned into an option (default:disable).

ToDo:
    - Fix IA64 assembly file selection.
    - Do I disable PPC assembly code ? (according to Guillaume, it needs to be updated)
#/**************************************************************************
# *
# * linux makefile
# *
# * nasm args:
# * -f fmt		elf (linux), coff (djgpp)
# * -DPREFIX	add '_' prefix to symbol names
# *
# * libso:
# * (-lm not neccessary if using -ffast-math)
# *
# *************************************************************************/


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

include Makefile.inc


CFLAGS = -DARCH_IA64 -DLINUX  #-D_PROFILING_
CFLAGSWP =
LIBDIR = /usr/local/lib

ifeq ($(CC),ecc)
    CFLAGS+= -O9 -ip
    CFLAGS+= -I/opt/intel/compiler50/ia32/include -I/opt/intel/compiler50/ia32/substitute_headers/

else
    CFLAGS += -Wall -O9 -funroll-loops -ffast-math
    CFLAGS += -fstrict-aliasing -fpic -fomit-frame-pointer
   #CFLAGS += -fprofile-arcs -ftest-coverage
endif

AS = $(CC)
AFLAGS = -c

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

RM = rm -rf


all: $(LIB) $(LIBSO)


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


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


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

remove-all:
	$(RM) $(DIRS)
	$(RM) $(DIRS_IA64)
	$(RM) $(LIB)
	$(RM) $(LIBSO)
	$(RM) xvid_stat

test:
	make all
	$(CC) $(CFLAGS) -I../../src ../../examples/xvid_stat.c $(LIB) -o xvid_stat -lm

test-clean:
	make remove-all
	make all
	make test

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