Integrate mainline
[p5sagit/p5-mst-13.2.git] / NetWare / Makefile
index d71cd47..d1ae901 100644 (file)
@@ -15,7 +15,7 @@
 ## This file is created by using the makefile that creates Windows Perl as the reference
 ## Author: sgp
 ## Date Created: 13th July 2000
-## Date Modified: 2nd July 2001
+## Date Modified: 29th Mar 2001
 
 # Name of the NLM
 NLM_NAME               = perl.nlm
@@ -306,20 +306,25 @@ EXTENSION_NLP     =               \
 #              $(CWD_NLP)      \
 # cwd.pm needs to be modifed for NetWare.
 
-# Begin - Following is required to build NetWare specific extensions Perl2UCS & CGI2Perl
 
-PERL2UCS               = $(EXTDIR)\Perl2UCS\Perl2UCS
-CGI2PERL               = CGI2Perl\CGI2Perl
+# Begin - Following is required to build NetWare specific extensions Perl2UCS, UCSExt & CGI2Perl
 
-PERL2UCS_NLP = $(AUTODIR)\Perl2UCS\Perl2UCS.nlp
-CGI2PERL_NLP = \CGI2Perl\CGI2Perl.nlp
+PERL2UCS       = $(EXTDIR)\Perl2UCS\Perl2UCS
+UCSEXT         = $(EXTDIR)\UCSExt\UCSExt
+CGI2PERL       = CGI2Perl\CGI2Perl
+
+PERL2UCS_NLP   =       $(AUTODIR)\Perl2UCS\Perl2UCS.nlp
+UCSEXT_NLP             =       $(AUTODIR)\UCSExt\UCSExt.nlp
+CGI2PERL_NLP   =       \CGI2Perl\CGI2Perl.nlp
 
 NETWARE_EXTNS =        \
                $(PERL2UCS_NLP) \
+               $(UCSEXT_NLP)   \
                $(CGI2PERL_NLP)
 
 # End
 
+
 ECHO_SRC                       = TestNLM\echo\echo.c
 TYPE_SRC                       = TestNLM\type\type.c
 ECHO_SRC_OBJ                   = $(ECHO_SRC:.c=.obj)
@@ -388,7 +393,7 @@ BASE_LIBRARIES =
 !endif                                                                                                                         #!ifdef WATCOM  
 !endif                                                                                                                         #!ifndef BASE_LIBRARIES
 
-COPYRIGHT = Copyright 2001 by Novell, Inc. All rights reserved.
+COPYRIGHT = (C) Copyright 2001-2002 Novell Inc. All rights reserved.
 
 EXPORTS = Export @perl.imp
 
@@ -686,11 +691,11 @@ MICROCORE_SRC     =               \
                ..\pp_pack.c    \
                ..\pp_sort.c    \
                ..\pp_sys.c     \
+               ..\reentr.c     \
                ..\regcomp.c    \
                ..\regexec.c    \
                ..\run.c        \
                ..\scope.c      \
-               ..\sharedsv.c   \
                ..\sv.c         \
                ..\taint.c      \
                ..\toke.c       \
@@ -744,7 +749,6 @@ CORE_NOCFG_H        =               \
                ..\proto.h      \
                ..\regexp.h     \
                ..\scope.h      \
-               ..\sharedsv.h   \
                ..\sv.h         \
                ..\thread.h     \
                ..\unixish.h    \
@@ -765,7 +769,7 @@ X2P_OBJ             = $(X2P_SRC:.c=.obj)
 DYNAMIC_EXT    = Socket IO Fcntl Opcode SDBM_File POSIX attrs Thread B re \
                Data/Dumper Devel/Peek ByteLoader Devel/DProf File/Glob \
                Storable/Storable List/Util MIME/Base64/Base64 \
-               XS/Typemap/Typemap Unicode/Normalize/Normalize Sys/Hostnamees
+               XS/Typemap/Typemap Unicode/Normalize/Normalize Sys/Hostname
 
 
 STATIC_EXT     = DynaLoader
