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