Index: tools/config.py
===================================================================
--- tools/config.py	(revision ecf0a04bcb6a86a1df0df00dbc2294763a2c7a03)
+++ 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()
