On my configuration, the 'artsc-config' script outputs '-pthread' along with the '-Isth' entries. That broke the 'makedep' procedure. It's trivial. The following patch handles this.
Index: makedep.c =================================================================== RCS file: /home/wine/wine/tools/makedep.c,v retrieving revision 1.17 diff -u -r1.17 makedep.c --- makedep.c 20 Jun 2003 21:31:13 -0000 1.17 +++ makedep.c 30 Dec 2003 11:36:55 -0000 @@ -511,6 +511,9 @@ if (opt[2]) Separator = opt + 2; else Separator = NULL; break; + case 'p': + /* Don't complain about the -pthread compiler option */ + break; default: fprintf( stderr, "Unknown option '%s'\n", opt ); fprintf( stderr, Usage, ProgramName );