diff options
author | arpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-03-02 21:47:18 +0000 |
---|---|---|
committer | arpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-03-02 21:47:18 +0000 |
commit | 477c46e141004cbaf710ba5b84239b0afd0abd7f (patch) | |
tree | c2a457d09e10cdd32f0e8379b3a7d853234d69d0 /mp3lib | |
parent | 12a2563387e1b82174b49407a96545296edeaa69 (diff) |
New dependency system
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mp3lib')
-rw-r--r-- | mp3lib/Makefile | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/mp3lib/Makefile b/mp3lib/Makefile index 774fed3fd4..c897b63c56 100644 --- a/mp3lib/Makefile +++ b/mp3lib/Makefile @@ -15,7 +15,7 @@ CFLAGS = $(OPTFLAGS) .s.o: $(CC) -c $(CFLAGS) -o $@ $< -libMP3.a: $(OBJS) +libMP3.a: .depend $(OBJS) $(AR) r libMP3.a $(OBJS) all: libMP3.a @@ -24,11 +24,17 @@ clean: rm -f *~ *.o *.a distclean: - makedepend - rm -f *~ *.o *.a Makefile.bak + rm -f *~ *.o *.a Makefile.bak .depend -dep: depend +dep: depend +depend: .depend -depend: - makedepend -- $(CFLAGS) -- $(SRCS) &>/dev/null -# DO NOT DELETE +.depend: Makefile config.mak ../config.mak ../config.h + makedepend -f- -- $(CFLAGS) -- $(SRCS) 1>.depend 2>/dev/null + +# +# include dependency files if they exist +# +ifneq ($(wildcard .depend),) +include .depend +endif |