linux.cf: add some gcc system include paths to makedepend. Shaves about 5150 more...
[oweals/cde.git] / cde / config / cf / linux.cf
index 07edc5693d5e4f324bfd423dea18df0e9803ffd6..c277ce986c9a0c518a0d102f975b82560b9aa0e4 100644 (file)
@@ -1,5 +1,10 @@
 XCOMM platform:  $TOG: linux.cf /main/47 1998/04/17 11:32:51 mgreess $
 
+/* To reduce the number of warnings generated by X11 and Motif headers that
+   dislike -ansi and -pedantic we can include them with -isystem instead of
+   -I, this tells GCC to treat them as system includes out of our control */
+#define TopXInclude -isystem$(TOP)/imports/x11/include
+
 #ifndef OSName
 #define OSName                 DefaultOSName
 #endif
@@ -86,7 +91,7 @@ XCOMM binutils:  (LinuxBinUtilsMajorVersion)
 #define SetTtyGroup            YES
 
 #define CcCmd                  gcc -g -pipe
-#define CplusplusCmd           g++ -g -pipe -fpermissive 
+#define CplusplusCmd           g++ -g -pipe -fpermissive
 #define AsCmd                  as
 #define LdCmd                  ld
 
@@ -135,6 +140,15 @@ XCOMM binutils:  (LinuxBinUtilsMajorVersion)
 # endif
 #endif
 
+#ifdef SparcArchitecture
+#define LinuxMachineDefines -Dsparc
+
+#if UseElfFormat
+#define HasPlugin               YES
+#define VendorHasX11R6_3libXext YES     /* XC or XFree86 3.3.1 */
+#endif
+#endif /* SparcArchitecture */
+
 #ifdef ARMArchitecture
 #define LinuxMachineDefines -D__arm__
 #define LSBBitOrder             YES
@@ -155,6 +169,8 @@ XCOMM binutils:  (LinuxBinUtilsMajorVersion)
 #define HasPlugin              YES
 #define VendorHasX11R6_3libXext        YES     /* XC or XFree86 3.3.1 */
 #endif
+/* add this to void screenfuls of warnings from makedepend */
+#define DependFlags -I/usr/include/i386-linux-gnu
 #endif /* i386Architecture */
 
 #ifdef AMD64Architecture
@@ -167,6 +183,8 @@ XCOMM binutils:  (LinuxBinUtilsMajorVersion)
 #define HasPlugin              YES
 #define VendorHasX11R6_3libXext        YES     /* XC or XFree86 3.3.1 */
 #endif
+/* add this to void screenfuls of warnings from makedepend */
+#define DependFlags -I/usr/include/x86_64-linux-gnu
 #endif /* AMD64Architecture */
 
 #ifdef PpcArchitecture