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 CWD_NLP = $(AUTODIR)\Cwd\Cwd.nlp
277 STORABLE_NLP = $(AUTODIR)\Storable\Storable.nlp
278 LISTUTIL_NLP = $(AUTODIR)\List\Util\Util.nlp
279 MIMEBASE64_NLP = $(AUTODIR)\MIME\Base64\Base64.nlp
280 XSTYPEMAP_NLP = $(AUTODIR)\XS\Typemap\Typemap.nlp
303 # cwd.pm needs to be modifed for NetWare.
305 # Begin - Following is required to build NetWare specific extensions Perl2UCS & CGI2Perl
307 PERL2UCS = $(EXTDIR)\Perl2UCS\Perl2UCS
308 CGI2PERL = CGI2Perl\CGI2Perl
310 PERL2UCS_NLP = $(AUTODIR)\Perl2UCS\Perl2UCS.nlp
311 CGI2PERL_NLP = \CGI2Perl\CGI2Perl.nlp
319 ECHO_SRC = TestNLM\echo\echo.c
320 TYPE_SRC = TestNLM\type\type.c
321 ECHO_SRC_OBJ = $(ECHO_SRC:.c=.obj)
322 TYPE_SRC_OBJ = $(TYPE_SRC:.c=.obj)
323 ECHO_NLM = TestNLM\echo\echo.nlm
324 TYPE_NLM = TestNLM\type\type.nlm
330 ERRNO_PM_NW = $(LIBDIR)\Errno.pm
340 !ifndef NLM_DESCRIPTION
341 NLM_DESCRIPTION = $(NLM_NAME8) for Netware
353 BUILT = $(BLDDIR)\$(NLM_NAME8).$(NLM_EXT)
356 !ifndef BASE_IMPORT_FILES
357 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
361 BASE_IMPORT_FILES = $(BASE_IMPORT_FILES), @$(MPKBASE)\import\mpkorg.imp
364 !ifndef BASE_IMPORT_FNS
365 BASE_IMPORT_FNS = Import ImportSymbol, GetSystemConsoleScreen, LoadModule
369 NWLIBPATH = $(WATCOM)\lib386\netware
370 LIBPATH386 = $(WATCOM)\lib386
371 LIBPATH = $(NWLIBPATH);$(LIBPATH386)
377 !else #!ifdef CODEWARRIOR
378 !error Please define the tools base directory before proceeding
379 !endif #!ifdef CODEWARRIOR
380 !endif #!ifdef WATCOM
382 !ifndef BASE_LIBRARIES
384 BASE_LIBRARIES = Library plib3s.lib,math3s.lib,clib3s.lib
388 !endif #!ifdef CODEWARRIOR
389 !endif #!ifdef WATCOM
390 !endif #!ifndef BASE_LIBRARIES
392 COPYRIGHT = Copyright 2001 by Novell, Inc. All rights reserved.
394 EXPORTS = Export @perl.imp
397 # Set these to wherever you want "nmake install" to put your
401 INST_TOP = $(INST_DRV)\perl
405 INST_NW_TOP1 = $(INST_NW_VOL)\perl
406 INST_NW_TOP2 = $(INST_NW_DRV)\perl
407 #INST_NW_VER = \5.6.1
410 # Comment this out if you DON'T want your perl installation to be versioned.
411 # This means that the new installation will overwrite any files from the
412 # old installation at the same INST_TOP location. Leaving it enabled is
413 # the safest route, as perl adds the extra version directory to all the
414 # locations it installs files to. If you disable it, an alternative
415 # versioned installation can be obtained by setting INST_TOP above to a
416 # path that includes an arbitrary version string.
421 # Comment this out if you DON'T want your perl installation to have
422 # architecture specific components. This means that architecture-
423 # specific files will be installed along with the architecture-neutral
424 # files. Leaving it enabled is safer and more flexible, in case you
425 # want to build multiple flavors of perl and install them together in
426 # the same location. Commenting it out gives you a simpler
427 # installation that is easier to understand for beginners.
429 INST_ARCH = \$(ARCHNAME)
432 # uncomment to enable multiple interpreters. This is need for fork()
438 # Beginnings of interpreter cloning/threads; still very incomplete.
439 # This should be enabled to get the fork() emulation. This needs
442 USE_ITHREADS = define
445 # uncomment to enable the implicit "host" layer for all system calls
446 # made by perl. This needs USE_MULTI above. This is also needed to
451 # uncomment this to enable the experimental PerlIO I/O subsystem
452 # else USE_STDIO will be defined.
457 # WARNING! This option is deprecated and will eventually go away (enable
458 # USE_ITHREADS instead).
460 # uncomment to enable threads-capabilities. This is incompatible with
461 # USE_ITHREADS, and is only here for people who may have come to rely
462 # on the experimental Thread support that was in 5.005.
464 #USE_5005THREADS= define
467 # WARNING! This option is deprecated and will eventually go away (enable
468 # USE_MULTI instead).
470 # uncomment next line if you want to use the PERL_OBJECT build option.
471 # DO NOT ENABLE unless you have legacy code that relies on the C++
472 # CPerlObj class that was available in 5.005. This cannot be enabled
473 # if you ask for USE_5005THREADS above.
477 # For now let this be here
479 #CRYPT_SRC = fcrypt.c
481 # For now let this be here
483 #CRYPT_LIB = fcrypt.lib
486 # set this if you wish to use perl's malloc
487 # WARNING: Turning this on/off WILL break binary compatibility with extensions
488 # you may have compiled with/without it. Be prepared to recompile all
489 # extensions if you change the default. Currently, this cannot be enabled
490 # if you ask for USE_IMP_SYS above.
492 #PERL_MALLOC = define
495 # set this to your email address (perl will guess a value from
496 # from your loginname and your hostname, which may not be right)
501 ## Build configuration ends.
504 ##################### CHANGE THESE ONLY IF YOU MUST #####################
506 !IF "$(CRYPT_SRC)$(CRYPT_LIB)" == ""
510 CRYPT_FLAG = -DHAVE_DES_FCRYPT
513 !IF "$(USE_OBJECT)" == "define"
515 USE_5005THREADS = undef
520 !IF "$(PERL_MALLOC)" == ""
524 !IF "$(USE_5005THREADS)" == ""
525 USE_5005THREADS = undef
528 !IF "$(USE_5005THREADS)" == "define"
532 !IF "$(USE_IMP_SYS)" == "define"
536 !IF "$(USE_MULTI)" == ""
540 !IF "$(USE_OBJECT)" == ""
544 !IF "$(USE_ITHREADS)" == ""
548 !IF "$(USE_IMP_SYS)" == ""
552 !IF "$(USE_PERLCRT)" == ""
556 !IF "$(USE_IMP_SYS)$(USE_MULTI)$(USE_5005THREADS)$(USE_OBJECT)" == "defineundefundefundef"
560 !IF "$(USE_ITHREADS)$(USE_MULTI)$(USE_OBJECT)" == "defineundefundef"
562 USE_5005THREADS = undef
565 !IF "$(USE_MULTI)$(USE_5005THREADS)$(USE_OBJECT)" != "undefundefundef"
566 BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_CONTEXT
569 !IF "$(USE_IMP_SYS)" != "undef"
570 BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_SYS
573 !IF "$(PROCESSOR_ARCHITECTURE)" == ""
574 PROCESSOR_ARCHITECTURE = x86
577 !IF "$(USE_OBJECT)" == "define"
578 ARCHNAME = NetWare-$(PROCESSOR_ARCHITECTURE)-object
580 !IF "$(USE_5005THREADS)" == "define"
581 ARCHNAME = NetWare-$(PROCESSOR_ARCHITECTURE)-thread
583 !IF "$(USE_MULTI)" == "define"
584 ARCHNAME = NetWare-$(PROCESSOR_ARCHITECTURE)-multi
586 ARCHNAME = NetWare-$(PROCESSOR_ARCHITECTURE)
591 !IF "$(USE_MULTI)$(USE_5005THREADS)$(USE_OBJECT)" != "undefundefundef"
592 ADD_BUILDOPT = $(ADD_BUILDOPT) -DPERL_IMPLICIT_CONTEXT
595 !IF "$(USE_IMP_SYS)" != "undef"
596 ADD_BUILDOPT = $(ADD_BUILDOPT) -DPERL_IMPLICIT_SYS
599 !IF "$(USE_ITHREADS)" == "define"
600 ARCHNAME = $(ARCHNAME)-thread
603 !IF "$(USE_PERLIO)" == "define"
605 ADD_BUILDOPT = $(ADD_BUILDOPT) -DUSE_PERLIO
606 ARCHNAME = $(ARCHNAME)-perlio
609 #ADD_BUILDOPT = $(ADD_BUILDOPT) -DUSE_STDIO
612 ARCHDIR = ..\lib\$(ARCHNAME)
613 COREDIR = ..\lib\CORE
614 AUTODIR = ..\lib\auto
618 EXTUTILSDIR = $(LIBDIR)\ExtUtils
621 INST_SCRIPT = $(INST_TOP)$(INST_VER)\bin
622 INST_BIN = $(INST_SCRIPT)$(INST_ARCH)
623 INST_LIB = $(INST_TOP)$(INST_VER)\lib
624 INST_ARCHLIB = $(INST_LIB)$(INST_ARCH)
625 INST_COREDIR = $(INST_ARCHLIB)\CORE
626 INST_POD = $(INST_LIB)\pod
627 INST_HTML = $(INST_POD)\html
633 !IF "$(USE_OBJECT)" == "define"
634 OPTIMIZE = $(OPTIMIZE) $(CXX_FLAG)
635 BUILDOPT = $(BUILDOPT) -DPERL_OBJECT
642 #################### do not edit below this line #######################
643 ############# NO USER-SERVICEABLE PARTS BEYOND THIS POINT ##############
651 .SUFFIXES : .c $(o) .nlm .lib .nlp
656 PERLIMPLIB = ..\perl.lib
658 MINIPERL = ..\miniperl.exe
659 CONFIGPM = ..\lib\Config.pm
660 MINIMOD = ..\lib\ExtUtils\Miniperl.pm
663 PL2BAT = ..\win32\bin\pl2bat.pl
688 XCOPY = xcopy /f /r /i /d
689 RCOPY = xcopy /f /r /i /e /d
694 # filenames given to xsubpp must have forward slashes (since it puts
695 # full pathnames in #line strings)
696 XSUBPP = ..\$(MINIPERL) -I..\..\lib ..\$(EXTUTILSDIR)\xsubpp \
733 #EXTRACORE_SRC = $(EXTRACORE_SRC) perllib.c
735 !IF "$(PERL_MALLOC)" == "define"
736 EXTRACORE_SRC = $(EXTRACORE_SRC) ..\malloc.c
739 #!IF "$(USE_OBJECT)" != "define"
740 #EXTRACORE_SRC = $(EXTRACORE_SRC) ..\perlio.c
743 !IF "$(CRYPT_SRC)" != ""
744 NW_SRC = $(NW_SRC) .\$(CRYPT_SRC)
747 DLL_SRC = $(DYNALOADER).c
793 CORE_H = $(CORE_NOCFG_H) .\config.h
795 DLL_OBJ = $(DLL_SRC:.c=.obj)
796 X2P_OBJ = $(X2P_SRC:.c=.obj)
798 DYNAMIC_EXT = Socket IO Fcntl Opcode SDBM_File POSIX attrs Thread B re \
799 Data/Dumper Devel/Peek ByteLoader Devel/DProf File/Glob \
800 Storable/Storable List/Util MIME/Base64/Base64 XS/Typemap/Typemap
802 STATIC_EXT = DynaLoader
805 DYNALOADER = $(EXTDIR)\DynaLoader\DynaLoader
806 SOCKET = $(EXTDIR)\Socket\Socket
807 FCNTL = $(EXTDIR)\Fcntl\Fcntl
808 OPCODE = $(EXTDIR)\Opcode\Opcode
809 SDBM_FILE = $(EXTDIR)\SDBM_File\SDBM_File
811 POSIX = $(EXTDIR)\POSIX\POSIX
812 ATTRS = $(EXTDIR)\attrs\attrs
813 THREAD = $(EXTDIR)\Thread\Thread
816 DUMPER = $(EXTDIR)\Data\Dumper\Dumper
817 ERRNO = $(EXTDIR)\Errno\Errno
818 PEEK = $(EXTDIR)\Devel\Peek\Peek
819 BYTELOADER = $(EXTDIR)\ByteLoader\ByteLoader
820 DPROF = $(EXTDIR)\Devel\DProf\DProf
821 GLOB = $(EXTDIR)\File\Glob\Glob
822 CWD = $(EXTDIR)\Cwd\Cwd
823 STORABLE = $(EXTDIR)\Storable\Storable
824 LISTUTIL = $(EXTDIR)\List\Util
825 MIMEBASE64 = $(EXTDIR)\MIME\Base64\Base64
826 XSTYPEMAP = $(EXTDIR)\XS\Typemap\Typemap
850 POD2HTML = $(PODDIR)\pod2html
851 POD2MAN = $(PODDIR)\pod2man
852 POD2LATEX = $(PODDIR)\pod2latex
853 POD2TEXT = $(PODDIR)\pod2text
859 all : .cleanoldfiles .\nwconfig.h $(CONFIGPM) $(NLM_NAME) $(EXTENSION_NLP) $(EXTENSION_NPM) $(TEST_NLMS) $(NETWARE_EXTNS)
861 #------------------------------------------------------------
863 ..\config.sh : config.nw5 $(MINIPERL) config_sh.PL
864 $(MINIPERL) -I..\lib config_sh.PL $(NW_CFG_VARS) config.nw5 > ..\config.sh
866 # this target is for when changes to the main config.sh happen
867 # edit config.{b,v,g,w}c and make this target once for each supported
868 # compiler (e.g. `dmake CCTYPE=BORLAND regen_config_h`)
870 perl config_sh.PL $(NW_CFG_VARS) $(NW_CFGSH_TMPL) > ..\config.sh
875 -del /f $(NW_CFGH_TMPL)
877 -perl -I..\lib config_h.PL "INST_VER=$(INST_VER)"
878 rename config.h $(NW_CFGH_TMPL)
880 $(CONFIGPM) : $(MINIPERL) ..\config.sh config_h.PL ..\minimod.pl
881 cd .. && miniperl configpm
882 if exist lib\* $(RCOPY) lib\*.* ..\lib\$(NULL)
883 $(XCOPY) ..\*.h $(COREDIR)\*.*
884 $(XCOPY) *.h $(COREDIR)\*.*
885 $(XCOPY) ..\ext\re\re.pm $(LIBDIR)\*.*
886 if exist include\* $(RCOPY) include $(COREDIR)\*.*
887 $(MINIPERL) -I..\lib config_h.PL "INST_VER=$(INST_VER)" \
888 || $(MAKE) /$(MAKEFLAGS) $(CONFIGPM)
891 $(error)Please build $(MINIPERL) before continuing
893 $(MINIMOD) : $(MINIPERL) ..\minimod.pl
894 cd .. && miniperl minimod.pl > lib\ExtUtils\Miniperl.pm
896 ..\x2p\a2p$(o) : ..\x2p\a2p.c
897 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
898 @$(C_COMPILER) -I..\x2p $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$*.err ..\x2p\a2p.c
900 ..\x2p\hash$(o) : ..\x2p\hash.c
901 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
902 @$(C_COMPILER) -I..\x2p $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$*.err ..\x2p\hash.c
904 ..\x2p\str$(o) : ..\x2p\str.c
905 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
906 @$(C_COMPILER) -I..\x2p $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$*.err ..\x2p\str.c
908 ..\x2p\util$(o) : ..\x2p\util.c
909 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
910 @$(C_COMPILER) -I..\x2p $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$*.err ..\x2p\util.c
912 ..\x2p\walk$(o) : ..\x2p\walk.c
913 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
914 @$(C_COMPILER) -I..\x2p $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$*.err ..\x2p\walk.c
916 $(X2P) : $(MINIPERL) $(X2P_OBJ)
917 $(MINIPERL) ..\x2p\find2perl.PL
918 $(MINIPERL) ..\x2p\s2p.PL
920 $(MPKTOOL) $(XDCFLAGS) $*.xdc
923 @$(NLM_LINK) @<<$*.link
924 Form Novell NLM 'Awk to Perl converter'
927 Option Version = $(NLM_VERSION)
928 Option Copyright '$(COPYRIGHT)'
930 Option Map=$*.map, Verbose, screenname 'System Console'
932 Option SYMFILE=$*.sym
934 OPTION XDCDATA=$*.xdc
938 !if "$(MAKE_TYPE)"=="Debug"
950 File $(X2P_OBJ:.obj=,) .\$(BLDDIR)\clibstuf.obj
954 # Linker definitions and lining come here for CODEWARRIOR
958 $(EXTDIR)\DynaLoader\dl_netware.xs: dl_netware.xs
959 copy dl_netware.xs $(EXTDIR)\DynaLoader\dl_netware.xs
962 @echo . . . . making stdio.h and string.h
963 @copy << stdio.h >\nul
966 * Copyright © 2001 Novell, Inc. All Rights Reserved.
968 * You may distribute under the terms of either the GNU General Public
969 * License or the Artistic License, as specified in the README file.
975 * DESCRIPTION : Generated header file, do not edit. See makefile.
976 * This header file causes the includer to use clibstuf.h
977 * The purpose of clibstuf is to make sure that Perl, cgi2perl and
978 * all the perl extension nlm's (*.NLP) use the Novell Netware CLIB versions
979 * of standard functions. This code loads up a whole bunch of function pointers
980 * to point at the standard CLIB functions.
982 * Date : January 2001.
991 #include "$(NLMSDKBASE)\INCLUDE\NLM\stdio.h"
992 #include "clibsdio.h"
995 #endif // __Stdio_H__
998 @copy stdio.h $(COREDIR)
1000 @copy << string.h >\nul
1003 * Copyright © 2001 Novell, Inc. All Rights Reserved.
1005 * You may distribute under the terms of either the GNU General Public
1006 * License or the Artistic License, as specified in the README file.
1011 * FILENAME : string.h
1012 * DESCRIPTION : Generated header file, do not edit. See makefile.
1013 * This header file causes the includer to use clibstuf.h
1014 * The purpose of clibstuf is to make sure that Perl, cgi2perl and
1015 * all the perl extension nlm's (*.NLP) use the Novell Netware CLIB versions
1016 * of standard functions. This code loads up a whole bunch of function pointers
1017 * to point at the standard CLIB functions.
1019 * Date : January 2001.
1024 #ifndef __String_H__
1025 #define __String_H__
1028 #include "$(NLMSDKBASE)\INCLUDE\NLM\string.h"
1029 #include "clibstr.h"
1032 #endif // __String_H__
1035 @copy string.h $(COREDIR)
1038 $(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)
1039 @echo======= Linking $@ at $(MAKEDIR)\$(BLDDIR) =======
1041 @$(NLM_LINK) @<<$(BLDDIR)\$*.link
1042 Form Novell NLM '$(NLM_DESCRIPTION)'
1045 Option Version = $(NLM_VERSION)
1046 Option Copyright '$(COPYRIGHT)'
1048 Option Map=$(BLDDIR)\$(NLM_NAME8).map, Verbose, screenname $(SCREEN)
1051 Option SYMFILE=$(BLDDIR)\$(NLM_NAME8).sym
1053 OPTION XDCDATA=$(BLDDIR)\$(NLM_NAME8).xdc
1056 Option SYMFILE=$(BLDDIR)\$(NLM_NAME).sym
1058 OPTION XDCDATA=$(BLDDIR)\$(NLM_NAME).xdc
1061 Option NoDefaultLibs
1062 $(EXTRA_LINK_OPTION)
1063 !if "$(MAKE_TYPE)"=="Debug"
1072 $(BASE_IMPORT_FILES)
1076 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,)
1080 # Linker definitions and lining come here for CODEWARRIOR
1083 copy ..\win32\splittree.pl ..
1084 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR)
1087 !if "$(MAKE_TYPE)"=="Debug"
1089 .\bat\cvpack $(BLDDIR)\$(NLM_NAME8).sym
1091 .\bat\cvpack $(BLDDIR)\$(NLM_NAME).sym
1095 @echo======= Finished building $(BUILT).
1097 # Create the debug\release directory if not existing
1099 @echo . . . . mkdir $(BLDDIR)
1103 @echo======= $(MAKE_ACTION)ing $(NLM_NAME) at $(MAKEDIR)\$(BLDDIR) =======
1107 @echo======= Creating XDC file
1109 $(MPKTOOL) $(XDCFLAGS) $(BLDDIR)\$(NLM_NAME8).xdc
1111 $(MPKTOOL) $(XDCFLAGS) $(BLDDIR)\$(NLM_NAME).xdc
1115 $(PERLIMPLIB): perllib.def
1116 $(NLM_LIB) -def:perllib.def -out:$(PERLIMPLIB)
1117 $(XCOPY) $(PERLIMPLIB) $(COREDIR)
1119 perllib.def : $(MINIPERL) $(CONFIGPM) ..\global.sym ..\pp.sym ..\makedef.pl
1120 $(MINIPERL) -w ..\makedef.pl PLATFORM=netware FILETYPE=def $(BS_CFLAGS) $(DEFINES) $(ADD_BUILDOPT) \
1121 CCTYPE=$(CCTYPE) > perllib.def
1122 $(MINIPERL) -w ..\makedef.pl PLATFORM=netware FILETYPE=imp $(BS_CFLAGS) $(DEFINES) $(ADD_BUILDOPT) \
1123 CCTYPE=$(CCTYPE) > perl.imp
1125 $(DLL_OBJ) : $(DYNALOADER).c $(CORE_H) $(EXTDIR)\DynaLoader\dlutils.c
1126 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
1127 @$(C_COMPILER) @<<$(BLDDIR)\$(*F).options
1128 $(NLM_INCLUDES) -I$(EXTDIR)\DynaLoader\ $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$(BLDDIR)\$(*F).err $(EXTDIR)\DynaLoader\$(*F).c
1131 $(DYNALOADER).c : $(MINIPERL) $(EXTDIR)\DynaLoader\dl_netware.xs $(CONFIGPM)
1132 if not exist $(AUTODIR) mkdir $(AUTODIR)
1134 ..\$(MINIPERL) -I..\..\lib $(*B)_pm.PL
1135 ..\$(MINIPERL) -I..\..\lib XSLoader_pm.PL
1137 $(XCOPY) $(EXTDIR)\$(*B)\$(*B).pm $(LIBDIR)\$(NULL)
1138 $(XCOPY) $(EXTDIR)\$(*B)\XSLoader.pm $(LIBDIR)\$(NULL)
1140 $(XSUBPP) dl_netware.xs > $(*B).c
1143 $(PERL_LIB_OBJ_DEP) : $(NW_HOST_H_FILES) $(*F).c
1144 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
1145 @$(CPP_COMPILER) @<<$(BLDDIR)\$(*F).options
1146 -I.. $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$*.err $(*F).c
1149 $(PERL_IO_OBJ_DEP) : ..\$(*F).c
1150 @echo $(MPKMESSAGE) $(BLDMESG) $@
1151 @$(C_COMPILER) @<<$(BLDDIR)\$(*F).options
1152 $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$*.err ..\$(*F).c
1155 $(NLM_OBJ) : ..\$(*F).c
1156 @echo $(MPKMESSAGE) $(BLDMESG) $@
1157 @$(C_COMPILER) @<<$(BLDDIR)\$(*F).options
1158 $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$*.err ..\$(*F).c
1161 $(NEWTARE_OBJ_DEP) : $(NW_H_FILES) $(NW_HOST_H_FILES) $(*F).c
1162 @echo $(MPKMESSAGE) $(BLDMESG) $@
1163 @$(C_COMPILER) @<<$(BLDDIR)\$(*F).options
1164 $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$*.err $(*F).c
1167 $(EXT_MAIN_OBJ) : $(CLIB_H_FILES)
1168 @echo $(MPKMESSAGE) $(BLDMESG) $@
1169 @$(C_COMPILER) @<<$(BLDDIR)\$(*F).options
1170 $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$*.err $(*F).c
1172 $(NLM_LIB) $@ $(NLMIMPORTS)\prelude.obj -out:$*.lib
1173 @copy $*.lib $(COREDIR)
1175 # Delete any files that might have got created during building miniperl.exe
1176 # config.sh will definitely be created
1177 # COREDIR might have got created
1182 -rmdir /s /q $(AUTODIR)
1183 -rmdir /s /q $(COREDIR)
1185 .\nwconfig.h : $(NW_CFGH_TMPL)
1187 copy $(NW_CFGH_TMPL) config.h
1189 # REQUIRED WHEN WE INCLUDE CONFIGPM OR REGEN_CONFIG - sgp
1190 #..\nwconfig.sh : config.nw5 $(MINIPERL) config_sh.PL
1191 # $(MINIPERL) -I..\lib config_sh.PL $(NW_CFG_VARS) config.nw5 > ..\config.sh
1195 # rename nwconfig.sh config.sh
1198 config.nw5 : $(NW_CFGSH_TMPL)
1199 copy $(NW_CFGSH_TMPL) config.nw5
1201 $(SOCKET_NLP): $(NLM_NAME) $(SOCKET).xs
1203 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1209 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1215 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1221 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1227 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1232 cd $(EXTDIR)\Data\$(*B)
1233 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
1238 cd $(EXTDIR)\Devel\$(*B)
1239 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
1245 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1251 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1256 cd $(EXTDIR)\Devel\$(*B)
1257 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
1262 cd $(EXTDIR)\File\$(*B)
1263 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
1269 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1275 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1281 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1287 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1293 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1299 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1304 cd $(EXTDIR)\List\$(*B)
1305 ..\..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1310 cd $(EXTDIR)\Mime\$(*B)
1311 ..\..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1316 cd $(EXTDIR)\XS\$(*B)
1317 ..\..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1323 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1327 $(ECHO_SRC_OBJ): $*.c
1328 @echo $(MPKMESSAGE) $(BLDMESG) $@
1329 @$(C_COMPILER) @<<$*.options
1330 $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$*.err $*.c
1333 $(ECHO_NLM): $(ECHO_SRC_OBJ)
1334 @echo======= Linking $@ =======
1336 $(MPKTOOL) $(XDCFLAGS) $*.xdc
1339 @$(NLM_LINK) @<<$*.link
1340 Form Novell NLM 'DOS echo emulation for Perl Testing' Name $@
1341 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
1343 OPTION XDCDATA=$*.xdc
1345 $(EXTRA_LINK_OPTION)
1346 !if "$(MAKE_TYPE)"=="Debug"
1351 $(BASE_LIBRARIES) Module clib $(BASE_IMPORT_FNS) $(BASE_IMPORT_FILES) $(ADD_IMPORT_FNS)
1354 File $(ECHO_SRC_OBJ:.obj=.obj,) .\$(BLDDIR)\clibstuf.obj
1358 # Linker definitions and lining come here for CODEWARRIOR
1361 @echo======= Linking Complete =======
1363 $(TYPE_SRC_OBJ): $*.c
1364 @echo $(MPKMESSAGE) $(BLDMESG) $@
1365 @$(C_COMPILER) @<<$*.options
1366 $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$*.err $*.c
1369 $(TYPE_NLM): $(TYPE_SRC_OBJ)
1370 @echo======= Linking $@ =======
1372 $(MPKTOOL) $(XDCFLAGS) $*.xdc
1375 @$(NLM_LINK) @<<$*.link
1376 Form Novell NLM 'DOS type emulation for Perl Testing' Name $@
1377 Option Quiet Option Version = $(NLM_VERSION) Option Copyright '$(COPYRIGHT)' Option Caseexact Option Map=$*.map, Verbose, screenname 'System Console' Option Stack=1000 Option SYMFILE=$*.sym
1379 OPTION XDCDATA=$*.xdc
1381 Option NoDefaultLibs
1382 $(EXTRA_LINK_OPTION)
1383 !if "$(MAKE_TYPE)"=="Debug"
1388 $(BASE_LIBRARIES) Module clib $(BASE_IMPORT_FNS) $(BASE_IMPORT_FILES) $(ADD_IMPORT_FNS)
1391 File $(TYPE_SRC_OBJ:.obj=.obj,) .\$(BLDDIR)\clibstuf.obj
1395 # Linker definitions and lining come here for CODEWARRIOR
1398 @echo======= Linking Complete =======
1400 # Build NetWare specific extensions
1402 !if "$(NW_EXTNS)"=="yes"
1404 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1410 !if "$(NW_EXTNS)"=="yes"
1412 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1418 -rmdir /s /q $(REL_DIR) || rmdir /s $(REL_DIR)
1419 -rmdir /s /q $(DEB_DIR) || rmdir /s $(DEB_DIR)
1420 @if exist .\stdio.h del .\stdio.h
1421 @if exist .\string.h del .\string.h
1422 @if exist .\Main.obj del .\Main.obj
1423 @if exist .\Main.lib del .\Main.lib
1425 -del *.obj *.map *.link *.options *.nlm *.sym *.xdc *.err
1427 -del *.obj *.map *.link *.options *.nlm *.sym *.xdc *.err
1430 utils: $(BLDDIR)\$(NLM_NAME8).$(NLM_EXT) $(X2P)
1432 $(MAKE) PERL=$(MINIPERL)
1434 copy ..\README.amiga .\perlamiga.pod
1435 copy ..\README.cygwin .\perlcygwin.pod
1436 copy ..\README.dos .\perldos.pod
1437 copy ..\README.hpux .\perlhpux.pod
1438 # copy ..\README.machten .\perlmachten.pod
1439 copy ..\README.os2 .\perlos2.pod
1440 copy ..\vms\perlvms.pod .\perlvms.pod
1441 copy ..\README.win32 .\perlwin32.pod
1442 copy ..\README.netware .\perlnw5.pod
1443 $(MAKE) -f ..\win32\pod.mak converters
1445 $(MINIPERL) $(PL2BAT) $(UTILS)
1447 distclean: clean nwclean
1448 -del /f $(PERLIMPLIB) ..\miniperl.lib $(MINIMOD)
1450 -del /f $(EXTENSION_C) $(DYNALOADER).c $(ERRNO).pm
1451 -del /f $(EXTDIR)\DynaLoader\dl_netware.xs
1452 -del /f $(LIBDIR)\.exists $(LIBDIR)\attrs.pm $(LIBDIR)\DynaLoader.pm
1453 -del /f $(LIBDIR)\XSLoader.pm
1454 -del /f $(LIBDIR)\Fcntl.pm $(LIBDIR)\IO.pm $(LIBDIR)\Opcode.pm
1455 -del /f $(LIBDIR)\ops.pm $(LIBDIR)\Safe.pm $(LIBDIR)\Thread.pm
1456 -del /f $(LIBDIR)\SDBM_File.pm $(LIBDIR)\Socket.pm $(LIBDIR)\POSIX.pm
1457 -del /f $(LIBDIR)\B.pm $(LIBDIR)\O.pm $(LIBDIR)\re.pm
1458 -del /f $(LIBDIR)\Data\Dumper.pm $(LIBDIR)\ByteLoader.pm
1459 -del /f $(LIBDIR)\Devel\Peek.pm $(LIBDIR)\Devel\DProf.pm
1460 -del /f $(LIBDIR)\File\Glob.pm
1461 -rmdir /s /q $(LIBDIR)\IO || rmdir /s $(LIBDIR)\IO
1462 -rmdir /s /q $(LIBDIR)\Thread || rmdir /s $(LIBDIR)\Thread
1463 -rmdir /s /q $(LIBDIR)\B || rmdir /s $(LIBDIR)\B
1464 -rmdir /s /q $(LIBDIR)\Data || rmdir /s $(LIBDIR)\Data
1465 -del /f $(PODDIR)\*.html
1466 -del /f $(PODDIR)\*.bat
1468 -del /f h2ph splain perlbug pl2pm c2ph h2xs perldoc dprofpp
1472 -del /f find2perl s2p
1474 -del *.obj *.map *.link *.xdc *.err
1476 -del /f ..\config.sh ..\splittree.pl dlutils.c config.h.new
1480 -del /s *.lib *.def *.map *.pdb *.bs Makefile *$(o) pm_to_blib *.xdc *.err
1482 !if "$(NW_EXTNS)"=="yes"
1484 -del *.obj *.bs Makefile *$(o) *.c pm_to_blib *.xdc *.err *.sym *.map
1486 cd $(EXTDIR)\Perl2UCS
1487 -del *.obj *.bs Makefile *$(o) *.c pm_to_blib *.xdc *.err *.sym *.map *.c
1490 -rmdir /s /q $(AUTODIR) || rmdir /s $(AUTODIR)
1491 -rmdir /s /q $(COREDIR) || rmdir /s $(COREDIR)
1495 $(MINIPERL) -I..\lib ..\installperl
1497 install : utils installwin
1500 $(MINIPERL) -I..\lib ..\installperl -netware
1504 xcopy /f /r /i /s /d *.* $(INST_NW_TOP2)\scripts\t
1506 xcopy /f /r /i /s /d *.t $(INST_NW_TOP2)\scripts\t\lib
1508 xcopy /f /r /i /s /d *.t $(INST_NW_TOP2)\scripts\t\ext
1510 xcopy /f /r /i /s /d *.pl $(INST_NW_TOP2)\scripts\t
1513 nwinstall: utils installnw install_tests
1515 inst_lib : $(CONFIGPM)
1516 copy ..\win32\splittree.pl ..
1517 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR)
1518 $(RCOPY) ..\lib $(INST_LIB)\*.*
1521 -@erase miniperlmain$(o)
1524 -@erase ..\*$(o) ..\*.lib ..\*.exp *$(o) *.lib *.exp *.res
1525 -@erase ..\t\*.exe ..\t\*.dll ..\t\*.bat
1526 -@erase ..\x2p\*.nlm ..\x2p\*.bat