[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 717 - (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 :    
30 :     else
31 : ia64p 301 CFLAGS += -Wall -O9 -funroll-loops -ffast-math
32 : ia64p 205 CFLAGS += -fstrict-aliasing -fpic -fomit-frame-pointer
33 : ia64p 301 #CFLAGS += -fprofile-arcs -ftest-coverage
34 : ia64p 205 endif
35 :    
36 :     AS = $(CC)
37 :     AFLAGS = -c
38 :    
39 :     %.o: %.s
40 : suxen_drol 717 $(AS) $(AFLAGS) -I$(<D) $< -o $@
41 : ia64p 205
42 : suxen_drol 717
43 : ia64p 205 RM = rm -rf
44 :    
45 :    
46 :     all: $(LIB) $(LIBSO)
47 :    
48 :    
49 :     $(LIB): $(SRC:.c=.o) $(SRC_IA64:.s=.o)
50 :     ar rcs $@ $^
51 :    
52 :    
53 :     $(LIBSO): $(SRC:.c=.o) $(SRC_IA64:.s=.o)
54 :     $(CC) $(CFLAGS) $^ -shared -lc -lm -o $@
55 :    
56 :    
57 :     clean:
58 :     $(RM) `find $(SRCDIR) -name "*.o"`
59 :    
60 :     remove-all:
61 :     $(RM) $(DIRS)
62 :     $(RM) $(DIRS_IA64)
63 :     $(RM) $(LIB)
64 :     $(RM) $(LIBSO)
65 :     $(RM) xvid_stat
66 :    
67 :     test:
68 :     make all
69 : ia64p 371 $(CC) $(CFLAGS) -I../../src ../../examples/xvid_stat.c $(LIB) -o xvid_stat -lm
70 : ia64p 205
71 :     test-clean:
72 :     make remove-all
73 :     make all
74 :     make test
75 :    
76 :     install: libxvidcore.so
77 :     cp libxvidcore.so $(LIBDIR) # you have to bee root for this
78 :     /sbin/ldconfig
79 :    
80 :     install-test: libxvidcore.so # if you don't want to overwrite previous compile
81 :     cp libxvidcore.so $(LIBDIR)/libtestcore.so
82 :     /sbin/ldconfig

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