# HG changeset patch # User diego # Date 1210355504 0 # Node ID 84d1a6f194907bc656f8631d7a61fda87302ecef # Parent 6b747c6ce0300754b9981f1bbd757c00fc52a32e Add some comment headings to divide the Makefile into logical chapters. diff -r 6b747c6ce030 -r 84d1a6f19490 Makefile --- a/Makefile Fri May 09 17:47:19 2008 +0000 +++ b/Makefile Fri May 09 17:51:44 2008 +0000 @@ -6,6 +6,9 @@ include config.mak + +###### variable declarations ####### + COMMON_LDFLAGS += $(EXTRA_LIB)\ $(EXTRALIBS) \ @@ -691,6 +694,10 @@ libpostproc \ libswscale \ + + +###### generic rules ####### + all: $(ALL_PRG) %.d: %.c @@ -772,6 +779,10 @@ @help/help_diff.sh $(HELP_FILE) < help/help_mp-en.h >> help_mp.h endif + + +###### dependency declarations / specific CFLAGS ###### + codec-cfg.d: codecs.conf.h mencoder.d mplayer.d vobsub.d gui/win32/gui.d libmpdemux/muxer_avi.d stream/network.d stream/stream_cddb.d: version.h DEPS = $(filter-out %.S,$(patsubst %.cpp,%.d,$(patsubst %.c,%.d,$(SRCS_COMMON) $(SRCS_MPLAYER:.m=.d) $(SRCS_MENCODER)))) @@ -799,6 +810,9 @@ $(VIDIX_DEPS) $(VIDIX_OBJS): $(VIDIX_PCI_FILES) + +###### installation rules ####### + install: install-dirs $(INSTALL_TARGETS) install-dirs: @@ -881,6 +895,9 @@ rm -f $@; ( find -name '*.[chS]' -print ) | xargs ctags -a + +###### tests / tools ####### + TEST_OBJS = mp_msg-mencoder.o mp_fifo.o osdep/$(GETCH) osdep/$(TIMER) -ltermcap -lm liba52/test$(EXESUF): liba52/test.c cpudetect.o $(filter liba52/%,$(SRCS_COMMON:.c=.o))