Mercurial > mplayer.hg
annotate libmpeg2/Makefile @ 19198:b137cea2650e
corrects some casts that previously discarded the const qualifier. Patch by Stefan Huehner, stefan AT Huehner-org
author | reynaldo |
---|---|
date | Thu, 27 Jul 2006 18:15:35 +0000 |
parents | 0945c6e242c6 |
children | 4f71ed7cb512 |
rev | line source |
---|---|
1 | 1 |
2 LIBNAME = libmpeg2.a | |
3 | |
4 include ../config.mak | |
5 | |
17943
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
6 SRCS = alloc.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
7 cpu_accel.c\ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
8 cpu_state.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
9 decode.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
10 header.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
11 idct.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
12 motion_comp.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
13 slice.c \ |
9852 | 14 |
866
91087aaea5c7
using gcc -MM instead of makedepend, make OBJS from SRCS where possible
arpi_esp
parents:
36
diff
changeset
|
15 OBJS = $(SRCS:.c=.o) |
19037 | 16 INCLUDE = -I. -I../libvo -I.. |
27 | 17 CFLAGS = $(OPTFLAGS) $(INCLUDE) -DMPG12PLAY |
1 | 18 |
19132
0945c6e242c6
remove duplicate code and fix issue of compiling mmx code when we
rfelker
parents:
19037
diff
changeset
|
19 ifeq ($(TARGET_MMX),yes) |
13118 | 20 SRCS += idct_mmx.c motion_comp_mmx.c |
21 endif | |
22 | |
10268
f486ad4016ad
libmpeg2-altivec patch by Magnus Damm <damm@opensource.se>:
arpi
parents:
9852
diff
changeset
|
23 ifeq ($(TARGET_ALTIVEC),yes) |
f486ad4016ad
libmpeg2-altivec patch by Magnus Damm <damm@opensource.se>:
arpi
parents:
9852
diff
changeset
|
24 SRCS += motion_comp_altivec.c idct_altivec.c |
f486ad4016ad
libmpeg2-altivec patch by Magnus Damm <damm@opensource.se>:
arpi
parents:
9852
diff
changeset
|
25 endif |
f486ad4016ad
libmpeg2-altivec patch by Magnus Damm <damm@opensource.se>:
arpi
parents:
9852
diff
changeset
|
26 |
13018
adb93ef6b07f
Improved SPARC CPU detection and SPARC compilation fixes.
diego
parents:
12932
diff
changeset
|
27 ifeq ($(TARGET_VIS),yes) |
adb93ef6b07f
Improved SPARC CPU detection and SPARC compilation fixes.
diego
parents:
12932
diff
changeset
|
28 SRCS += motion_comp_vis.c |
adb93ef6b07f
Improved SPARC CPU detection and SPARC compilation fixes.
diego
parents:
12932
diff
changeset
|
29 endif |
adb93ef6b07f
Improved SPARC CPU detection and SPARC compilation fixes.
diego
parents:
12932
diff
changeset
|
30 |
13118 | 31 ifeq ($(TARGET_ARCH_ALPHA),yes) |
32 SRCS += idct_alpha.c motion_comp_alpha.c | |
33 endif | |
34 | |
1 | 35 .SUFFIXES: .c .o |
36 | |
37 # .PHONY: all clean | |
38 | |
39 .c.o: | |
27 | 40 $(CC) -c $(CFLAGS) -o $@ $< |
1 | 41 |
1010 | 42 $(LIBNAME): $(OBJS) |
1 | 43 $(AR) r $(LIBNAME) $(OBJS) |
12632 | 44 $(RANLIB) $(LIBNAME) |
1 | 45 |
46 all: $(LIBNAME) | |
47 | |
48 clean: | |
49 rm -f *.o *.a *~ | |
50 | |
17488
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
14013
diff
changeset
|
51 distclean: clean |
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
14013
diff
changeset
|
52 rm -f .depend |
1 | 53 |
27 | 54 dep: depend |
1 | 55 |
1010 | 56 depend: |
866
91087aaea5c7
using gcc -MM instead of makedepend, make OBJS from SRCS where possible
arpi_esp
parents:
36
diff
changeset
|
57 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend |
1 | 58 |
27 | 59 # |
60 # include dependency files if they exist | |
61 # | |
62 ifneq ($(wildcard .depend),) | |
63 include .depend | |
64 endif |