summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile3
-rw-r--r--mpcommon.c4
-rw-r--r--version.c21
3 files changed, 23 insertions, 5 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)
diff --git a/mpcommon.c b/mpcommon.c
index e3e6c4ac81..b6e618742e 100644
--- a/mpcommon.c
+++ b/mpcommon.c
@@ -15,7 +15,3 @@
* with MPlayer; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-
-#include "version.h"
-
-const char *mplayer_version = "mplayer " VERSION;
diff --git a/version.c b/version.c
new file mode 100644
index 0000000000..e3e6c4ac81
--- /dev/null
+++ b/version.c
@@ -0,0 +1,21 @@
+/*
+ * This file is part of MPlayer.
+ *
+ * MPlayer is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * MPlayer is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with MPlayer; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#include "version.h"
+
+const char *mplayer_version = "mplayer " VERSION;