Mercurial > libavformat.hg
comparison Makefile @ 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 | ec4e7f9b4515 |
comparison
equal
deleted
inserted
replaced
22:65433f1b2549 | 23:f6aae828c320 |
---|---|
48 OBJS+= ogg.o | 48 OBJS+= ogg.o |
49 endif | 49 endif |
50 | 50 |
51 LIB= $(LIBPREF)avformat$(LIBSUF) | 51 LIB= $(LIBPREF)avformat$(LIBSUF) |
52 | 52 |
53 DEPS= $(OBJS:.o=.d) | |
54 | |
53 all: $(LIB) | 55 all: $(LIB) |
54 | 56 |
55 $(LIB): $(OBJS) | 57 $(LIB): $(OBJS) |
56 rm -f $@ | 58 rm -f $@ |
57 $(AR) rc $@ $(OBJS) | 59 $(AR) rc $@ $(OBJS) |
68 $(prefix)/include/ffmpeg | 70 $(prefix)/include/ffmpeg |
69 | 71 |
70 %.o: %.c | 72 %.o: %.c |
71 $(CC) $(CFLAGS) -c -o $@ $< | 73 $(CC) $(CFLAGS) -c -o $@ $< |
72 | 74 |
75 %.d: %.c | |
76 @echo $@ \\ > $@ | |
77 $(CC) $(CFLAGS) -MM $< >> $@ | |
78 | |
79 -include $(DEPS) | |
80 | |
73 # BeOS: remove -Wall to get rid of all the "multibyte constant" warnings | 81 # BeOS: remove -Wall to get rid of all the "multibyte constant" warnings |
74 %.o: %.cpp | 82 %.o: %.cpp |
75 g++ $(subst -Wall,,$(CFLAGS)) -c -o $@ $< | 83 g++ $(subst -Wall,,$(CFLAGS)) -c -o $@ $< |
76 | 84 |
77 clean: | 85 clean: |
78 rm -f *.o *~ *.a $(LIB) | 86 rm -f *.o *.d *~ *.a $(LIB) |