Parent Directory
|
Revision Log
Revision 99 - (view) (download)
1 : | canard | 71 | #/************************************************************************** |
2 : | # * | ||
3 : | # * Linux PPC makefile | ||
4 : | # * | ||
5 : | # * Adapted from linux x86 Makefile by Guillaume Morin <guillaume@morinfr.org> | ||
6 : | # * | ||
7 : | # * libso: | ||
8 : | # * (-lm not neccessary if using -ffast-math) | ||
9 : | # * | ||
10 : | # *************************************************************************/ | ||
11 : | |||
12 : | |||
13 : | include Makefile.inc | ||
14 : | |||
15 : | CC = gcc | ||
16 : | |||
17 : | CFLAGS = -DLINUX -DARCH_PPC -DARCH_IS_BIG_ENDIAN -DARCH_PPC_ALTIVEC | ||
18 : | LIBDIR = /usr/local/lib | ||
19 : | |||
20 : | CFLAGS += -Wall -O3 -funroll-loops -ffast-math | ||
21 : | CFLAGS += -fstrict-aliasing -fomit-frame-pointer | ||
22 : | |||
23 : | canard | 93 | ## for profiling, uncomment the next line. |
24 : | #CFLAGS += -D_PROFILING_ | ||
25 : | |||
26 : | canard | 92 | ## for debugging, comment the previous lines and uncomment the next one. |
27 : | canard | 93 | #CFLAGS += -Wall -g |
28 : | canard | 92 | |
29 : | canard | 71 | AS = as |
30 : | canard | 99 | # if GNU as choke on Altivec instructions, try to comment the previous |
31 : | # line, and uncomment the next one. | ||
32 : | # AS = as -mvec | ||
33 : | canard | 71 | |
34 : | %.o: %.s | ||
35 : | $(AS) $< -o $@ | ||
36 : | |||
37 : | RM = rm -rf | ||
38 : | |||
39 : | all: $(LIB) $(LIBSO) | ||
40 : | |||
41 : | $(LIB): $(SRC:.c=.o) $(SRC_ALTIVEC:.s=.o) | ||
42 : | ar rcs $@ $^ | ||
43 : | |||
44 : | |||
45 : | $(LIBSO): $(SRC:.c=.o) $(SRC_ALTIVEC:.s=.o) | ||
46 : | $(CC) $(CFLAGS) $^ -shared -lc -lm -o $@ | ||
47 : | |||
48 : | clean: | ||
49 : | $(RM) `find $(SRCDIR) -name "*.o"` | ||
50 : | |||
51 : | remove-all: | ||
52 : | $(RM) $(DIRS) | ||
53 : | $(RM) $(DIRS_PPC) | ||
54 : | $(RM) $(LIB) | ||
55 : | $(RM) $(LIBSO) | ||
56 : | |||
57 : | |||
58 : | install: libxvidcore.so | ||
59 : | cp libxvidcore.so $(LIBDIR) # you have to be root for this | ||
60 : | /sbin/ldconfig | ||
61 : | |||
62 : | install-test: libxvidcore.so # if you don't want to overwrite previous compile | ||
63 : | cp libxvidcore.so $(LIBDIR)/libtestcore.so | ||
64 : | /sbin/ldconfig |
No admin address has been configured | ViewVC Help |
Powered by ViewVC 1.0.4 |