Mercurial > mplayer.hg
annotate libmpeg2/Makefile @ 12932:d0a8810e155c
Importing libmpeg2 from mpeg2dec-0.4.0b
author | henry |
---|---|
date | Mon, 02 Aug 2004 11:26:43 +0000 |
parents | 80973aa180a5 |
children | adb93ef6b07f |
rev | line source |
---|---|
1 | 1 |
2 LIBNAME = libmpeg2.a | |
3 | |
4 include ../config.mak | |
5 | |
12932 | 6 SRCS = alloc.c cpu_accel.c cpu_state.c decode.c header.c idct.c idct_alpha.c idct_mmx.c motion_comp.c motion_comp_alpha.c motion_comp_mmx.c slice.c |
9852 | 7 |
866
91087aaea5c7
using gcc -MM instead of makedepend, make OBJS from SRCS where possible
arpi_esp
parents:
36
diff
changeset
|
8 OBJS = $(SRCS:.c=.o) |
12932 | 9 INCLUDE = -I. -I../libvo -I.. $(EXTRA_INC) |
27 | 10 CFLAGS = $(OPTFLAGS) $(INCLUDE) -DMPG12PLAY |
1 | 11 |
10268
f486ad4016ad
libmpeg2-altivec patch by Magnus Damm <damm@opensource.se>:
arpi
parents:
9852
diff
changeset
|
12 ifeq ($(TARGET_ALTIVEC),yes) |
f486ad4016ad
libmpeg2-altivec patch by Magnus Damm <damm@opensource.se>:
arpi
parents:
9852
diff
changeset
|
13 SRCS += motion_comp_altivec.c idct_altivec.c |
f486ad4016ad
libmpeg2-altivec patch by Magnus Damm <damm@opensource.se>:
arpi
parents:
9852
diff
changeset
|
14 endif |
f486ad4016ad
libmpeg2-altivec patch by Magnus Damm <damm@opensource.se>:
arpi
parents:
9852
diff
changeset
|
15 |
1 | 16 .SUFFIXES: .c .o |
17 | |
18 # .PHONY: all clean | |
19 | |
20 .c.o: | |
27 | 21 $(CC) -c $(CFLAGS) -o $@ $< |
1 | 22 |
1010 | 23 $(LIBNAME): $(OBJS) |
1 | 24 $(AR) r $(LIBNAME) $(OBJS) |
12632 | 25 $(RANLIB) $(LIBNAME) |
1 | 26 |
27 all: $(LIBNAME) | |
28 | |
29 clean: | |
30 rm -f *.o *.a *~ | |
31 | |
32 distclean: | |
27 | 33 rm -f Makefile.bak *.o *.a *~ .depend |
1 | 34 |
27 | 35 dep: depend |
1 | 36 |
1010 | 37 depend: |
866
91087aaea5c7
using gcc -MM instead of makedepend, make OBJS from SRCS where possible
arpi_esp
parents:
36
diff
changeset
|
38 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend |
1 | 39 |
27 | 40 # |
41 # include dependency files if they exist | |
42 # | |
43 ifneq ($(wildcard .depend),) | |
44 include .depend | |
45 endif |