Parent Directory
|
Revision Log
Revision 93 - (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 : | |||
31 : | %.o: %.s | ||
32 : | $(AS) $< -o $@ | ||
33 : | |||
34 : | RM = rm -rf | ||
35 : | |||
36 : | all: $(LIB) $(LIBSO) | ||
37 : | |||
38 : | $(LIB): $(SRC:.c=.o) $(SRC_ALTIVEC:.s=.o) | ||
39 : | ar rcs $@ $^ | ||
40 : | |||
41 : | |||
42 : | $(LIBSO): $(SRC:.c=.o) $(SRC_ALTIVEC:.s=.o) | ||
43 : | $(CC) $(CFLAGS) $^ -shared -lc -lm -o $@ | ||
44 : | |||
45 : | clean: | ||
46 : | $(RM) `find $(SRCDIR) -name "*.o"` | ||
47 : | |||
48 : | remove-all: | ||
49 : | $(RM) $(DIRS) | ||
50 : | $(RM) $(DIRS_PPC) | ||
51 : | $(RM) $(LIB) | ||
52 : | $(RM) $(LIBSO) | ||
53 : | |||
54 : | |||
55 : | install: libxvidcore.so | ||
56 : | cp libxvidcore.so $(LIBDIR) # you have to be root for this | ||
57 : | /sbin/ldconfig | ||
58 : | |||
59 : | install-test: libxvidcore.so # if you don't want to overwrite previous compile | ||
60 : | cp libxvidcore.so $(LIBDIR)/libtestcore.so | ||
61 : | /sbin/ldconfig |
No admin address has been configured | ViewVC Help |
Powered by ViewVC 1.0.4 |