Index: tools/config.py
===================================================================
--- tools/config.py	(revision 15e0b4d88710e5d7863534c3e28a90d76a4aa4ca)
+++ tools/config.py	(revision 093e956411e17852a3512765596e707c0683f2cc)
@@ -586,11 +586,11 @@
 	outmk.write('TIMESTAMP_UNIX = %d\n' % timestamp_unix)
 	outmc.write('#define TIMESTAMP_UNIX %d\n' % timestamp_unix)
-	defs += ' "-DTIMESTAMP_UNIX=%d"\n' % timestamp_unix
+	defs += ' "-DTIMESTAMP_UNIX=%d"' % timestamp_unix
 
 	outmk.write('TIMESTAMP = %s\n' % timestamp)
 	outmc.write('#define TIMESTAMP %s\n' % timestamp)
-	defs += ' "-DTIMESTAMP=%s"\n' % timestamp
-
-	outmk.write(defs)
+	defs += ' "-DTIMESTAMP=%s"' % timestamp
+
+	outmk.write('%s\n' % defs)
 
 	outmk.close()
