diff options
author | arpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-03-02 22:05:04 +0000 |
---|---|---|
committer | arpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-03-02 22:05:04 +0000 |
commit | c837778f5c9127198261d2f508cecafab3869f06 (patch) | |
tree | 0b0368d574803125168da8057eb31a2f62bd7ff9 /libmpeg2 | |
parent | 477c46e141004cbaf710ba5b84239b0afd0abd7f (diff) | |
download | mpv-c837778f5c9127198261d2f508cecafab3869f06.tar.bz2 mpv-c837778f5c9127198261d2f508cecafab3869f06.tar.xz |
New dependency system
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpeg2')
-rw-r--r-- | libmpeg2/Makefile | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/libmpeg2/Makefile b/libmpeg2/Makefile index 5e2f8e8cfc..f599aecfd2 100644 --- a/libmpeg2/Makefile +++ b/libmpeg2/Makefile @@ -5,17 +5,17 @@ include ../config.mak SRCS = decode.c header.c idct.c idct_mmx.c motion_comp.c motion_comp_mmx.c slice.c stats.c OBJS = decode.o header.o idct.o idct_mmx.o motion_comp.o motion_comp_mmx.o slice.o stats.o -CFLAGS = $(OPTFLAGS) -DMPG12PLAY INCLUDE = -I. -I../libvo -I.. +CFLAGS = $(OPTFLAGS) $(INCLUDE) -DMPG12PLAY .SUFFIXES: .c .o # .PHONY: all clean .c.o: - $(CC) -c $(CFLAGS) $(INCLUDE) -o $@ $< + $(CC) -c $(CFLAGS) -o $@ $< -$(LIBNAME): $(OBJS) +$(LIBNAME): .depend $(OBJS) $(AR) r $(LIBNAME) $(OBJS) all: $(LIBNAME) @@ -24,12 +24,17 @@ clean: rm -f *.o *.a *~ distclean: - makedepend - rm -f Makefile.bak *.o *.a *~ + rm -f Makefile.bak *.o *.a *~ .depend -dep: depend +dep: depend +depend: .depend -depend: - makedepend -- $(CFLAGS) -- $(SRCS) &> /dev/null +.depend: Makefile ../config.mak ../config.h + makedepend -f- -- $(CFLAGS) -- $(SRCS) 1>.depend 2>/dev/null -# DO NOT DELETE +# +# include dependency files if they exist +# +ifneq ($(wildcard .depend),) +include .depend +endif |