Mercurial > libavformat.hg
changeset 23:f6aae828c320 libavformat
AUtomatic dependency generation. Runs on Linux (at least). Probably should
update .cvsignore (somehere) to exclude .d files
author | philipjsg |
---|---|
date | Tue, 14 Jan 2003 15:30:42 +0000 |
parents | 65433f1b2549 |
children | 215c0f0f916e |
files | Makefile |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Sat Jan 11 20:34:38 2003 +0000 +++ b/Makefile Tue Jan 14 15:30:42 2003 +0000 @@ -50,6 +50,8 @@ LIB= $(LIBPREF)avformat$(LIBSUF) +DEPS= $(OBJS:.o=.d) + all: $(LIB) $(LIB): $(OBJS) @@ -70,9 +72,15 @@ %.o: %.c $(CC) $(CFLAGS) -c -o $@ $< +%.d: %.c + @echo $@ \\ > $@ + $(CC) $(CFLAGS) -MM $< >> $@ + +-include $(DEPS) + # BeOS: remove -Wall to get rid of all the "multibyte constant" warnings %.o: %.cpp g++ $(subst -Wall,,$(CFLAGS)) -c -o $@ $< clean: - rm -f *.o *~ *.a $(LIB) + rm -f *.o *.d *~ *.a $(LIB)