6 # OBJS = $(SRCS:.c,.s=.o)
7 ifeq ($(TARGET_ARCH_SGI_MIPS
),yes
)
8 OPTFLAGS
:= $(OPTFLAGS
:-O4
=-O0
)
10 CFLAGS
= -I..
$(OPTFLAGS
) $(EXTRA_INC
)
11 ifeq ($(TARGET_ARCH_X86
),yes
)
14 SRCS
+= decode_MMX.c dct64_MMX.c tabinit_MMX.c
15 OBJS
+= decode_MMX.o dct64_MMX.o tabinit_MMX.o
16 SRCS
+= dct36_3dnow.c dct64_3dnow.c
17 OBJS
+= dct36_3dnow.o dct64_3dnow.o
18 SRCS
+= dct36_k7.c dct64_k7.c
19 OBJS
+= dct36_k7.o dct64_k7.o
21 ifeq ($(TARGET_ARCH_POWERPC
),yes
)
22 ifeq ($(TARGET_ALTIVEC
),yes
)
23 SRCS
+= dct64_altivec.c
24 OBJS
+= dct64_altivec.o
25 ifeq ($(TARGET_OS
),Darwin
)
28 CFLAGS
+= -maltivec
-mabi
=altivec
40 $(CC
) -c
$(CFLAGS
) -o
$@
$<
42 decode_i586.o
: decode_i586.c
43 $(CC
) -c
$(CFLAGS
) -fomit-frame-pointer
-o
$@
$<
46 $(CC
) -c
$(CFLAGS
) -o
$@
$<
49 $(AR
) r libMP3.a
$(OBJS
)
52 test1
: libMP3.a
test.c
53 $(CC
) $(CFLAGS
) test.c ..
/libvo
/aclib.c
-o test1
-I.. .
/libMP3.a ..
/mp_msg-mencoder.o ..
/cpudetect.o
-lm
55 test2
: libMP3.a test2.c
56 $(CC
) $(CFLAGS
) test2.c ..
/libvo
/aclib.c
-o test2
-I.. .
/libMP3.a ..
/mp_msg-mencoder.o ..
/cpudetect.o
-lm
59 rm -f
*~
*.o
*.a test1 test2
67 $(CC
) -MM
$(CFLAGS
) $(SRCS
) 1>.depend
70 # include dependency files if they exist
72 ifneq ($(wildcard .depend
),)