Index: tools/config.py
===================================================================
--- tools/config.py	(revision 3ef901d0aab775d849f9f8547d72b38c45ab2727)
+++ tools/config.py	(revision 04c0fc5aa45ec90f84d2ef0b8b067f698c6f5f0e)
@@ -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()
