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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 371 - (download) (annotate)
Thu Aug 15 09:45:43 2002 UTC (17 years, 3 months ago) by ia64p
File size: 1611 byte(s)
fixing a bug in make test
#/**************************************************************************
# *
# * 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