[svn] / branches / dev-api-3 / xvidcore / build / generic / Makefile.ia64 Repository:
ViewVC logotype

Annotation of /branches/dev-api-3/xvidcore/build/generic/Makefile.ia64

Parent Directory Parent Directory | Revision Log Revision Log


Revision 804 - (view) (download)

1 : ia64p 205 #/**************************************************************************
2 :     # *
3 :     # * linux makefile
4 :     # *
5 :     # * nasm args:
6 :     # * -f fmt elf (linux), coff (djgpp)
7 :     # * -DPREFIX add '_' prefix to symbol names
8 :     # *
9 :     # * libso:
10 :     # * (-lm not neccessary if using -ffast-math)
11 :     # *
12 :     # *************************************************************************/
13 :    
14 :    
15 :     CC = gcc
16 :     #CC=ecc
17 :     #CC = /opt/experimental/bin/gcc # that's where SuSE installs gcc3
18 :    
19 : ia64p 301 include Makefile.inc
20 :    
21 :    
22 :     CFLAGS = -DARCH_IA64 -DLINUX #-D_PROFILING_
23 : ia64p 205 CFLAGSWP =
24 :     LIBDIR = /usr/local/lib
25 :    
26 :     ifeq ($(CC),ecc)
27 : ia64p 301 CFLAGS+= -O9 -ip
28 : ia64p 205 CFLAGS+= -I/opt/intel/compiler50/ia32/include -I/opt/intel/compiler50/ia32/substitute_headers/
29 : suxen_drol 804 SRC_IA64 := $(SRC_IA64:_gcc.s=_ecc.s)
30 : ia64p 205
31 :     else
32 : ia64p 301 CFLAGS += -Wall -O9 -funroll-loops -ffast-math
33 : ia64p 205 CFLAGS += -fstrict-aliasing -fpic -fomit-frame-pointer
34 : ia64p 301 #CFLAGS += -fprofile-arcs -ftest-coverage
35 : ia64p 205 endif
36 :    
37 :     AS = $(CC)
38 :     AFLAGS = -c
39 :    
40 :     %.o: %.s
41 : suxen_drol 717 $(AS) $(AFLAGS) -I$(<D) $< -o $@
42 : ia64p 205
43 : suxen_drol 717
44 : ia64p 205 RM = rm -rf
45 :    
46 :    
47 :     all: $(LIB) $(LIBSO)
48 :    
49 :    
50 :     $(LIB): $(SRC:.c=.o) $(SRC_IA64:.s=.o)
51 :     ar rcs $@ $^
52 :    
53 :    
54 :     $(LIBSO): $(SRC:.c=.o) $(SRC_IA64:.s=.o)
55 :     $(CC) $(CFLAGS) $^ -shared -lc -lm -o $@
56 :    
57 :    
58 :     clean:
59 :     $(RM) `find $(SRCDIR) -name "*.o"`
60 :    
61 :     remove-all:
62 :     $(RM) $(DIRS)
63 :     $(RM) $(DIRS_IA64)
64 :     $(RM) $(LIB)
65 :     $(RM) $(LIBSO)
66 :     $(RM) xvid_stat
67 :    
68 :     test:
69 :     make all
70 : ia64p 371 $(CC) $(CFLAGS) -I../../src ../../examples/xvid_stat.c $(LIB) -o xvid_stat -lm
71 : ia64p 205
72 :     test-clean:
73 :     make remove-all
74 :     make all
75 :     make test
76 :    
77 :     install: libxvidcore.so
78 :     cp libxvidcore.so $(LIBDIR) # you have to bee root for this
79 :     /sbin/ldconfig
80 :    
81 :     install-test: libxvidcore.so # if you don't want to overwrite previous compile
82 :     cp libxvidcore.so $(LIBDIR)/libtestcore.so
83 :     /sbin/ldconfig

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