Parent Directory | Revision Log
Revision 392 - (view) (download)
1 : | canard | 44 | #/************************************************************************** |
2 : | # * | ||
3 : | canard | 52 | # * Linux PPC makefile |
4 : | canard | 44 | # * |
5 : | canard | 52 | # * Adapted from linux x86 Makefile by Guillaume Morin <guillaume@morinfr.org> |
6 : | # * | ||
7 : | canard | 44 | # * 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 | 52 | CFLAGS += -Wall -O3 -funroll-loops -ffast-math |
21 : | CFLAGS += -fstrict-aliasing -fomit-frame-pointer | ||
22 : | canard | 44 | |
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 : | |||
30 : | canard | 44 | AS = as |
31 : | |||
32 : | canard | 52 | %.o: %.s |
33 : | $(AS) $< -o $@ | ||
34 : | canard | 44 | |
35 : | RM = rm -rf | ||
36 : | |||
37 : | all: $(LIB) $(LIBSO) | ||
38 : | |||
39 : | canard | 52 | $(LIB): $(SRC:.c=.o) $(SRC_PPC:.s=.o) |
40 : | canard | 44 | ar rcs $@ $^ |
41 : | |||
42 : | |||
43 : | canard | 52 | $(LIBSO): $(SRC:.c=.o) $(SRC_PPC:.s=.o) |
44 : | canard | 44 | $(CC) $(CFLAGS) $^ -shared -lc -lm -o $@ |
45 : | |||
46 : | clean: | ||
47 : | $(RM) `find $(SRCDIR) -name "*.o"` | ||
48 : | |||
49 : | remove-all: | ||
50 : | $(RM) $(DIRS) | ||
51 : | canard | 52 | $(RM) $(DIRS_PPC) |
52 : | canard | 44 | $(RM) $(LIB) |
53 : | $(RM) $(LIBSO) | ||
54 : | |||
55 : | |||
56 : | install: libxvidcore.so | ||
57 : | canard | 52 | cp libxvidcore.so $(LIBDIR) # you have to be root for this |
58 : | canard | 44 | /sbin/ldconfig |
59 : | |||
60 : | install-test: libxvidcore.so # if you don't want to overwrite previous compile | ||
61 : | cp libxvidcore.so $(LIBDIR)/libtestcore.so | ||
62 : | /sbin/ldconfig |
No admin address has been configured | ViewVC Help |
Powered by ViewVC 1.0.4 |