Fixed problem with spaces in paths in generated canfetival_config.py
authoretisserant
Mon, 18 Feb 2008 10:35:14 +0100
changeset 397 f9e720b220ea
parent 396 a43910975547
child 398 c928fd8cb759
Fixed problem with spaces in paths in generated canfetival_config.py
objdictgen/canfestival_config.py.in
--- a/objdictgen/canfestival_config.py.in	Mon Feb 18 10:34:10 2008 +0100
+++ b/objdictgen/canfestival_config.py.in	Mon Feb 18 10:35:14 2008 +0100
@@ -33,7 +33,8 @@
 
 def getCFLAGS(Cpth):
 	ipth = opj(Cpth, "include")
-	return PROG_CFLAGS + ' -I' + ipth  + ' -I' + opj(ipth, TARGET)  + ' -I' + opj(ipth, CAN_DRIVER)  + ' -I' + opj(ipth,TIMERS_DRIVER)
+	return PROG_CFLAGS + ' -I"' + ipth  + '" -I"' + opj(ipth, TARGET)  + '" -I"' + opj(ipth, CAN_DRIVER)  + '" -I"' + opj(ipth,TIMERS_DRIVER) + '"'
 
 def getLDFLAGS(Cpth):
-    return EXE_CFLAGS + ' ' + opj(Cpth,"src","libcanfestival.a") + ' ' + opj(Cpth,"drivers", TARGET, "libcanfestival_%s.a"%TARGET)
+    return EXE_CFLAGS + ' "' + opj(Cpth,"src","libcanfestival.a") + '" "' + opj(Cpth,"drivers", TARGET, "libcanfestival_%s.a"%TARGET)+ '"'
+