Added LGPL standard comment, and copyright notices where necessary.
Global replacement of debugtools.h by wine/debug.h.

diff --git a/files/change.c b/files/change.c
index a7a4cd0..32370c0 100644
--- a/files/change.c
+++ b/files/change.c
@@ -7,6 +7,20 @@
  * See http://x57.deja.com/getdoc.xp?AN=575483053 for possible solutions.
  *
  * Copyright 1998 Ulrich Weigand
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
 #include <assert.h>
@@ -17,9 +31,9 @@
 #include "winbase.h"
 #include "winerror.h"
 #include "wine/server.h"
-#include "debugtools.h"
+#include "wine/debug.h"
 
-DEFAULT_DEBUG_CHANNEL(file);
+WINE_DEFAULT_DEBUG_CHANNEL(file);
 
 /****************************************************************************
  *		FindFirstChangeNotificationA (KERNEL32.@)
diff --git a/files/directory.c b/files/directory.c
index c6f0b4e..95121b1 100644
--- a/files/directory.c
+++ b/files/directory.c
@@ -2,6 +2,20 @@
  * DOS directories functions
  *
  * Copyright 1995 Alexandre Julliard
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
 #include "config.h"
@@ -30,10 +44,10 @@
 #include "heap.h"
 #include "msdos.h"
 #include "options.h"
-#include "debugtools.h"
+#include "wine/debug.h"
 
-DEFAULT_DEBUG_CHANNEL(dosfs);
-DECLARE_DEBUG_CHANNEL(file);
+WINE_DEFAULT_DEBUG_CHANNEL(dosfs);
+WINE_DECLARE_DEBUG_CHANNEL(file);
 
 static DOS_FULL_NAME DIR_Windows;
 static DOS_FULL_NAME DIR_System;
diff --git a/files/dos_fs.c b/files/dos_fs.c
index ff756fc..ebd9c9b 100644
--- a/files/dos_fs.c
+++ b/files/dos_fs.c
@@ -3,6 +3,20 @@
  *
  * Copyright 1993 Erik Bos
  * Copyright 1996 Alexandre Julliard
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
 #include "config.h"
@@ -37,10 +51,10 @@
 #include "wine/server.h"
 #include "msvcrt/excpt.h"
 
-#include "debugtools.h"
+#include "wine/debug.h"
 
-DEFAULT_DEBUG_CHANNEL(dosfs);
-DECLARE_DEBUG_CHANNEL(file);
+WINE_DEFAULT_DEBUG_CHANNEL(dosfs);
+WINE_DECLARE_DEBUG_CHANNEL(file);
 
 /* Define the VFAT ioctl to get both short and long file names */
 /* FIXME: is it possible to get this to work on other systems? */
diff --git a/files/drive.c b/files/drive.c
index 9ed9c58..302edca 100644
--- a/files/drive.c
+++ b/files/drive.c
@@ -8,6 +8,19 @@
  *  (c) 1999 Petr Tomasek <tomasek@etf.cuni.cz>
  *  (c) 2000 Andreas Mohr (changes)
  *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
 #include "config.h"
@@ -49,14 +62,14 @@
 #include "msdos.h"
 #include "options.h"
 #include "task.h"
-#include "debugtools.h"
+#include "wine/debug.h"
 #include "wine/server.h"
 #include "winioctl.h"
 #include "ntddstor.h"
 #include "ntddcdrm.h"
 
-DEFAULT_DEBUG_CHANNEL(dosfs);
-DECLARE_DEBUG_CHANNEL(file);
+WINE_DEFAULT_DEBUG_CHANNEL(dosfs);
+WINE_DECLARE_DEBUG_CHANNEL(file);
 
 typedef struct
 {
diff --git a/files/file.c b/files/file.c
index 19a0173..c108857 100644
--- a/files/file.c
+++ b/files/file.c
@@ -4,6 +4,20 @@
  * Copyright 1993 John Burton
  * Copyright 1996 Alexandre Julliard
  *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *
  * TODO:
  *    Fix the CopyFileEx methods to implement the "extended" functionality.
  *    Right now, they simply call the CopyFile method.
@@ -42,11 +56,11 @@
 #include "heap.h"
 #include "msdos.h"
 #include "wincon.h"
-#include "debugtools.h"
+#include "wine/debug.h"
 
 #include "wine/server.h"
 
-DEFAULT_DEBUG_CHANNEL(file);
+WINE_DEFAULT_DEBUG_CHANNEL(file);
 
 #if defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
 #define MAP_ANON MAP_ANONYMOUS
diff --git a/files/profile.c b/files/profile.c
index bcea9b2..a15e165 100644
--- a/files/profile.c
+++ b/files/profile.c
@@ -3,6 +3,20 @@
  *
  * Copyright 1993 Miguel de Icaza
  * Copyright 1996 Alexandre Julliard
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
 #include <ctype.h>
@@ -24,11 +38,11 @@
 #include "winreg.h"
 #include "file.h"
 #include "heap.h"
-#include "debugtools.h"
+#include "wine/debug.h"
 #include "options.h"
 #include "wine/server.h"
 
-DEFAULT_DEBUG_CHANNEL(profile);
+WINE_DEFAULT_DEBUG_CHANNEL(profile);
 
 typedef struct tagPROFILEKEY
 {
diff --git a/files/tape.c b/files/tape.c
index a9c17b1..fe1ad04 100644
--- a/files/tape.c
+++ b/files/tape.c
@@ -4,15 +4,29 @@
  * Copyright 1999 Chris Morgan <cmorgan@wpi.edu>
  *                James Abbatiello <abbeyj@wpi.edu>
  *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *
  * TODO: 
  *    Everything, all functions are stubs.
  */
 
 #include "winbase.h"
 #include "winerror.h"
-#include "debugtools.h"
+#include "wine/debug.h"
 
-DEFAULT_DEBUG_CHANNEL(tape);
+WINE_DEFAULT_DEBUG_CHANNEL(tape);
 
 
 /************************************************************************