Index: kdevelop/ckdevelop.cpp
===================================================================
RCS file: /home/kde/kdevelop/kdevelop/ckdevelop.cpp,v
retrieving revision 1.158.2.114.2.140.2.43
diff -u -r1.158.2.114.2.140.2.43 ckdevelop.cpp
--- kdevelop/ckdevelop.cpp	2002/06/11 23:53:03	1.158.2.114.2.140.2.43
+++ kdevelop/ckdevelop.cpp	2002/06/20 13:43:23
@@ -935,11 +935,20 @@
  	QString conf=compile_combo->currentText();
   QString flags, makefile;
 
+  /* Setting the flags (CPPFLAGS, CFLAGS, CXXFLAGS, ADDCXXFLAGS) here don't do anything 
+      unless the flags are part of the right side of the (g)make call
+      on the left side they are only informative and of interest for the debug output
+      so consider this code as obsolete, but it does no harm.
+      The setting of the flags is only done by the configure-call!!!
+      W. Tasin 20.06.2002
+  */
   if (prj->getProjectType()!="normal_empty")
   {
    	QString cppflags, cflags, cxxflags, addcxxflags, ldflags, group;
     if(conf==i18n("(Default)")){
 		  QDir::setCurrent(actualDir);
+   		cppflags=prj->getCPPFLAGS().simplifyWhiteSpace();
+   		cflags=prj->getCFLAGS().simplifyWhiteSpace();
    		cxxflags=prj->getCXXFLAGS().simplifyWhiteSpace();
    		addcxxflags=prj->getAdditCXXFLAGS().simplifyWhiteSpace();
    		ldflags=prj->getLDFLAGS().simplifyWhiteSpace();
@@ -1894,11 +1903,20 @@
  	QString conf=compile_combo->currentText();
   QString flags, makefile;
 
+ /* Setting the flags (CPPFLAGS, CFLAGS, CXXFLAGS, ADDCXXFLAGS) here don't do anything 
+      unless the flags are part of the right side of the (g)make call
+      on the left side they are only informative and of interest for the debug output
+      so consider this code as obsolete, but it does no harm.
+      The setting of the flags is only done by the configure-call!!!
+      W. Tasin 20.06.2002
+ */
   if (type!=CMakefile::cvs)
   {
    	QString cppflags, cflags, cxxflags, addcxxflags, ldflags, group;
     if(conf==i18n("(Default)")){
     	QDir::setCurrent(prj->getProjectDir());
+   		cppflags=prj->getCPPFLAGS().simplifyWhiteSpace();
+   		cflags=prj->getCFLAGS().simplifyWhiteSpace();
    		cxxflags=prj->getCXXFLAGS().simplifyWhiteSpace();
    		addcxxflags=prj->getAdditCXXFLAGS().simplifyWhiteSpace();
    		ldflags=prj->getLDFLAGS().simplifyWhiteSpace();
@@ -2119,6 +2137,8 @@
 	// get all other strings
   if(conf==i18n("(Default)"))
   {
+		cppflags=prj->getCPPFLAGS().simplifyWhiteSpace();
+		cflags=prj->getCFLAGS().simplifyWhiteSpace();
 		cxxflags=prj->getCXXFLAGS().simplifyWhiteSpace();
 		addcxxflags=prj->getAdditCXXFLAGS().simplifyWhiteSpace();
 		ldflags=prj->getLDFLAGS().simplifyWhiteSpace();
Index: kdevelop/ckdevelop_project.cpp
===================================================================
RCS file: /home/kde/kdevelop/kdevelop/ckdevelop_project.cpp,v
retrieving revision 1.82.2.47.2.72.2.20
diff -u -r1.82.2.47.2.72.2.20 ckdevelop_project.cpp
--- kdevelop/ckdevelop_project.cpp	2002/04/03 15:27:20	1.82.2.47.2.72.2.20
+++ kdevelop/ckdevelop_project.cpp	2002/06/20 13:43:23
@@ -422,6 +422,8 @@
   }
   else
   {
+     cppflags=prj->getCPPFLAGS().simplifyWhiteSpace();
+     cflags=prj->getCFLAGS().simplifyWhiteSpace();
      cxxflags=prj->getCXXFLAGS().simplifyWhiteSpace();
      addcxxflags=prj->getAdditCXXFLAGS().simplifyWhiteSpace();
      ldflags=prj->getLDFLAGS().simplifyWhiteSpace();
