Parent Directory | Revision Log
Revision 1.4 - (view) (download)
1 : | canard | 1.1 | #/************************************************************************** |
2 : | # * | ||
3 : | canard | 1.3 | # * Linux PPC makefile |
4 : | canard | 1.1 | # * |
5 : | canard | 1.3 | # * Adapted from linux x86 Makefile by Guillaume Morin <guillaume@morinfr.org> |
6 : | # * | ||
7 : | canard | 1.1 | # * 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 | ||
18 : | LIBDIR = /usr/local/lib | ||
19 : | |||
20 : | canard | 1.3 | CFLAGS += -Wall -O3 -funroll-loops -ffast-math |
21 : | CFLAGS += -fstrict-aliasing -fomit-frame-pointer | ||
22 : | canard | 1.1 | |
23 : | AS = as | ||
24 : | |||
25 : | canard | 1.3 | %.o: %.s |
26 : | $(AS) $< -o $@ | ||
27 : | canard | 1.1 | |
28 : | RM = rm -rf | ||
29 : | |||
30 : | all: $(LIB) $(LIBSO) | ||
31 : | |||
32 : | canard | 1.3 | $(LIB): $(SRC:.c=.o) $(SRC_PPC:.s=.o) |
33 : | canard | 1.1 | ar rcs $@ $^ |
34 : | |||
35 : | |||
36 : | canard | 1.3 | $(LIBSO): $(SRC:.c=.o) $(SRC_PPC:.s=.o) |
37 : | canard | 1.1 | $(CC) $(CFLAGS) $^ -shared -lc -lm -o $@ |
38 : | |||
39 : | clean: | ||
40 : | $(RM) `find $(SRCDIR) -name "*.o"` | ||
41 : | |||
42 : | remove-all: | ||
43 : | $(RM) $(DIRS) | ||
44 : | canard | 1.3 | $(RM) $(DIRS_PPC) |
45 : | canard | 1.1 | $(RM) $(LIB) |
46 : | $(RM) $(LIBSO) | ||
47 : | |||
48 : | |||
49 : | install: libxvidcore.so | ||
50 : | canard | 1.3 | cp libxvidcore.so $(LIBDIR) # you have to be root for this |
51 : | canard | 1.1 | /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 |