Parent Directory | Revision Log
Revision 205 - (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 : | include Makefile.inc | ||
16 : | |||
17 : | CC = gcc | ||
18 : | #CC=ecc | ||
19 : | #CC = /opt/experimental/bin/gcc # that's where SuSE installs gcc3 | ||
20 : | |||
21 : | CFLAGS = -DARCH_IA64 -DLINUX | ||
22 : | CFLAGSWP = | ||
23 : | LIBDIR = /usr/local/lib | ||
24 : | |||
25 : | ifeq ($(CC),ecc) | ||
26 : | CFLAGS+= -O3 -ip | ||
27 : | CFLAGS+= -I/opt/intel/compiler50/ia32/include -I/opt/intel/compiler50/ia32/substitute_headers/ | ||
28 : | |||
29 : | else | ||
30 : | CFLAGS += -Wall -O3 -funroll-loops -ffast-math | ||
31 : | CFLAGS += -fstrict-aliasing -fpic -fomit-frame-pointer | ||
32 : | endif | ||
33 : | |||
34 : | AS = $(CC) | ||
35 : | AFLAGS = -c | ||
36 : | |||
37 : | %.o: %.s | ||
38 : | $(AS) $(AFLAGS) $< -o $@ | ||
39 : | |||
40 : | RM = rm -rf | ||
41 : | |||
42 : | |||
43 : | all: $(LIB) $(LIBSO) | ||
44 : | |||
45 : | |||
46 : | $(LIB): $(SRC:.c=.o) $(SRC_IA64:.s=.o) | ||
47 : | ar rcs $@ $^ | ||
48 : | |||
49 : | |||
50 : | $(LIBSO): $(SRC:.c=.o) $(SRC_IA64:.s=.o) | ||
51 : | $(CC) $(CFLAGS) $^ -shared -lc -lm -o $@ | ||
52 : | |||
53 : | |||
54 : | clean: | ||
55 : | $(RM) `find $(SRCDIR) -name "*.o"` | ||
56 : | |||
57 : | remove-all: | ||
58 : | $(RM) $(DIRS) | ||
59 : | $(RM) $(DIRS_IA64) | ||
60 : | $(RM) $(LIB) | ||
61 : | $(RM) $(LIBSO) | ||
62 : | $(RM) xvid_stat | ||
63 : | |||
64 : | test: | ||
65 : | make all | ||
66 : | $(CC) $(CFLAGS) -I../../src ../../examples/xvid_stat.c libcore.a -o xvid_stat -lm | ||
67 : | |||
68 : | test-clean: | ||
69 : | make remove-all | ||
70 : | make all | ||
71 : | make test | ||
72 : | |||
73 : | install: libxvidcore.so | ||
74 : | cp libxvidcore.so $(LIBDIR) # you have to bee root for this | ||
75 : | /sbin/ldconfig | ||
76 : | |||
77 : | install-test: libxvidcore.so # if you don't want to overwrite previous compile | ||
78 : | cp libxvidcore.so $(LIBDIR)/libtestcore.so | ||
79 : | /sbin/ldconfig |
No admin address has been configured | ViewVC Help |
Powered by ViewVC 1.0.4 |