2 ## Makefile to build Perl on NetWare using Microsoft NMAKE and Watcom tools
4 ## This will build perl.nlm, perl.lib and extensions called NLPs
8 ## Please read README.netware before starting
12 ## Build configuration. Edit the values below to suit your needs.
15 ## This file is created by using the makefile that creates Windows Perl as the reference
17 ## Date Created: 13th July 2000
18 ## Date Modified: 2nd July 2001
29 NW_FLAGS = -DNETWARE -DNLM_PLATFORM -DNETDB_USE_INTERNET
36 !message "Run bat\buildtype.bat to set the build type before continuing.\n"
38 !endif #!ifndef MAKE_TYPE
41 MPKFLAGS = -DMPK_ON -DIAPX386
42 MPKMESSAGE = MPK Build...
46 !message "Run bat\setnwbld.bat to set the NetWare MPK SDK before continuing.\n"
48 !endif #ifndef MPKBASE
49 NLM_INCLUDE_MP = $(MPKBASE)\include
50 MPKTOOL = $(MPKBASE)\$(XDCTOOL)
52 MPKMESSAGE = Non MPK Build...
58 #NLMSDKBASE = P:\ndk\nwsdk
59 !message "Run bat\setnwbld.bat to set the NetWare SDK before continuing.\n"
61 !endif #ifndef NLMSDKBASE
62 NLMIMPORTS = $(NLMSDKBASE)\imports
69 TOOL_HEADERS = $(WATCOM)\H;$(WATCOM)\H\NT
70 TOOL_PATH = $(WATCOM)\BINNT;$(WATCOM)\BINW
71 CCFLAGS = /zp1 /5s /w1 /zq /ms /otexanih /fpi
72 COMPILER_FLAG = -DWATCOM
74 !if "$(MAKE_TYPE)"=="Debug"
76 BLDMESG = Debug version,
78 BS_CFLAGS = /od /d2 /en /st /hc -DDEBUGGING -DUSE_D2 $(DBG_FLAG)
79 BLDMESG = $(BLDMESG) Using /d2 option
81 BS_CFLAGS = /od /d1 /en /st /hc -DDEBUGGING $(DBG_FLAG)
82 BLDMESG = $(BLDMESG) Using /d1 option
86 BLDMESG = Release version
88 !endif #if "$(MAKE_TYPE)"=="Debug"
91 # Here comes the CW tools - TO BE FILLED TO BUILD WITH CW -
101 # Debug flags comes here - Not mandatory - required only for debug build
102 !if "$(MAKE_TYPE)"=="Debug"
104 BLDMESG = Debug version,
107 BLDMESG = $(BLDMESG) Using /d2 option
110 BLDMESG = $(BLDMESG) Using /d1 option
111 !endif #!ifdef USE_D2
114 BLDMESG = Release version
116 !endif #if "$(MAKE_TYPE)"=="Debug"
117 !else #!ifdef CODEWARRIOR
118 !message "Tools base directory is not defined. Run bat\setnwbld.bat before proceeding"
121 !endif #!ifdef CODEWARRIOR
124 ADD_LOCDEFS = -DPERL_CORE
126 NLM_INCLUDE = -I$(NLMSDKBASE)\include
127 NLM_INCLUDE_NLM = -I$(NLMSDKBASE)\include\nlm
128 NLM_INCLUDE_NLM_SYS = -I$(NLMSDKBASE)\include\nlm\sys
129 INCLUDE_NW = -I.\include
133 NLM_INCLUDE_PATH = $(NLMSDKBASE)\include\nlm;$(NLMSDKBASE)\include;$(NLMSDKBASE)\include\nlm\sys;$(NLM_INCLUDE_MP);$(TOOL_HEADERS)
135 INCLUDE = $(NLM_INCLUDE_PATH)
137 PATH = $(PATH);$(TOOL_PATH)
139 NLM_INCLUDES = -I$(COREDIR) $(INCLUDE_NW) $(INC_THIS) $(INC_PREV)
141 COMPLER_FLAGS = $(CCFLAGS) $(BS_CFLAGS) $(ADD_BUILDOPT) $(NW_FLAGS) $(COMPILER_FLAG) $(MPKFLAGS)
192 NW_SRC_OBJ = $(NW_SRC:.c=.obj)
193 NLM_MICROCORE_OBJ = $(MICROCORE_SRC:.c=.obj)
194 PERL_LIB_OBJ = $(PERL_LIB_SRC:.c=.obj)
195 PERL_IO_OBJ = $(PERL_IO_SRC:.c=.obj)
196 NLM_CORE_OBJ = $(NLM_MICROCORE_OBJ)
197 EXT_MAIN_OBJ = $(EXT_MAIN_SRC:.c=.obj)
199 # For dependency checking
200 # $(BLDDIR) in place of Release or Debug is not working, should look into this - sgp
201 !if "$(BLDDIR)"=="Release"
202 NLM_OBJ = $(NLM_CORE_OBJ:..\=.\Release\)
203 NEWTARE_OBJ_DEP = $(NW_SRC_OBJ:.\=.\Release\)
204 PERL_LIB_OBJ_DEP = $(PERL_LIB_OBJ:.\=.\Release\)
205 PERL_IO_OBJ_DEP = $(PERL_IO_OBJ:..\=.\Release\)
207 NLM_OBJ = $(NLM_CORE_OBJ:..\=.\Debug\)
208 NEWTARE_OBJ_DEP = $(NW_SRC_OBJ:.\=.\Debug\)
209 PERL_LIB_OBJ_DEP = $(PERL_LIB_OBJ:.\=.\Debug\)
210 PERL_IO_OBJ_DEP = $(PERL_IO_OBJ:..\=.\Debug\)
213 # Symbol base_import & version added for NETWARE
215 "INST_DRV=$(INST_DRV)" \
216 "INST_TOP=$(INST_TOP)" \
217 "INST_VER=$(INST_VER)" \
218 "INST_ARCH=$(INST_ARCH)" \
219 "INST_NW_TOP1=$(INST_NW_TOP1)" \
220 "INST_NW_TOP2=$(INST_NW_TOP2)" \
221 "INST_NW_VER=$(INST_NW_VER)" \
222 "archname=$(ARCHNAME)" \
224 "ccflags=$(COMPLER_FLAGS)" \
225 "cf_email=$(EMAIL)" \
226 "d_crypt=$(D_CRYPT)" \
227 "d_mymalloc=$(PERL_MALLOC)" \
228 # "libs=$(LIBFILES)" \
229 "incpath=$(NLM_INCLUDE_PATH)" \
230 "libperl=$(PERLIMPLIB:..\=)" \
231 "libpth=$(LIBPATH)" \
234 "static_ext=$(STATIC_EXT)" \
235 "dynamic_ext=$(DYNAMIC_EXT)" \
236 "nonxs_ext=$(NONXS_EXT)" \
237 "use5005threads=$(USE_5005THREADS)" \
238 "useithreads=$(USE_ITHREADS)" \
239 "usethreads=$(USE_5005THREADS)" \
240 "usemultiplicity=$(USE_MULTI)" \
242 "base_import=$(BASE_IMPORT_FILES)" \
243 "LINK_FLAGS=$(LINK_FLAGS:"=\")" \
246 "d_stdio_cnt_lval=undef" \
247 "d_stdio_ptr_lval=undef" \
248 "d_stdiobase=undef" \
252 "nlm_version=$(NLM_VERSION)" \
253 "d_archname=NetWare" \
254 "mpktool=$(MPKTOOL) $(XDCFLAGS)" \
255 "toolpath=$(TOOL_PATH)"
258 NW_CFGSH_TMPL = config.wc
259 NW_CFGH_TMPL = config_H.wc
261 SOCKET_NLP = $(AUTODIR)\Socket\Socket.nlp
262 FCNTL_NLP = $(AUTODIR)\Fcntl\Fcntl.nlp
263 IO_NLP = $(AUTODIR)\IO\IO.nlp
264 OPCODE_NLP = $(AUTODIR)\Opcode\Opcode.nlp
265 SDBM_FILE_NLP = $(AUTODIR)\SDBM_File\SDBM_File.nlp
266 POSIX_NLP = $(AUTODIR)\POSIX\POSIX.nlp
267 ATTRS_NLP = $(AUTODIR)\attrs\attrs.nlp
268 THREAD_NLP = $(AUTODIR)\Thread\Thread.nlp
269 B_NLP = $(AUTODIR)\B\B.nlp
270 DUMPER_NLP = $(AUTODIR)\Data\Dumper\Dumper.nlp
271 PEEK_NLP = $(AUTODIR)\Devel\Peek\Peek.nlp
272 RE_NLP = $(AUTODIR)\re\re.nlp
273 BYTELOADER_NLP = $(AUTODIR)\ByteLoader\ByteLoader.nlp
274 DPROF_NLP = $(AUTODIR)\Devel\DProf\DProf.nlp
275 GLOB_NLP = $(AUTODIR)\File\Glob\Glob.nlp
276 HOSTNAME_NLP = $(AUTODIR)\Sys\Hostname\Hostname.nlp
277 CWD_NLP = $(AUTODIR)\Cwd\Cwd.nlp
278 STORABLE_NLP = $(AUTODIR)\Storable\Storable.nlp
279 LISTUTIL_NLP = $(AUTODIR)\List\Util\Util.nlp
280 MIMEBASE64_NLP = $(AUTODIR)\MIME\Base64\Base64.nlp
281 XSTYPEMAP_NLP = $(AUTODIR)\XS\Typemap\Typemap.nlp
282 UNICODENORMALIZE_NLP = $(AUTODIR)\XS\Typemap\Typemap.nlp
305 $(UNICODENORMALIZE_NLP) \
307 # cwd.pm needs to be modifed for NetWare.
310 # Begin - Following is required to build NetWare specific extensions Perl2UCS, UCSExt & CGI2Perl
312 PERL2UCS = $(EXTDIR)\Perl2UCS\Perl2UCS
313 UCSEXT = $(EXTDIR)\UCSExt\UCSExt
314 CGI2PERL = CGI2Perl\CGI2Perl
316 PERL2UCS_NLP = $(AUTODIR)\Perl2UCS\Perl2UCS.nlp
317 UCSEXT_NLP = $(AUTODIR)\UCSExt\UCSExt.nlp
318 CGI2PERL_NLP = \CGI2Perl\CGI2Perl.nlp
328 ECHO_SRC = TestNLM\echo\echo.c
329 TYPE_SRC = TestNLM\type\type.c
330 ECHO_SRC_OBJ = $(ECHO_SRC:.c=.obj)
331 TYPE_SRC_OBJ = $(TYPE_SRC:.c=.obj)
332 ECHO_NLM = TestNLM\echo\echo.nlm
333 TYPE_NLM = TestNLM\type\type.nlm
344 !ifndef NLM_DESCRIPTION
345 NLM_DESCRIPTION = $(NLM_NAME8) for Netware
357 BUILT = $(BLDDIR)\$(NLM_NAME8).$(NLM_EXT)
360 !ifndef BASE_IMPORT_FILES
361 BASE_IMPORT_FILES = Import @$(NLMIMPORTS)\clib.imp, @$(NLMIMPORTS)\nlmlib.imp, @$(NLMIMPORTS)\threads.imp, @$(NLMIMPORTS)\nit.imp, @$(NLMIMPORTS)\socklib.imp, @$(NLMIMPORTS)\fpsm.imp, @$(NLMIMPORTS)\lib0.imp
365 BASE_IMPORT_FILES = $(BASE_IMPORT_FILES), @$(MPKBASE)\import\mpkorg.imp
368 !ifndef BASE_IMPORT_FNS
369 BASE_IMPORT_FNS = Import ImportSymbol, GetSystemConsoleScreen, LoadModule
373 NWLIBPATH = $(WATCOM)\lib386\netware
374 LIBPATH386 = $(WATCOM)\lib386
375 LIBPATH = $(NWLIBPATH);$(LIBPATH386)
381 !else #!ifdef CODEWARRIOR
382 !error Please define the tools base directory before proceeding
383 !endif #!ifdef CODEWARRIOR
384 !endif #!ifdef WATCOM
386 !ifndef BASE_LIBRARIES
388 BASE_LIBRARIES = Library plib3s.lib,math3s.lib,clib3s.lib
392 !endif #!ifdef CODEWARRIOR
393 !endif #!ifdef WATCOM
394 !endif #!ifndef BASE_LIBRARIES
396 COPYRIGHT = (C) Copyright 2001-2002 Novell Inc. All rights reserved.
398 EXPORTS = Export @perl.imp
401 # Set these to wherever you want "nmake install" to put your
405 INST_TOP = $(INST_DRV)\perl
409 INST_NW_TOP1 = $(INST_NW_VOL)\perl
410 INST_NW_TOP2 = $(INST_NW_DRV)\perl
411 #INST_NW_VER = \5.6.1
414 # Comment this out if you DON'T want your perl installation to be versioned.
415 # This means that the new installation will overwrite any files from the
416 # old installation at the same INST_TOP location. Leaving it enabled is
417 # the safest route, as perl adds the extra version directory to all the
418 # locations it installs files to. If you disable it, an alternative
419 # versioned installation can be obtained by setting INST_TOP above to a
420 # path that includes an arbitrary version string.
425 # Comment this out if you DON'T want your perl installation to have
426 # architecture specific components. This means that architecture-
427 # specific files will be installed along with the architecture-neutral
428 # files. Leaving it enabled is safer and more flexible, in case you
429 # want to build multiple flavors of perl and install them together in
430 # the same location. Commenting it out gives you a simpler
431 # installation that is easier to understand for beginners.
433 INST_ARCH = \$(ARCHNAME)
436 # uncomment to enable multiple interpreters. This is need for fork()
442 # Beginnings of interpreter cloning/threads; still very incomplete.
443 # This should be enabled to get the fork() emulation. This needs
446 USE_ITHREADS = define
449 # uncomment to enable the implicit "host" layer for all system calls
450 # made by perl. This needs USE_MULTI above. This is also needed to
455 # uncomment this to enable the experimental PerlIO I/O subsystem
456 # else USE_STDIO will be defined.
461 # WARNING! This option is deprecated and will eventually go away (enable
462 # USE_ITHREADS instead).
464 # uncomment to enable threads-capabilities. This is incompatible with
465 # USE_ITHREADS, and is only here for people who may have come to rely
466 # on the experimental Thread support that was in 5.005.
468 #USE_5005THREADS= define
470 # For now let this be here
472 #CRYPT_SRC = fcrypt.c
474 # For now let this be here
476 #CRYPT_LIB = fcrypt.lib
479 # set this if you wish to use perl's malloc
480 # WARNING: Turning this on/off WILL break binary compatibility with extensions
481 # you may have compiled with/without it. Be prepared to recompile all
482 # extensions if you change the default. Currently, this cannot be enabled
483 # if you ask for USE_IMP_SYS above.
485 #PERL_MALLOC = define
488 # set this to your email address (perl will guess a value from
489 # from your loginname and your hostname, which may not be right)
494 ## Build configuration ends.
497 ##################### CHANGE THESE ONLY IF YOU MUST #####################
499 !IF "$(CRYPT_SRC)$(CRYPT_LIB)" == ""
503 CRYPT_FLAG = -DHAVE_DES_FCRYPT
506 !IF "$(PERL_MALLOC)" == ""
510 !IF "$(USE_5005THREADS)" == ""
511 USE_5005THREADS = undef
514 !IF "$(USE_5005THREADS)" == "define"
518 !IF "$(USE_IMP_SYS)" == "define"
522 !IF "$(USE_MULTI)" == ""
526 !IF "$(USE_ITHREADS)" == ""
530 !IF "$(USE_IMP_SYS)" == ""
534 !IF "$(USE_PERLCRT)" == ""
538 !IF "$(USE_IMP_SYS)$(USE_MULTI)$(USE_5005THREADS)" == "defineundefundef"
542 !IF "$(USE_ITHREADS)$(USE_MULTI)" == "defineundef"
544 USE_5005THREADS = undef
547 !IF "$(USE_MULTI)$(USE_5005THREADS)" != "undefundef"
548 BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_CONTEXT
551 !IF "$(USE_IMP_SYS)" != "undef"
552 BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_SYS
555 !IF "$(PROCESSOR_ARCHITECTURE)" == ""
556 PROCESSOR_ARCHITECTURE = x86
559 !IF "$(USE_5005THREADS)" == "define"
560 ARCHNAME = NetWare-$(PROCESSOR_ARCHITECTURE)-thread
562 !IF "$(USE_MULTI)" == "define"
563 ARCHNAME = NetWare-$(PROCESSOR_ARCHITECTURE)-multi
565 ARCHNAME = NetWare-$(PROCESSOR_ARCHITECTURE)
569 !IF "$(USE_MULTI)$(USE_5005THREADS)" != "undefundef"
570 ADD_BUILDOPT = $(ADD_BUILDOPT) -DPERL_IMPLICIT_CONTEXT
573 !IF "$(USE_IMP_SYS)" != "undef"
574 ADD_BUILDOPT = $(ADD_BUILDOPT) -DPERL_IMPLICIT_SYS
577 !IF "$(USE_ITHREADS)" == "define"
578 ARCHNAME = $(ARCHNAME)-thread
581 !IF "$(USE_PERLIO)" == "define"
583 ADD_BUILDOPT = $(ADD_BUILDOPT) -DUSE_PERLIO
584 ARCHNAME = $(ARCHNAME)-perlio
587 #ADD_BUILDOPT = $(ADD_BUILDOPT) -DUSE_STDIO
590 ARCHDIR = ..\lib\$(ARCHNAME)
591 COREDIR = ..\lib\CORE
592 AUTODIR = ..\lib\auto
596 EXTUTILSDIR = $(LIBDIR)\ExtUtils
599 INST_SCRIPT = $(INST_TOP)$(INST_VER)\bin
600 INST_BIN = $(INST_SCRIPT)$(INST_ARCH)
601 INST_LIB = $(INST_TOP)$(INST_VER)\lib
602 INST_ARCHLIB = $(INST_LIB)$(INST_ARCH)
603 INST_COREDIR = $(INST_ARCHLIB)\CORE
604 INST_POD = $(INST_LIB)\pod
605 INST_HTML = $(INST_POD)\html
615 #################### do not edit below this line #######################
616 ############# NO USER-SERVICEABLE PARTS BEYOND THIS POINT ##############
624 .SUFFIXES : .c $(o) .nlm .lib .nlp
629 PERLIMPLIB = ..\perl.lib
631 MINIPERL = ..\miniperl.exe
632 CONFIGPM = ..\lib\Config.pm
633 MINIMOD = ..\lib\ExtUtils\Miniperl.pm
636 PL2BAT = ..\win32\bin\pl2bat.pl
661 XCOPY = xcopy /f /r /i /d
662 RCOPY = xcopy /f /r /i /e /d
667 # filenames given to xsubpp must have forward slashes (since it puts
668 # full pathnames in #line strings)
669 XSUBPP = ..\$(MINIPERL) -I..\..\lib ..\$(EXTUTILSDIR)\xsubpp \
706 #EXTRACORE_SRC = $(EXTRACORE_SRC) perllib.c
708 !IF "$(PERL_MALLOC)" == "define"
709 EXTRACORE_SRC = $(EXTRACORE_SRC) ..\malloc.c
712 #EXTRACORE_SRC = $(EXTRACORE_SRC) ..\perlio.c
714 !IF "$(CRYPT_SRC)" != ""
715 NW_SRC = $(NW_SRC) .\$(CRYPT_SRC)
718 DLL_SRC = $(DYNALOADER).c
763 CORE_H = $(CORE_NOCFG_H) .\config.h
765 DLL_OBJ = $(DLL_SRC:.c=.obj)
766 X2P_OBJ = $(X2P_SRC:.c=.obj)
768 DYNAMIC_EXT = Socket IO Fcntl Opcode SDBM_File POSIX attrs Thread B re \
769 Data/Dumper Devel/Peek ByteLoader Devel/DProf File/Glob \
770 Storable/Storable List/Util MIME/Base64/Base64 \
771 XS/Typemap/Typemap Unicode/Normalize/Normalize Sys/Hostname
774 STATIC_EXT = DynaLoader
777 DYNALOADER = $(EXTDIR)\DynaLoader\DynaLoader
778 SOCKET = $(EXTDIR)\Socket\Socket
779 FCNTL = $(EXTDIR)\Fcntl\Fcntl
780 OPCODE = $(EXTDIR)\Opcode\Opcode
781 SDBM_FILE = $(EXTDIR)\SDBM_File\SDBM_File
783 POSIX = $(EXTDIR)\POSIX\POSIX
784 ATTRS = $(EXTDIR)\attrs\attrs
785 THREAD = $(EXTDIR)\Thread\Thread
788 DUMPER = $(EXTDIR)\Data\Dumper\Dumper
789 ERRNO = $(EXTDIR)\Errno\Errno
790 PEEK = $(EXTDIR)\Devel\Peek\Peek
791 BYTELOADER = $(EXTDIR)\ByteLoader\ByteLoader
792 DPROF = $(EXTDIR)\Devel\DProf\DProf
793 GLOB = $(EXTDIR)\File\Glob\Glob
794 HOSTNAME = $(EXTDIR)\Sys\Hostname\Hostname
795 CWD = $(EXTDIR)\Cwd\Cwd
796 STORABLE = $(EXTDIR)\Storable\Storable
797 LISTUTIL = $(EXTDIR)\List\Util
798 MIMEBASE64 = $(EXTDIR)\MIME\Base64\Base64
799 XSTYPEMAP = $(EXTDIR)\XS\Typemap\Typemap
800 UNICODENORMALIZE = $(EXTDIR)\Unicode\Normalize\Normalize
802 ERRNO_PM_NW = $(LIBDIR)\Errno.pm
826 $(UNICODENORMALIZE).c \
831 POD2HTML = $(PODDIR)\pod2html
832 POD2MAN = $(PODDIR)\pod2man
833 POD2LATEX = $(PODDIR)\pod2latex
834 POD2TEXT = $(PODDIR)\pod2text
840 all : .cleanoldfiles .\nwconfig.h $(CONFIGPM) $(NLM_NAME) $(EXTENSION_NLP) $(EXTENSION_NPM) $(TEST_NLMS) $(NETWARE_EXTNS)
842 #------------------------------------------------------------
844 ..\config.sh : config.nw5 $(MINIPERL) config_sh.PL
845 $(MINIPERL) -I..\lib config_sh.PL $(NW_CFG_VARS) config.nw5 > ..\config.sh
847 # this target is for when changes to the main config.sh happen
848 # edit config.{b,v,g,w}c and make this target once for each supported
849 # compiler (e.g. `dmake CCTYPE=BORLAND regen_config_h`)
851 perl config_sh.PL $(NW_CFG_VARS) $(NW_CFGSH_TMPL) > ..\config.sh
856 -del /f /q $(NW_CFGH_TMPL)
858 -perl -I..\lib config_h.PL "INST_VER=$(INST_VER)"
859 rename config.h $(NW_CFGH_TMPL)
861 $(CONFIGPM) : $(MINIPERL) ..\config.sh config_h.PL ..\minimod.pl
862 cd .. && miniperl configpm
863 if exist lib\* $(RCOPY) lib\*.* ..\lib\$(NULL)
864 $(XCOPY) ..\*.h $(COREDIR)\*.*
865 $(XCOPY) *.h $(COREDIR)\*.*
866 $(XCOPY) ..\ext\re\re.pm $(LIBDIR)\*.*
867 if exist include\* $(RCOPY) include $(COREDIR)\*.*
868 $(MINIPERL) -I..\lib config_h.PL "INST_VER=$(INST_VER)" \
869 || $(MAKE) /$(MAKEFLAGS) $(CONFIGPM)
872 $(error)Please build $(MINIPERL) before continuing
874 $(MINIMOD) : $(MINIPERL) ..\minimod.pl
875 cd .. && miniperl minimod.pl > lib\ExtUtils\Miniperl.pm
877 ..\x2p\a2p$(o) : ..\x2p\a2p.c
878 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
879 @$(C_COMPILER) -I..\x2p $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$*.err ..\x2p\a2p.c
881 ..\x2p\hash$(o) : ..\x2p\hash.c
882 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
883 @$(C_COMPILER) -I..\x2p $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$*.err ..\x2p\hash.c
885 ..\x2p\str$(o) : ..\x2p\str.c
886 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
887 @$(C_COMPILER) -I..\x2p $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$*.err ..\x2p\str.c
889 ..\x2p\util$(o) : ..\x2p\util.c
890 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
891 @$(C_COMPILER) -I..\x2p $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$*.err ..\x2p\util.c
893 ..\x2p\walk$(o) : ..\x2p\walk.c
894 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
895 @$(C_COMPILER) -I..\x2p $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$*.err ..\x2p\walk.c
897 $(X2P) : $(MINIPERL) $(X2P_OBJ)
898 $(MINIPERL) ..\x2p\find2perl.PL
899 $(MINIPERL) ..\x2p\s2p.PL
901 $(MPKTOOL) $(XDCFLAGS) $*.xdc
904 @$(NLM_LINK) @<<$*.link
905 Form Novell NLM 'Awk to Perl converter'
908 Option Version = $(NLM_VERSION)
909 Option Copyright '$(COPYRIGHT)'
911 Option Map=$*.map, Verbose, screenname 'System Console'
913 Option SYMFILE=$*.sym
915 OPTION XDCDATA=$*.xdc
919 !if "$(MAKE_TYPE)"=="Debug"
931 File $(X2P_OBJ:.obj=,) .\$(BLDDIR)\clibstuf.obj
935 # Linker definitions and lining come here for CODEWARRIOR
939 $(EXTDIR)\DynaLoader\dl_netware.xs: dl_netware.xs
940 copy dl_netware.xs $(EXTDIR)\DynaLoader\dl_netware.xs
943 @echo . . . . making stdio.h and string.h
944 @copy << stdio.h >\nul
947 * (C) Copyright 2001-2002 Novell Inc. All rights reserved.
949 * You may distribute under the terms of either the GNU General Public
950 * License or the Artistic License, as specified in the README file.
956 * DESCRIPTION : Generated header file, do not edit. See makefile.
957 * This header file causes the includer to use clibstuf.h
958 * The purpose of clibstuf is to make sure that Perl, cgi2perl and
959 * all the perl extension nlm's (*.NLP) use the Novell Netware CLIB versions
960 * of standard functions. This code loads up a whole bunch of function pointers
961 * to point at the standard CLIB functions.
963 * Date : January 2001.
972 #include "$(NLMSDKBASE)\INCLUDE\NLM\stdio.h"
973 #include "clibsdio.h"
976 #endif // __Stdio_H__
979 @copy stdio.h $(COREDIR)
981 @copy << string.h >\nul
984 * (C) Copyright 2001-2002 Novell Inc. All rights reserved.
986 * You may distribute under the terms of either the GNU General Public
987 * License or the Artistic License, as specified in the README file.
992 * FILENAME : string.h
993 * DESCRIPTION : Generated header file, do not edit. See makefile.
994 * This header file causes the includer to use clibstuf.h
995 * The purpose of clibstuf is to make sure that Perl, cgi2perl and
996 * all the perl extension nlm's (*.NLP) use the Novell Netware CLIB versions
997 * of standard functions. This code loads up a whole bunch of function pointers
998 * to point at the standard CLIB functions.
1000 * Date : January 2001.
1005 #ifndef __String_H__
1006 #define __String_H__
1009 #include "$(NLMSDKBASE)\INCLUDE\NLM\string.h"
1010 #include "clibstr.h"
1013 #endif // __String_H__
1016 @copy string.h $(COREDIR)
1019 $(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)
1020 @echo======= Linking $@ at $(MAKEDIR)\$(BLDDIR) =======
1022 @$(NLM_LINK) @<<$(BLDDIR)\$*.link
1023 Form Novell NLM '$(NLM_DESCRIPTION)'
1026 Option Version = $(NLM_VERSION)
1027 Option Copyright '$(COPYRIGHT)'
1029 Option Map=$(BLDDIR)\$(NLM_NAME8).map, Verbose, screenname $(SCREEN)
1032 Option SYMFILE=$(BLDDIR)\$(NLM_NAME8).sym
1034 OPTION XDCDATA=$(BLDDIR)\$(NLM_NAME8).xdc
1037 Option SYMFILE=$(BLDDIR)\$(NLM_NAME).sym
1039 OPTION XDCDATA=$(BLDDIR)\$(NLM_NAME).xdc
1042 Option NoDefaultLibs
1043 $(EXTRA_LINK_OPTION)
1044 !if "$(MAKE_TYPE)"=="Debug"
1054 $(BASE_IMPORT_FILES)
1058 File $(NEWTARE_OBJ_DEP:.obj=.obj,) $(NLM_OBJ:.obj=.obj,) $(PERL_IO_OBJ_DEP:.obj=.obj,) $(PERL_LIB_OBJ_DEP:.obj=.obj,) $(DLL_OBJ:.obj=.obj,)
1062 # Linker definitions and lining come here for CODEWARRIOR
1065 copy ..\win32\splittree.pl ..
1066 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR)
1069 !if "$(MAKE_TYPE)"=="Debug"
1071 .\bat\cvpack $(BLDDIR)\$(NLM_NAME8).sym
1073 .\bat\cvpack $(BLDDIR)\$(NLM_NAME).sym
1077 @echo======= Finished building $(BUILT).
1079 # Create the debug\release directory if not existing
1081 @echo . . . . mkdir $(BLDDIR)
1085 @echo======= $(MAKE_ACTION)ing $(NLM_NAME) at $(MAKEDIR)\$(BLDDIR) =======
1089 @echo======= Creating XDC file
1091 $(MPKTOOL) $(XDCFLAGS) $(BLDDIR)\$(NLM_NAME8).xdc
1093 $(MPKTOOL) $(XDCFLAGS) $(BLDDIR)\$(NLM_NAME).xdc
1097 $(PERLIMPLIB): perllib.def
1098 $(NLM_LIB) -def:perllib.def -out:$(PERLIMPLIB)
1099 $(XCOPY) $(PERLIMPLIB) $(COREDIR)
1101 perllib.def : $(MINIPERL) $(CONFIGPM) ..\global.sym ..\pp.sym ..\makedef.pl
1102 $(MINIPERL) -w ..\makedef.pl PLATFORM=netware FILETYPE=def $(BS_CFLAGS) $(DEFINES) $(ADD_BUILDOPT) \
1103 CCTYPE=$(CCTYPE) > perllib.def
1104 $(MINIPERL) -w ..\makedef.pl PLATFORM=netware FILETYPE=imp $(BS_CFLAGS) $(DEFINES) $(ADD_BUILDOPT) \
1105 CCTYPE=$(CCTYPE) > perl.imp
1107 $(DLL_OBJ) : $(DYNALOADER).c $(CORE_H) $(EXTDIR)\DynaLoader\dlutils.c
1108 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
1109 @$(C_COMPILER) @<<$(BLDDIR)\$(*F).options
1110 $(NLM_INCLUDES) -I$(EXTDIR)\DynaLoader\ $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$(BLDDIR)\$(*F).err $(EXTDIR)\DynaLoader\$(*F).c
1113 $(DYNALOADER).c : $(MINIPERL) $(EXTDIR)\DynaLoader\dl_netware.xs $(CONFIGPM)
1114 if not exist $(AUTODIR) mkdir $(AUTODIR)
1116 ..\$(MINIPERL) -I..\..\lib $(*B)_pm.PL
1117 ..\$(MINIPERL) -I..\..\lib XSLoader_pm.PL
1119 $(XCOPY) $(EXTDIR)\$(*B)\$(*B).pm $(LIBDIR)\$(NULL)
1120 $(XCOPY) $(EXTDIR)\$(*B)\XSLoader.pm $(LIBDIR)\$(NULL)
1122 $(XSUBPP) dl_netware.xs > $(*B).c
1125 $(PERL_LIB_OBJ_DEP) : $(NW_HOST_H_FILES) $(*F).c
1126 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
1127 @$(CPP_COMPILER) @<<$(BLDDIR)\$(*F).options
1128 -I.. $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$*.err $(*F).c
1131 $(PERL_IO_OBJ_DEP) : ..\$(*F).c
1132 @echo $(MPKMESSAGE) $(BLDMESG) $@
1133 @$(C_COMPILER) @<<$(BLDDIR)\$(*F).options
1134 $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$*.err ..\$(*F).c
1137 $(NLM_OBJ) : ..\$(*F).c
1138 @echo $(MPKMESSAGE) $(BLDMESG) $@
1139 @$(C_COMPILER) @<<$(BLDDIR)\$(*F).options
1140 $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$*.err ..\$(*F).c
1143 $(NEWTARE_OBJ_DEP) : $(NW_H_FILES) $(NW_HOST_H_FILES) $(*F).c
1144 @echo $(MPKMESSAGE) $(BLDMESG) $@
1145 @$(C_COMPILER) @<<$(BLDDIR)\$(*F).options
1146 $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$*.err $(*F).c
1149 $(EXT_MAIN_OBJ) : $(CLIB_H_FILES)
1150 @echo $(MPKMESSAGE) $(BLDMESG) $@
1151 @$(C_COMPILER) @<<$(BLDDIR)\$(*F).options
1152 $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$*.err $(*F).c
1154 $(NLM_LIB) $@ $(NLMIMPORTS)\prelude.obj -out:$*.lib
1155 @copy $*.lib $(COREDIR)
1157 # Delete any files that might have got created during building miniperl.exe
1158 # config.sh will definitely be created
1159 # COREDIR might have got created
1161 -del /f /q $(PERLIMPLIB)
1162 -del /f /q ..\lib\config.pm
1163 -del /f /q ..\config.sh
1164 -del /f /q .\Main.obj
1165 -del /f /q .\Main.lib
1166 -rmdir /s /q $(AUTODIR)
1167 -rmdir /s /q $(COREDIR)
1168 -del /f /q ..\lib\core
1170 .\nwconfig.h : $(NW_CFGH_TMPL)
1172 copy $(NW_CFGH_TMPL) config.h
1174 # REQUIRED WHEN WE INCLUDE CONFIGPM OR REGEN_CONFIG - sgp
1175 #..\nwconfig.sh : config.nw5 $(MINIPERL) config_sh.PL
1176 # $(MINIPERL) -I..\lib config_sh.PL $(NW_CFG_VARS) config.nw5 > ..\config.sh
1179 # del /f /q config.sh
1180 # rename nwconfig.sh config.sh
1183 config.nw5 : $(NW_CFGSH_TMPL)
1184 copy $(NW_CFGSH_TMPL) config.nw5
1186 $(SOCKET_NLP): $(NLM_NAME) $(SOCKET).xs
1188 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1192 $(HOSTNAME_NLP): $(NLM_NAME) $(HOSTNAME).xs
1193 cd $(EXTDIR)\Sys\$(*B)
1194 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
1200 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1206 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1212 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1218 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1223 cd $(EXTDIR)\Data\$(*B)
1224 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
1229 cd $(EXTDIR)\Devel\$(*B)
1230 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
1236 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1242 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1247 cd $(EXTDIR)\Devel\$(*B)
1248 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
1253 cd $(EXTDIR)\File\$(*B)
1254 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
1260 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1266 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1272 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1278 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1284 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1290 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1295 cd $(EXTDIR)\List\$(*B)
1296 ..\..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1301 cd $(EXTDIR)\Mime\$(*B)
1302 ..\..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1307 cd $(EXTDIR)\XS\$(*B)
1308 ..\..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1312 $(UNICODENORMALIZE_NLP):
1313 cd $(EXTDIR)\Unicode\$(*B)
1314 ..\..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1320 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1324 $(ECHO_SRC_OBJ): $*.c
1325 @echo $(MPKMESSAGE) $(BLDMESG) $@
1326 @$(C_COMPILER) @<<$*.options
1327 $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$*.err $*.c
1330 $(ECHO_NLM): $(ECHO_SRC_OBJ)
1331 @echo======= Linking $@ =======
1333 $(MPKTOOL) $(XDCFLAGS) $*.xdc
1336 @$(NLM_LINK) @<<$*.link
1337 Form Novell NLM 'DOS echo emulation for Perl Testing' Name $@
1338 Option Quiet Option Version = $(NLM_VERSION) Option Copyright '$(COPYRIGHT)' Option Caseexact Option Map=$*.map, Verbose, screenname 'System Console' Option Stack=1000 Option SYMFILE=$*.sym Option NoDefaultLibs
1340 OPTION XDCDATA=$*.xdc
1342 $(EXTRA_LINK_OPTION)
1343 !if "$(MAKE_TYPE)"=="Debug"
1348 $(BASE_LIBRARIES) Module clib $(BASE_IMPORT_FNS) $(BASE_IMPORT_FILES) $(ADD_IMPORT_FNS)
1351 File $(ECHO_SRC_OBJ:.obj=.obj,) .\$(BLDDIR)\clibstuf.obj
1355 # Linker definitions and lining come here for CODEWARRIOR
1358 @echo======= Linking Complete =======
1360 $(TYPE_SRC_OBJ): $*.c
1361 @echo $(MPKMESSAGE) $(BLDMESG) $@
1362 @$(C_COMPILER) @<<$*.options
1363 $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$*.err $*.c
1366 $(TYPE_NLM): $(TYPE_SRC_OBJ)
1367 @echo======= Linking $@ =======
1369 $(MPKTOOL) $(XDCFLAGS) $*.xdc
1372 @$(NLM_LINK) @<<$*.link
1373 Form Novell NLM 'DOS type emulation for Perl Testing' Name $@
1374 Option Quiet Option Version = $(NLM_VERSION) Option Copyright '$(COPYRIGHT)' Option Caseexact Option Map=$*.map, Verbose, screenname 'System Console' Option Stack=1000 Option SYMFILE=$*.sym
1376 OPTION XDCDATA=$*.xdc
1378 Option NoDefaultLibs
1379 $(EXTRA_LINK_OPTION)
1380 !if "$(MAKE_TYPE)"=="Debug"
1385 $(BASE_LIBRARIES) Module clib $(BASE_IMPORT_FNS) $(BASE_IMPORT_FILES) $(ADD_IMPORT_FNS)
1388 File $(TYPE_SRC_OBJ:.obj=.obj,) .\$(BLDDIR)\clibstuf.obj
1392 # Linker definitions and lining come here for CODEWARRIOR
1395 @echo======= Linking Complete =======
1397 # Build NetWare specific extensions
1399 !if "$(NW_EXTNS)"=="yes"
1401 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1407 !if "$(NW_EXTNS)"=="yes"
1409 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1415 !if "$(NW_EXTNS)"=="yes"
1417 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1423 -rmdir /s /q $(REL_DIR)
1424 -rmdir /s /q $(DEB_DIR)
1425 @if exist .\stdio.h del /f /q .\stdio.h
1426 @if exist .\string.h del /f /q .\string.h
1427 @if exist .\Main.obj del /f /q .\Main.obj
1428 @if exist .\Main.lib del /f /q .\Main.lib
1429 @if exist .\config.nw5 del /f /q .\config.nw5
1430 @if exist .\perl.imp del /f /q .\perl.imp
1432 -del /f /q *.obj *.map *.link *.options *.nlm *.sym *.xdc *.err
1434 -del /f /q *.obj *.map *.link *.options *.nlm *.sym *.xdc *.err
1437 utils: $(BLDDIR)\$(NLM_NAME8).$(NLM_EXT) $(X2P)
1439 $(MAKE) PERL=$(MINIPERL)
1441 copy ..\README.amiga .\perlamiga.pod
1442 copy ..\README.cygwin .\perlcygwin.pod
1443 copy ..\README.dos .\perldos.pod
1444 copy ..\README.hpux .\perlhpux.pod
1445 # copy ..\README.machten .\perlmachten.pod
1446 copy ..\README.os2 .\perlos2.pod
1447 copy ..\vms\perlvms.pod .\perlvms.pod
1448 copy ..\README.win32 .\perlwin32.pod
1449 copy ..\README.netware .\perlnw5.pod
1450 $(MAKE) -f ..\win32\pod.mak converters
1452 $(MINIPERL) $(PL2BAT) $(UTILS)
1454 distclean: clean nwclean
1455 -del /f /q $(PERLIMPLIB) ..\miniperl.lib $(MINIMOD)
1456 -del /f /q *.def *.map
1457 -del /f /q $(EXTENSION_NPM)
1458 -del /f /q $(EXTENSION_C) $(DYNALOADER).c $(ERRNO).pm
1459 -del /f /q $(EXTDIR)\DynaLoader\dl_netware.xs
1460 -del /f /q $(LIBDIR)\.exists $(LIBDIR)\attrs.pm $(LIBDIR)\DynaLoader.pm
1461 -del /f /q $(LIBDIR)\XSLoader.pm
1462 -del /f /q $(LIBDIR)\Fcntl.pm $(LIBDIR)\IO.pm $(LIBDIR)\Opcode.pm
1463 -del /f /q $(LIBDIR)\ops.pm $(LIBDIR)\Safe.pm
1464 -del /f /q $(LIBDIR)\SDBM_File.pm $(LIBDIR)\Socket.pm $(LIBDIR)\POSIX.pm
1465 -del /f /q $(LIBDIR)\B.pm $(LIBDIR)\O.pm $(LIBDIR)\re.pm
1466 -del /f /q $(LIBDIR)\Data\Dumper.pm $(LIBDIR)\ByteLoader.pm
1467 -del /f /q $(LIBDIR)\Devel\Peek.pm $(LIBDIR)\Devel\DProf.pm
1468 -del /f /q $(LIBDIR)\File\Glob.pm
1469 -del /f /q $(LIBDIR)\Unicode\Normalize.pm
1470 -rmdir /s /q $(LIBDIR)\IO
1471 -rmdir /s /q $(LIBDIR)\Thread
1472 -rmdir /s /q $(LIBDIR)\B
1473 -rmdir /s /q $(LIBDIR)\Data
1474 -del /f /q $(PODDIR)\*.html
1475 -del /f /q $(PODDIR)\*.bat
1477 -del /f /q h2ph splain perlbug pl2pm c2ph h2xs perldoc dprofpp
1481 -del /f /q find2perl s2p
1483 -del /f /q *.obj *.map *.link *.xdc *.err
1485 -del /f /q ..\config.sh ..\splittree.pl dlutils.c config.h.new
1486 -del /f /q $(CONFIGPM)
1487 -del /f /q bin\*.bat
1489 -del /s /f /q *.lib *.def *.map *.pdb *.bs Makefile *$(o) pm_to_blib *.xdc *.err
1491 !if "$(NW_EXTNS)"=="yes"
1493 -del /f /q *.obj *.bs Makefile *$(o) *.c pm_to_blib *.xdc *.err *.sym *.map
1495 cd $(EXTDIR)\Perl2UCS
1496 -del /f /q *.obj *.bs Makefile *$(o) *.c pm_to_blib *.xdc *.err *.sym *.map *.c
1499 -del /f /q *.obj *.bs Makefile *$(o) *.c pm_to_blib *.xdc *.err *.sym *.map *.c
1502 -rmdir /s /q $(AUTODIR)
1503 -rmdir /s /q $(COREDIR)
1504 -del /f /q ..\config.sh
1507 $(MINIPERL) -I..\lib ..\installperl
1509 install : utils installwin
1512 $(MINIPERL) -I..\lib ..\installperl -netware
1516 xcopy /f /r /i /s /d *.* $(INST_NW_TOP2)\scripts\t
1518 xcopy /f /r /i /s /d *.t $(INST_NW_TOP2)\scripts\t\lib
1520 xcopy /f /r /i /s /d *.t $(INST_NW_TOP2)\scripts\t\ext
1522 xcopy /f /r /i /s /d *.pl $(INST_NW_TOP2)\scripts\t
1525 nwinstall: utils installnw install_tests
1527 inst_lib : $(CONFIGPM)
1528 copy ..\win32\splittree.pl ..
1529 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR)
1530 $(RCOPY) ..\lib $(INST_LIB)\*.*
1533 -@erase miniperlmain$(o)
1536 -@erase ..\*$(o) ..\*.lib ..\*.exp *$(o) *.lib *.exp *.res
1537 -@erase ..\t\*.exe ..\t\*.dll ..\t\*.bat
1538 -@erase ..\x2p\*.nlm ..\x2p\*.bat