summaryrefslogtreecommitdiffstats
path: root/mp3lib/Makefile
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-26 18:12:36 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-26 18:12:36 +0000
commitdc2be42703cd95be495d420aeeaec79448222fa4 (patch)
tree02aa41ebcac77a378d93898cb064bf1c925545fe /mp3lib/Makefile
parent7ecf9d9e29e9cb857bd7120cd5be3abb11f20151 (diff)
downloadmpv-dc2be42703cd95be495d420aeeaec79448222fa4.tar.bz2
mpv-dc2be42703cd95be495d420aeeaec79448222fa4.tar.xz
Merge common parts of all Makefiles into one file included by all.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21275 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mp3lib/Makefile')
-rw-r--r--mp3lib/Makefile31
1 files changed, 5 insertions, 26 deletions
diff --git a/mp3lib/Makefile b/mp3lib/Makefile
index 8774944ed9..73f02be697 100644
--- a/mp3lib/Makefile
+++ b/mp3lib/Makefile
@@ -1,6 +1,8 @@
include ../config.mak
+LIBNAME = libMP3.a
+
ifeq ($(TARGET_ARCH_SGI_MIPS),yes)
OPTFLAGS := $(OPTFLAGS:-O4=-O0)
endif
@@ -33,16 +35,7 @@ endif
endif
endif
-OBJS=$(SRCS:.c=.o)
-
-.SUFFIXES: .c .o
-
-# .PHONY: all clean
-
-all: libMP3.a
-
-.c.o:
- $(CC) -c $(CFLAGS) -o $@ $<
+include ../mpcommon.mak
decode_i586.o: decode_i586.c
$(CC) -c $(CFLAGS) -fomit-frame-pointer -o $@ $<
@@ -50,25 +43,11 @@ decode_i586.o: decode_i586.c
.s.o:
$(CC) -c $(CFLAGS) -o $@ $<
-libMP3.a: $(OBJS)
- $(AR) r libMP3.a $(OBJS)
- $(RANLIB) libMP3.a
-
test1: libMP3.a test.c
$(CC) $(CFLAGS) test.c ../libvo/aclib.c -o test1 -I.. ./libMP3.a ../mp_msg-mencoder.o ../cpudetect.o -lm
test2: libMP3.a test2.c
$(CC) $(CFLAGS) test2.c ../libvo/aclib.c -o test2 -I.. ./libMP3.a ../mp_msg-mencoder.o ../cpudetect.o -lm
-clean:
- rm -f *~ *.o *.a test1 test2
-
-distclean: clean
- rm -f .depend
-
-dep depend:
- $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
-
-ifneq ($(wildcard .depend),)
-include .depend
-endif
+distclean::
+ rm -f test1 test2