tremor uses integer types
[mplayer/glamo.git] / libmpeg2 / Makefile
blob137957b23e554097ce19f48ed292257bd49c634a
2 LIBNAME = libmpeg2.a
4 include ../config.mak
6 SRCS = alloc.c cpu_accel.c cpu_state.c decode.c header.c idct.c motion_comp.c slice.c
8 OBJS = $(SRCS:.c=.o)
9 INCLUDE = -I. -I../libvo -I.. $(EXTRA_INC)
10 CFLAGS = $(OPTFLAGS) $(INCLUDE) -DMPG12PLAY
12 ifeq ($(TARGET_ARCH_X86),yes)
13 SRCS += idct_mmx.c motion_comp_mmx.c
14 endif
16 ifeq ($(TARGET_ARCH_X86_64),yes)
17 SRCS += idct_mmx.c motion_comp_mmx.c
18 endif
20 ifeq ($(TARGET_ALTIVEC),yes)
21 SRCS += motion_comp_altivec.c idct_altivec.c
22 endif
24 ifeq ($(TARGET_VIS),yes)
25 SRCS += motion_comp_vis.c
26 endif
28 ifeq ($(TARGET_ARCH_ALPHA),yes)
29 SRCS += idct_alpha.c motion_comp_alpha.c
30 endif
32 .SUFFIXES: .c .o
34 # .PHONY: all clean
36 .c.o:
37 $(CC) -c $(CFLAGS) -o $@ $<
39 $(LIBNAME): $(OBJS)
40 $(AR) r $(LIBNAME) $(OBJS)
41 $(RANLIB) $(LIBNAME)
43 all: $(LIBNAME)
45 clean:
46 rm -f *.o *.a *~
48 distclean:
49 rm -f Makefile.bak *.o *.a *~ .depend
51 dep: depend
53 depend:
54 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
57 # include dependency files if they exist
59 ifneq ($(wildcard .depend),)
60 include .depend
61 endif