summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-09-01 21:32:03 +0200
committerwm4 <wm4@nowhere>2012-09-18 21:04:47 +0200
commit5a13f5a5e8dd63c899581db86c51c9bb093fcdde (patch)
treec2e5259d739d4e1e43223b885326b869bf8e8c1f /Makefile
parente47b779bfc7e3a92a6c483f76ae642f86ca30fba (diff)
downloadmpv-5a13f5a5e8dd63c899581db86c51c9bb093fcdde.tar.bz2
mpv-5a13f5a5e8dd63c899581db86c51c9bb093fcdde.tar.xz
build: move mpcommon.c to version.c
mpcommon.c used to be the only file to include version.h. version.h is generated by the build system, and contains the git revision. Any time a commit is made (or the tree is rebased etc.), the file is rewritten, and mpcommon.c rebuilt. To make rebuilding less annoying, the definition of the version string is the only thing in mpcommon.c. Since I want to add other things to mpcommon.c, add a new file named version.c, that takes over mpcommon.c's role as described above. mpcommon.c doesn't include version.h anymore, and will be used to park code that doesn't really belong anywhere else.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 04806786e4..a3412ad330 100644
--- a/Makefile
+++ b/Makefile
@@ -106,6 +106,7 @@ SRCS_COMMON = asxparser.c \
m_struct.c \
mp_msg.c \
mpcommon.c \
+ version.c \
parser-cfg.c \
path.c \
playlist.c \
@@ -446,7 +447,7 @@ checkheaders: $(ALLHEADERS:.h=.ho)
###### dependency declarations / specific CFLAGS ######
-mpcommon.o osdep/mplayer-rc.o: version.h
+version.c osdep/mplayer-rc.o: version.h
# Files that depend on libavcodec internals
libmpcodecs/vf_fspp.o libmpcodecs/vf_mcdeint.o libmpcodecs/vf_spp.o: CFLAGS := -I$(FFMPEG_SOURCE_PATH) $(CFLAGS)