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