@@ -847,10 +851,10 @@ all : .cleanoldfiles .\nwconfig.h $(CONFIGPM) $(NLM_NAME) $(EXTENSION_NLP) $(EXT
 regen_config_h:
        perl config_sh.PL $(NW_CFG_VARS) $(NW_CFGSH_TMPL) > ..\config.sh
        cd ..
-       -del /f perl.exe
+       -del /f /q perl.exe
        perl configpm
        cd netware
-       -del /f $(NW_CFGH_TMPL)
+       -del /f /q $(NW_CFGH_TMPL)
        -mkdir $(COREDIR)
        -perl -I..\lib config_h.PL "INST_VER=$(INST_VER)"
        rename config.h $(NW_CFGH_TMPL)
@@ -938,10 +942,10 @@ $(EXTDIR)\DynaLoader\dl_netware.xs: dl_netware.xs
 
 HEADERS :
        @echo . . . . making stdio.h and string.h
-       @copy << stdio.h >\nul
+       @copy << stdio.h >\nwnul
 
 /*
- * Copyright © 2001 Novell, Inc. All Rights Reserved.
+ * (C) Copyright 2001-2002 Novell Inc. All rights reserved.
  *
  * You may distribute under the terms of either the GNU General Public
  * License or the Artistic License, as specified in the README file.
@@ -975,10 +979,10 @@ HEADERS :
 <<
        @copy stdio.h $(COREDIR)
         
-       @copy << string.h >\nul
+       @copy << string.h >\nwnul
 
 /*
- * Copyright © 2001 Novell, Inc. All Rights Reserved.
+ * (C) Copyright 2001-2002 Novell Inc. All rights reserved.
  *
  * You may distribute under the terms of either the GNU General Public
  * License or the Artistic License, as specified in the README file.
@@ -1013,7 +1017,7 @@ HEADERS :
        @copy string.h $(COREDIR)
 
 
-$(NLM_NAME): MESSAGE HEADERS $(BLDDIR)\nul $(NLM_OBJ) $(NEWTARE_OBJ_DEP) $(PERL_IO_OBJ_DEP) $(PERL_LIB_OBJ_DEP) $(DLL_OBJ) .XDC $(PERLIMPLIB) $(EXT_MAIN_OBJ)
+$(NLM_NAME): MESSAGE HEADERS $(BLDDIR)\nwnul $(NLM_OBJ) $(NEWTARE_OBJ_DEP) $(PERL_IO_OBJ_DEP) $(PERL_LIB_OBJ_DEP) $(DLL_OBJ) .XDC $(PERLIMPLIB) $(EXT_MAIN_OBJ)
        @echo======= Linking $@ at $(MAKEDIR)\$(BLDDIR) =======
 !ifdef WATCOM
        @$(NLM_LINK) @<<$(BLDDIR)\$*.link
@@ -1046,6 +1050,7 @@ $(NLM_NAME): MESSAGE HEADERS $(BLDDIR)\nul $(NLM_OBJ) $(NEWTARE_OBJ_DEP) $(PERL_
 LibPath $(LIBPATH)
  $(BASE_LIBRARIES)
  Module clib
+ Module netdb
  $(BASE_IMPORT_FNS)
  $(BASE_IMPORT_FILES)
  $(ADD_IMPORT_FNS)
@@ -1064,16 +1069,16 @@ Import @perl.imp
 
 !if "$(MAKE_TYPE)"=="Debug"
 !ifdef NLM_NAME8
-       .\bat\cvpack $(BLDDIR)\$(NLM_NAME8).sym
+       .\bat\cvpack $(BLDDIR)\$(NLM_NAME8).sym
 !else
-       .\bat\cvpack $(BLDDIR)\$(NLM_NAME).sym
+       .\bat\cvpack $(BLDDIR)\$(NLM_NAME).sym
 !endif
 !endif
 
        @echo======= Finished building $(BUILT).
  
 # Create the debug\release directory if not existing
-$(BLDDIR)\nul:
+$(BLDDIR)\nwnul:
        @echo . . . . mkdir $(BLDDIR)
        @mkdir $(BLDDIR)
 
@@ -1154,14 +1159,17 @@ $(EXT_MAIN_OBJ) : $(CLIB_H_FILES)
 # config.sh will definitely be created
 # COREDIR might have got created
 .cleanoldfiles :
-       -del ..\config.sh
-       -del .\Main.obj
-       -del .\Main.lib
+       -del /f /q $(PERLIMPLIB)
+       -del /f /q ..\lib\config.pm
+       -del /f /q ..\config.sh
+       -del /f /q .\Main.obj
+       -del /f /q .\Main.lib
        -rmdir /s /q $(AUTODIR)
        -rmdir /s /q $(COREDIR)
+       -del /f /q ..\lib\core
 
 .\nwconfig.h : $(NW_CFGH_TMPL)
-       -del /f config.h
+       -del /f /q config.h
        copy $(NW_CFGH_TMPL) config.h
 
 # REQUIRED WHEN WE INCLUDE CONFIGPM OR REGEN_CONFIG - sgp
@@ -1169,7 +1177,7 @@ $(EXT_MAIN_OBJ) : $(CLIB_H_FILES)
 #      $(MINIPERL) -I..\lib config_sh.PL $(NW_CFG_VARS) config.nw5 > ..\config.sh
 #      @pause
 #      cd ..
-#      del config.sh
+#      del /f /q config.sh
 #      rename nwconfig.sh config.sh
 #      cd netware
 
@@ -1178,139 +1186,139 @@ config.nw5 : $(NW_CFGSH_TMPL)
 
 $(SOCKET_NLP): $(NLM_NAME) $(SOCKET).xs
        cd $(EXTDIR)\$(*B)
-       ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
+       ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
        $(MAKE)
        cd ..\..\netware
 
 $(HOSTNAME_NLP): $(NLM_NAME) $(HOSTNAME).xs
        cd $(EXTDIR)\Sys\$(*B)
-       ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
+       ..\..\..\miniperl -I..\..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
        $(MAKE)
        cd ..\..\..\netware
 
 $(FCNTL_NLP):
        cd $(EXTDIR)\$(*B)
-       ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
+       ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
        $(MAKE)
        cd ..\..\netware
 
 $(IO_NLP):
        cd $(EXTDIR)\$(*B)
-       ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
+       ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
        $(MAKE)
        cd ..\..\netware
 
 $(OPCODE_NLP):
        cd $(EXTDIR)\$(*B)
-       ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
+       ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
        $(MAKE)
        cd ..\..\netware
 
 $(B_NLP):
        cd $(EXTDIR)\$(*B)
-       ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
+       ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
        $(MAKE)
        cd ..\..\netware
 
 $(DUMPER_NLP):
        cd $(EXTDIR)\Data\$(*B)
-       ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
+       ..\..\..\miniperl -I..\..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
        $(MAKE)
        cd ..\..\..\netware
 
 $(PEEK_NLP):
        cd $(EXTDIR)\Devel\$(*B)
-       ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
+       ..\..\..\miniperl -I..\..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
        $(MAKE)
        cd ..\..\..\netware
 
 $(RE_NLP):
        cd $(EXTDIR)\$(*B)
-       ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
+       ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
        $(MAKE)
        cd ..\..\netware
 
 $(BYTELOADER_NLP):
        cd $(EXTDIR)\$(*B)
-       ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
+       ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
        $(MAKE)
        cd ..\..\netware
 
 $(DPROF_NLP):
        cd $(EXTDIR)\Devel\$(*B)
-       ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
+       ..\..\..\miniperl -I..\..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
        $(MAKE)
        cd ..\..\..\netware
 
 $(GLOB_NLP):
        cd $(EXTDIR)\File\$(*B)
-       ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
+       ..\..\..\miniperl -I..\..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
        $(MAKE)
        cd ..\..\..\netware
 
 $(POSIX_NLP):
        cd $(EXTDIR)\$(*B)
-       ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
+       ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
        $(MAKE)
        cd ..\..\netware
 
 $(THREAD_NLP):
        cd $(EXTDIR)\$(*B)
-       ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
+       ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
        $(MAKE)
        cd ..\..\netware
 
 $(ATTRS_NLP):
        cd $(EXTDIR)\$(*B)
-       ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
+       ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
        $(MAKE)
        cd ..\..\netware
 
 $(SDBM_FILE_NLP):
        cd $(EXTDIR)\$(*B)
-       ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
+       ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
        $(MAKE)
        cd ..\..\netware
 
 $(CWD_NLP):
        cd $(EXTDIR)\$(*B)
-       ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
+       ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
        $(MAKE)
        cd ..\..\netware
 
 $(STORABLE_NLP):
        cd $(EXTDIR)\$(*B)
-       ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
+       ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
        $(MAKE)
        cd ..\..\netware
 
 $(LISTUTIL_NLP):
        cd $(EXTDIR)\List\$(*B)
-       ..\..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
+       ..\..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
        $(MAKE)
        cd ..\..\..\netware
 
 $(MIMEBASE64_NLP):
        cd $(EXTDIR)\Mime\$(*B)
-       ..\..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
+       ..\..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
        $(MAKE)
        cd ..\..\..\netware
 
 $(XSTYPEMAP_NLP):
        cd $(EXTDIR)\XS\$(*B)
-       ..\..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
+       ..\..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
        $(MAKE)
        cd ..\..\..\netware
 
 $(UNICODENORMALIZE_NLP):
        cd $(EXTDIR)\Unicode\$(*B)
-       ..\..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
+       ..\..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
        $(MAKE)
        cd ..\..\..\netware
 
 $(ERRNO_PM_NW):
        cd $(EXTDIR)\$(*B)
-       ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
+       ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
        $(MAKE)
        cd ..\..\netware
 
@@ -1391,7 +1399,7 @@ Import @perl.imp
 $(CGI2PERL_NLP):
 !if "$(NW_EXTNS)"=="yes"
        cd $(*B)
-       ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
+       ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
        $(MAKE)
        cd ..\..\netware
 !endif
@@ -1399,22 +1407,32 @@ $(CGI2PERL_NLP):
 $(PERL2UCS_NLP):
 !if "$(NW_EXTNS)"=="yes"
        cd $(EXTDIR)\$(*B)
-       ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
+       ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
+       $(MAKE)
+       cd ..\..\netware
+!endif
+
+$(UCSEXT_NLP):
+!if "$(NW_EXTNS)"=="yes"
+       cd $(EXTDIR)\$(*B)
+       ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
        $(MAKE)
        cd ..\..\netware
 !endif
 
 nwclean:
-       -rmdir /s /q $(REL_DIR) || rmdir /s $(REL_DIR)
-       -rmdir /s /q $(DEB_DIR) || rmdir /s $(DEB_DIR)
-       @if exist .\stdio.h del .\stdio.h
-       @if exist .\string.h del .\string.h
-       @if exist .\Main.obj del .\Main.obj
-       @if exist .\Main.lib del .\Main.lib
+       -rmdir /s /q $(REL_DIR)
+       -rmdir /s /q $(DEB_DIR)
+       @if exist .\stdio.h del /f /q .\stdio.h
+       @if exist .\string.h del /f /q .\string.h
+       @if exist .\Main.obj del /f /q  .\Main.obj
+       @if exist .\Main.lib del /f /q .\Main.lib
+       @if exist .\config.nw5 del /f /q .\config.nw5
+       @if exist .\perl.imp del /f /q .\perl.imp
        cd testnlm\echo
-       -del *.obj *.map *.link *.options *.nlm *.sym *.xdc *.err
+       -del /f /q *.obj *.map *.link *.options *.nlm *.sym *.xdc *.err
        cd ..\type
-       -del *.obj *.map *.link *.options *.nlm *.sym *.xdc *.err
+       -del /f /q *.obj *.map *.link *.options *.nlm *.sym *.xdc *.err
        cd ..\..\
 
 utils: $(BLDDIR)\$(NLM_NAME8).$(NLM_EXT) $(X2P)
@@ -1435,53 +1453,56 @@ utils: $(BLDDIR)\$(NLM_NAME8).$(NLM_EXT) $(X2P)
        $(MINIPERL) $(PL2BAT) $(UTILS)
 
 distclean: clean nwclean
-       -del /f $(PERLIMPLIB) ..\miniperl.lib $(MINIMOD)
-       -del /f *.def *.map
-       -del /f $(EXTENSION_NPM)
-       -del /f $(EXTENSION_C) $(DYNALOADER).c $(ERRNO).pm
-       -del /f $(EXTDIR)\DynaLoader\dl_netware.xs
-       -del /f $(LIBDIR)\.exists $(LIBDIR)\attrs.pm $(LIBDIR)\DynaLoader.pm
-       -del /f $(LIBDIR)\XSLoader.pm
-       -del /f $(LIBDIR)\Fcntl.pm $(LIBDIR)\IO.pm $(LIBDIR)\Opcode.pm
-       -del /f $(LIBDIR)\ops.pm $(LIBDIR)\Safe.pm
-       -del /f $(LIBDIR)\SDBM_File.pm $(LIBDIR)\Socket.pm $(LIBDIR)\POSIX.pm
-       -del /f $(LIBDIR)\B.pm $(LIBDIR)\O.pm $(LIBDIR)\re.pm
-       -del /f $(LIBDIR)\Data\Dumper.pm $(LIBDIR)\ByteLoader.pm
-       -del /f $(LIBDIR)\Devel\Peek.pm $(LIBDIR)\Devel\DProf.pm
-       -del /f $(LIBDIR)\File\Glob.pm
-       -del /f $(LIBDIR)\Unicode\Normalize.pm
-       -rmdir /s /q $(LIBDIR)\IO || rmdir /s $(LIBDIR)\IO
-       -rmdir /s /q $(LIBDIR)\Thread || rmdir /s $(LIBDIR)\Thread
-       -rmdir /s /q $(LIBDIR)\B || rmdir /s $(LIBDIR)\B
-       -rmdir /s /q $(LIBDIR)\Data || rmdir /s $(LIBDIR)\Data
-       -del /f $(PODDIR)\*.html
-       -del /f $(PODDIR)\*.bat
+       -del /f /q $(PERLIMPLIB) ..\miniperl.lib $(MINIMOD)
+       -del /f /q *.def *.map
+       -del /f /q $(EXTENSION_NPM)
+       -del /f /q $(EXTENSION_C) $(DYNALOADER).c $(ERRNO).pm
+       -del /f /q $(EXTDIR)\DynaLoader\dl_netware.xs
+       -del /f /q $(LIBDIR)\.exists $(LIBDIR)\attrs.pm $(LIBDIR)\DynaLoader.pm
+       -del /f /q $(LIBDIR)\XSLoader.pm
+       -del /f /q $(LIBDIR)\Fcntl.pm $(LIBDIR)\IO.pm $(LIBDIR)\Opcode.pm
+       -del /f /q $(LIBDIR)\ops.pm $(LIBDIR)\Safe.pm
+       -del /f /q $(LIBDIR)\SDBM_File.pm $(LIBDIR)\Socket.pm $(LIBDIR)\POSIX.pm
+       -del /f /q $(LIBDIR)\B.pm $(LIBDIR)\O.pm $(LIBDIR)\re.pm
+       -del /f /q $(LIBDIR)\Data\Dumper.pm $(LIBDIR)\ByteLoader.pm
+       -del /f /q $(LIBDIR)\Devel\Peek.pm $(LIBDIR)\Devel\DProf.pm
+       -del /f /q $(LIBDIR)\File\Glob.pm
+       -del /f /q $(LIBDIR)\Unicode\Normalize.pm
+       -rmdir /s /q $(LIBDIR)\IO
+       -rmdir /s /q $(LIBDIR)\Thread
+       -rmdir /s /q $(LIBDIR)\B
+       -rmdir /s /q $(LIBDIR)\Data
+       -del /f /q $(PODDIR)\*.html
+       -del /f /q $(PODDIR)\*.bat
        cd ..\utils
-       -del /f h2ph splain perlbug pl2pm c2ph h2xs perldoc dprofpp
-       -del /f *.bat
+       -del /f /q h2ph splain perlbug pl2pm c2ph h2xs perldoc dprofpp
+       -del /f /q *.bat
        cd ..\netware
        cd ..\x2p
-       -del /f find2perl s2p
-       -del /f *.bat
-       -del *.obj *.map *.link *.xdc *.err
+       -del /f /q find2perl s2p
+       -del /f /q *.bat
+       -del /f /q *.obj *.map *.link *.xdc *.err
        cd ..\netware
-       -del /f ..\config.sh ..\splittree.pl dlutils.c config.h.new
-       -del /f $(CONFIGPM)
-       -del /f bin\*.bat
+       -del /f /q ..\config.sh ..\splittree.pl dlutils.c config.h.new
+       -del /f /q $(CONFIGPM)
+       -del /f /q bin\*.bat
        cd $(EXTDIR)
-       -del /s *.lib *.def *.map *.pdb *.bs Makefile *$(o) pm_to_blib *.xdc *.err
+       -del /s /f /q *.lib *.def *.map *.pdb *.bs Makefile *$(o) pm_to_blib *.xdc *.err
        cd ..\netware
 !if "$(NW_EXTNS)"=="yes"
        cd cgi2perl
-       -del *.obj *.bs Makefile *$(o) *.c pm_to_blib *.xdc *.err *.sym *.map
+       -del /f /q *.obj *.bs Makefile *$(o) *.c pm_to_blib *.xdc *.err *.sym *.map
        cd ..
        cd $(EXTDIR)\Perl2UCS
-       -del *.obj *.bs Makefile *$(o) *.c pm_to_blib *.xdc *.err *.sym *.map *.c
+       -del /f /q *.obj *.bs Makefile *$(o) *.c pm_to_blib *.xdc *.err *.sym *.map *.c
+       cd ..\..\netware
+       cd $(EXTDIR)\UCSExt
+       -del /f /q *.obj *.bs Makefile *$(o) *.c pm_to_blib *.xdc *.err *.sym *.map *.c
        cd ..\..\netware
 !endif
-       -rmdir /s /q $(AUTODIR) || rmdir /s $(AUTODIR)
-       -rmdir /s /q $(COREDIR) || rmdir /s $(COREDIR)
-       -del ..\config.sh
+       -rmdir /s /q $(AUTODIR)
+       -rmdir /s /q $(COREDIR)
+       -del /f /q ..\config.sh
 
 installwin:
        $(MINIPERL) -I..\lib ..\installperl