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.
309 # Begin - Following is required to build NetWare specific extensions Perl2UCS & CGI2Perl
311 PERL2UCS = $(EXTDIR)\Perl2UCS\Perl2UCS
312 CGI2PERL = CGI2Perl\CGI2Perl
314 PERL2UCS_NLP = $(AUTODIR)\Perl2UCS\Perl2UCS.nlp
315 CGI2PERL_NLP = \CGI2Perl\CGI2Perl.nlp
323 ECHO_SRC = TestNLM\echo\echo.c
324 TYPE_SRC = TestNLM\type\type.c
325 ECHO_SRC_OBJ = $(ECHO_SRC:.c=.obj)
326 TYPE_SRC_OBJ = $(TYPE_SRC:.c=.obj)
327 ECHO_NLM = TestNLM\echo\echo.nlm
328 TYPE_NLM = TestNLM\type\type.nlm
339 !ifndef NLM_DESCRIPTION
340 NLM_DESCRIPTION = $(NLM_NAME8) for Netware
352 BUILT = $(BLDDIR)\$(NLM_NAME8).$(NLM_EXT)
355 !ifndef BASE_IMPORT_FILES
356 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
360 BASE_IMPORT_FILES = $(BASE_IMPORT_FILES), @$(MPKBASE)\import\mpkorg.imp
363 !ifndef BASE_IMPORT_FNS
364 BASE_IMPORT_FNS = Import ImportSymbol, GetSystemConsoleScreen, LoadModule
368 NWLIBPATH = $(WATCOM)\lib386\netware
369 LIBPATH386 = $(WATCOM)\lib386
370 LIBPATH = $(NWLIBPATH);$(LIBPATH386)
376 !else #!ifdef CODEWARRIOR
377 !error Please define the tools base directory before proceeding
378 !endif #!ifdef CODEWARRIOR
379 !endif #!ifdef WATCOM
381 !ifndef BASE_LIBRARIES
383 BASE_LIBRARIES = Library plib3s.lib,math3s.lib,clib3s.lib
387 !endif #!ifdef CODEWARRIOR
388 !endif #!ifdef WATCOM
389 !endif #!ifndef BASE_LIBRARIES
391 COPYRIGHT = Copyright 2001 by Novell, Inc. All rights reserved.
393 EXPORTS = Export @perl.imp
396 # Set these to wherever you want "nmake install" to put your
400 INST_TOP = $(INST_DRV)\perl
404 INST_NW_TOP1 = $(INST_NW_VOL)\perl
405 INST_NW_TOP2 = $(INST_NW_DRV)\perl
406 #INST_NW_VER = \5.6.1
409 # Comment this out if you DON'T want your perl installation to be versioned.
410 # This means that the new installation will overwrite any files from the
411 # old installation at the same INST_TOP location. Leaving it enabled is
412 # the safest route, as perl adds the extra version directory to all the
413 # locations it installs files to. If you disable it, an alternative
414 # versioned installation can be obtained by setting INST_TOP above to a
415 # path that includes an arbitrary version string.
420 # Comment this out if you DON'T want your perl installation to have
421 # architecture specific components. This means that architecture-
422 # specific files will be installed along with the architecture-neutral
423 # files. Leaving it enabled is safer and more flexible, in case you
424 # want to build multiple flavors of perl and install them together in
425 # the same location. Commenting it out gives you a simpler
426 # installation that is easier to understand for beginners.
428 INST_ARCH = \$(ARCHNAME)
431 # uncomment to enable multiple interpreters. This is need for fork()
437 # Beginnings of interpreter cloning/threads; still very incomplete.
438 # This should be enabled to get the fork() emulation. This needs
441 USE_ITHREADS = define
444 # uncomment to enable the implicit "host" layer for all system calls
445 # made by perl. This needs USE_MULTI above. This is also needed to
450 # uncomment this to enable the experimental PerlIO I/O subsystem
451 # else USE_STDIO will be defined.
456 # WARNING! This option is deprecated and will eventually go away (enable
457 # USE_ITHREADS instead).
459 # uncomment to enable threads-capabilities. This is incompatible with
460 # USE_ITHREADS, and is only here for people who may have come to rely
461 # on the experimental Thread support that was in 5.005.
463 #USE_5005THREADS= define
465 # For now let this be here
467 #CRYPT_SRC = fcrypt.c
469 # For now let this be here
471 #CRYPT_LIB = fcrypt.lib
474 # set this if you wish to use perl's malloc
475 # WARNING: Turning this on/off WILL break binary compatibility with extensions
476 # you may have compiled with/without it. Be prepared to recompile all
477 # extensions if you change the default. Currently, this cannot be enabled
478 # if you ask for USE_IMP_SYS above.
480 #PERL_MALLOC = define
483 # set this to your email address (perl will guess a value from
484 # from your loginname and your hostname, which may not be right)
489 ## Build configuration ends.
492 ##################### CHANGE THESE ONLY IF YOU MUST #####################
494 !IF "$(CRYPT_SRC)$(CRYPT_LIB)" == ""
498 CRYPT_FLAG = -DHAVE_DES_FCRYPT
501 !IF "$(PERL_MALLOC)" == ""
505 !IF "$(USE_5005THREADS)" == ""
506 USE_5005THREADS = undef
509 !IF "$(USE_5005THREADS)" == "define"
513 !IF "$(USE_IMP_SYS)" == "define"
517 !IF "$(USE_MULTI)" == ""
521 !IF "$(USE_ITHREADS)" == ""
525 !IF "$(USE_IMP_SYS)" == ""
529 !IF "$(USE_PERLCRT)" == ""
533 !IF "$(USE_IMP_SYS)$(USE_MULTI)$(USE_5005THREADS)" == "defineundefundef"
537 !IF "$(USE_ITHREADS)$(USE_MULTI)" == "defineundef"
539 USE_5005THREADS = undef
542 !IF "$(USE_MULTI)$(USE_5005THREADS)" != "undefundef"
543 BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_CONTEXT
546 !IF "$(USE_IMP_SYS)" != "undef"
547 BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_SYS
550 !IF "$(PROCESSOR_ARCHITECTURE)" == ""
551 PROCESSOR_ARCHITECTURE = x86
554 !IF "$(USE_5005THREADS)" == "define"
555 ARCHNAME = NetWare-$(PROCESSOR_ARCHITECTURE)-thread
557 !IF "$(USE_MULTI)" == "define"
558 ARCHNAME = NetWare-$(PROCESSOR_ARCHITECTURE)-multi
560 ARCHNAME = NetWare-$(PROCESSOR_ARCHITECTURE)
564 !IF "$(USE_MULTI)$(USE_5005THREADS)" != "undefundef"
565 ADD_BUILDOPT = $(ADD_BUILDOPT) -DPERL_IMPLICIT_CONTEXT
568 !IF "$(USE_IMP_SYS)" != "undef"
569 ADD_BUILDOPT = $(ADD_BUILDOPT) -DPERL_IMPLICIT_SYS
572 !IF "$(USE_ITHREADS)" == "define"
573 ARCHNAME = $(ARCHNAME)-thread
576 !IF "$(USE_PERLIO)" == "define"
578 ADD_BUILDOPT = $(ADD_BUILDOPT) -DUSE_PERLIO
579 ARCHNAME = $(ARCHNAME)-perlio
582 #ADD_BUILDOPT = $(ADD_BUILDOPT) -DUSE_STDIO
585 ARCHDIR = ..\lib\$(ARCHNAME)
586 COREDIR = ..\lib\CORE
587 AUTODIR = ..\lib\auto
591 EXTUTILSDIR = $(LIBDIR)\ExtUtils
594 INST_SCRIPT = $(INST_TOP)$(INST_VER)\bin
595 INST_BIN = $(INST_SCRIPT)$(INST_ARCH)
596 INST_LIB = $(INST_TOP)$(INST_VER)\lib
597 INST_ARCHLIB = $(INST_LIB)$(INST_ARCH)
598 INST_COREDIR = $(INST_ARCHLIB)\CORE
599 INST_POD = $(INST_LIB)\pod
600 INST_HTML = $(INST_POD)\html
610 #################### do not edit below this line #######################
611 ############# NO USER-SERVICEABLE PARTS BEYOND THIS POINT ##############
619 .SUFFIXES : .c $(o) .nlm .lib .nlp
624 PERLIMPLIB = ..\perl.lib
626 MINIPERL = ..\miniperl.exe
627 CONFIGPM = ..\lib\Config.pm
628 MINIMOD = ..\lib\ExtUtils\Miniperl.pm
631 PL2BAT = ..\win32\bin\pl2bat.pl
656 XCOPY = xcopy /f /r /i /d
657 RCOPY = xcopy /f /r /i /e /d
662 # filenames given to xsubpp must have forward slashes (since it puts
663 # full pathnames in #line strings)
664 XSUBPP = ..\$(MINIPERL) -I..\..\lib ..\$(EXTUTILSDIR)\xsubpp \
701 #EXTRACORE_SRC = $(EXTRACORE_SRC) perllib.c
703 !IF "$(PERL_MALLOC)" == "define"
704 EXTRACORE_SRC = $(EXTRACORE_SRC) ..\malloc.c
707 #EXTRACORE_SRC = $(EXTRACORE_SRC) ..\perlio.c
709 !IF "$(CRYPT_SRC)" != ""
710 NW_SRC = $(NW_SRC) .\$(CRYPT_SRC)
713 DLL_SRC = $(DYNALOADER).c
758 CORE_H = $(CORE_NOCFG_H) .\config.h
760 DLL_OBJ = $(DLL_SRC:.c=.obj)
761 X2P_OBJ = $(X2P_SRC:.c=.obj)
763 DYNAMIC_EXT = Socket IO Fcntl Opcode SDBM_File POSIX attrs Thread B re \
764 Data/Dumper Devel/Peek ByteLoader Devel/DProf File/Glob \
765 Storable/Storable List/Util MIME/Base64/Base64 \
766 XS/Typemap/Typemap Unicode/Normalize/Normalize Sys/Hostnamees
769 STATIC_EXT = DynaLoader
772 DYNALOADER = $(EXTDIR)\DynaLoader\DynaLoader
773 SOCKET = $(EXTDIR)\Socket\Socket
774 FCNTL = $(EXTDIR)\Fcntl\Fcntl
775 OPCODE = $(EXTDIR)\Opcode\Opcode
776 SDBM_FILE = $(EXTDIR)\SDBM_File\SDBM_File
778 POSIX = $(EXTDIR)\POSIX\POSIX
779 ATTRS = $(EXTDIR)\attrs\attrs
780 THREAD = $(EXTDIR)\Thread\Thread
783 DUMPER = $(EXTDIR)\Data\Dumper\Dumper
784 ERRNO = $(EXTDIR)\Errno\Errno
785 PEEK = $(EXTDIR)\Devel\Peek\Peek
786 BYTELOADER = $(EXTDIR)\ByteLoader\ByteLoader
787 DPROF = $(EXTDIR)\Devel\DProf\DProf
788 GLOB = $(EXTDIR)\File\Glob\Glob
789 HOSTNAME = $(EXTDIR)\Sys\Hostname\Hostname
790 CWD = $(EXTDIR)\Cwd\Cwd
791 STORABLE = $(EXTDIR)\Storable\Storable
792 LISTUTIL = $(EXTDIR)\List\Util
793 MIMEBASE64 = $(EXTDIR)\MIME\Base64\Base64
794 XSTYPEMAP = $(EXTDIR)\XS\Typemap\Typemap
795 UNICODENORMALIZE = $(EXTDIR)\Unicode\Normalize\Normalize
797 ERRNO_PM_NW = $(LIBDIR)\Errno.pm
821 $(UNICODENORMALIZE).c \
826 POD2HTML = $(PODDIR)\pod2html
827 POD2MAN = $(PODDIR)\pod2man
828 POD2LATEX = $(PODDIR)\pod2latex
829 POD2TEXT = $(PODDIR)\pod2text
835 all : .cleanoldfiles .\nwconfig.h $(CONFIGPM) $(NLM_NAME) $(EXTENSION_NLP) $(EXTENSION_NPM) $(TEST_NLMS) $(NETWARE_EXTNS)
837 #------------------------------------------------------------
839 ..\config.sh : config.nw5 $(MINIPERL) config_sh.PL
840 $(MINIPERL) -I..\lib config_sh.PL $(NW_CFG_VARS) config.nw5 > ..\config.sh
842 # this target is for when changes to the main config.sh happen
843 # edit config.{b,v,g,w}c and make this target once for each supported
844 # compiler (e.g. `dmake CCTYPE=BORLAND regen_config_h`)
846 perl config_sh.PL $(NW_CFG_VARS) $(NW_CFGSH_TMPL) > ..\config.sh
851 -del /f /q $(NW_CFGH_TMPL)
853 -perl -I..\lib config_h.PL "INST_VER=$(INST_VER)"
854 rename config.h $(NW_CFGH_TMPL)
856 $(CONFIGPM) : $(MINIPERL) ..\config.sh config_h.PL ..\minimod.pl
857 cd .. && miniperl configpm
858 if exist lib\* $(RCOPY) lib\*.* ..\lib\$(NULL)
859 $(XCOPY) ..\*.h $(COREDIR)\*.*
860 $(XCOPY) *.h $(COREDIR)\*.*
861 $(XCOPY) ..\ext\re\re.pm $(LIBDIR)\*.*
862 if exist include\* $(RCOPY) include $(COREDIR)\*.*
863 $(MINIPERL) -I..\lib config_h.PL "INST_VER=$(INST_VER)" \
864 || $(MAKE) /$(MAKEFLAGS) $(CONFIGPM)
867 $(error)Please build $(MINIPERL) before continuing
869 $(MINIMOD) : $(MINIPERL) ..\minimod.pl
870 cd .. && miniperl minimod.pl > lib\ExtUtils\Miniperl.pm
872 ..\x2p\a2p$(o) : ..\x2p\a2p.c
873 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
874 @$(C_COMPILER) -I..\x2p $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$*.err ..\x2p\a2p.c
876 ..\x2p\hash$(o) : ..\x2p\hash.c
877 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
878 @$(C_COMPILER) -I..\x2p $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$*.err ..\x2p\hash.c
880 ..\x2p\str$(o) : ..\x2p\str.c
881 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
882 @$(C_COMPILER) -I..\x2p $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$*.err ..\x2p\str.c
884 ..\x2p\util$(o) : ..\x2p\util.c
885 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
886 @$(C_COMPILER) -I..\x2p $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$*.err ..\x2p\util.c
888 ..\x2p\walk$(o) : ..\x2p\walk.c
889 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
890 @$(C_COMPILER) -I..\x2p $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$*.err ..\x2p\walk.c
892 $(X2P) : $(MINIPERL) $(X2P_OBJ)
893 $(MINIPERL) ..\x2p\find2perl.PL
894 $(MINIPERL) ..\x2p\s2p.PL
896 $(MPKTOOL) $(XDCFLAGS) $*.xdc
899 @$(NLM_LINK) @<<$*.link
900 Form Novell NLM 'Awk to Perl converter'
903 Option Version = $(NLM_VERSION)
904 Option Copyright '$(COPYRIGHT)'
906 Option Map=$*.map, Verbose, screenname 'System Console'
908 Option SYMFILE=$*.sym
910 OPTION XDCDATA=$*.xdc
914 !if "$(MAKE_TYPE)"=="Debug"
926 File $(X2P_OBJ:.obj=,) .\$(BLDDIR)\clibstuf.obj
930 # Linker definitions and lining come here for CODEWARRIOR
934 $(EXTDIR)\DynaLoader\dl_netware.xs: dl_netware.xs
935 copy dl_netware.xs $(EXTDIR)\DynaLoader\dl_netware.xs
938 @echo . . . . making stdio.h and string.h
939 @copy << stdio.h >\nul
942 * Copyright © 2001 Novell, Inc. All Rights Reserved.
944 * You may distribute under the terms of either the GNU General Public
945 * License or the Artistic License, as specified in the README file.
951 * DESCRIPTION : Generated header file, do not edit. See makefile.
952 * This header file causes the includer to use clibstuf.h
953 * The purpose of clibstuf is to make sure that Perl, cgi2perl and
954 * all the perl extension nlm's (*.NLP) use the Novell Netware CLIB versions
955 * of standard functions. This code loads up a whole bunch of function pointers
956 * to point at the standard CLIB functions.
958 * Date : January 2001.
967 #include "$(NLMSDKBASE)\INCLUDE\NLM\stdio.h"
968 #include "clibsdio.h"
971 #endif // __Stdio_H__
974 @copy stdio.h $(COREDIR)
976 @copy << string.h >\nul
979 * Copyright © 2001 Novell, Inc. All Rights Reserved.
981 * You may distribute under the terms of either the GNU General Public
982 * License or the Artistic License, as specified in the README file.
987 * FILENAME : string.h
988 * DESCRIPTION : Generated header file, do not edit. See makefile.
989 * This header file causes the includer to use clibstuf.h
990 * The purpose of clibstuf is to make sure that Perl, cgi2perl and
991 * all the perl extension nlm's (*.NLP) use the Novell Netware CLIB versions
992 * of standard functions. This code loads up a whole bunch of function pointers
993 * to point at the standard CLIB functions.
995 * Date : January 2001.
1000 #ifndef __String_H__
1001 #define __String_H__
1004 #include "$(NLMSDKBASE)\INCLUDE\NLM\string.h"
1005 #include "clibstr.h"
1008 #endif // __String_H__
1011 @copy string.h $(COREDIR)
1014 $(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)
1015 @echo======= Linking $@ at $(MAKEDIR)\$(BLDDIR) =======
1017 @$(NLM_LINK) @<<$(BLDDIR)\$*.link
1018 Form Novell NLM '$(NLM_DESCRIPTION)'
1021 Option Version = $(NLM_VERSION)
1022 Option Copyright '$(COPYRIGHT)'
1024 Option Map=$(BLDDIR)\$(NLM_NAME8).map, Verbose, screenname $(SCREEN)
1027 Option SYMFILE=$(BLDDIR)\$(NLM_NAME8).sym
1029 OPTION XDCDATA=$(BLDDIR)\$(NLM_NAME8).xdc
1032 Option SYMFILE=$(BLDDIR)\$(NLM_NAME).sym
1034 OPTION XDCDATA=$(BLDDIR)\$(NLM_NAME).xdc
1037 Option NoDefaultLibs
1038 $(EXTRA_LINK_OPTION)
1039 !if "$(MAKE_TYPE)"=="Debug"
1049 $(BASE_IMPORT_FILES)
1053 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,)
1057 # Linker definitions and lining come here for CODEWARRIOR
1060 copy ..\win32\splittree.pl ..
1061 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR)
1064 !if "$(MAKE_TYPE)"=="Debug"
1066 .\bat\cvpack $(BLDDIR)\$(NLM_NAME8).sym
1068 .\bat\cvpack $(BLDDIR)\$(NLM_NAME).sym
1072 @echo======= Finished building $(BUILT).
1074 # Create the debug\release directory if not existing
1076 @echo . . . . mkdir $(BLDDIR)
1080 @echo======= $(MAKE_ACTION)ing $(NLM_NAME) at $(MAKEDIR)\$(BLDDIR) =======
1084 @echo======= Creating XDC file
1086 $(MPKTOOL) $(XDCFLAGS) $(BLDDIR)\$(NLM_NAME8).xdc
1088 $(MPKTOOL) $(XDCFLAGS) $(BLDDIR)\$(NLM_NAME).xdc
1092 $(PERLIMPLIB): perllib.def
1093 $(NLM_LIB) -def:perllib.def -out:$(PERLIMPLIB)
1094 $(XCOPY) $(PERLIMPLIB) $(COREDIR)
1096 perllib.def : $(MINIPERL) $(CONFIGPM) ..\global.sym ..\pp.sym ..\makedef.pl
1097 $(MINIPERL) -w ..\makedef.pl PLATFORM=netware FILETYPE=def $(BS_CFLAGS) $(DEFINES) $(ADD_BUILDOPT) \
1098 CCTYPE=$(CCTYPE) > perllib.def
1099 $(MINIPERL) -w ..\makedef.pl PLATFORM=netware FILETYPE=imp $(BS_CFLAGS) $(DEFINES) $(ADD_BUILDOPT) \
1100 CCTYPE=$(CCTYPE) > perl.imp
1102 $(DLL_OBJ) : $(DYNALOADER).c $(CORE_H) $(EXTDIR)\DynaLoader\dlutils.c
1103 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
1104 @$(C_COMPILER) @<<$(BLDDIR)\$(*F).options
1105 $(NLM_INCLUDES) -I$(EXTDIR)\DynaLoader\ $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$(BLDDIR)\$(*F).err $(EXTDIR)\DynaLoader\$(*F).c
1108 $(DYNALOADER).c : $(MINIPERL) $(EXTDIR)\DynaLoader\dl_netware.xs $(CONFIGPM)
1109 if not exist $(AUTODIR) mkdir $(AUTODIR)
1111 ..\$(MINIPERL) -I..\..\lib $(*B)_pm.PL
1112 ..\$(MINIPERL) -I..\..\lib XSLoader_pm.PL
1114 $(XCOPY) $(EXTDIR)\$(*B)\$(*B).pm $(LIBDIR)\$(NULL)
1115 $(XCOPY) $(EXTDIR)\$(*B)\XSLoader.pm $(LIBDIR)\$(NULL)
1117 $(XSUBPP) dl_netware.xs > $(*B).c
1120 $(PERL_LIB_OBJ_DEP) : $(NW_HOST_H_FILES) $(*F).c
1121 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
1122 @$(CPP_COMPILER) @<<$(BLDDIR)\$(*F).options
1123 -I.. $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$*.err $(*F).c
1126 $(PERL_IO_OBJ_DEP) : ..\$(*F).c
1127 @echo $(MPKMESSAGE) $(BLDMESG) $@
1128 @$(C_COMPILER) @<<$(BLDDIR)\$(*F).options
1129 $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$*.err ..\$(*F).c
1132 $(NLM_OBJ) : ..\$(*F).c
1133 @echo $(MPKMESSAGE) $(BLDMESG) $@
1134 @$(C_COMPILER) @<<$(BLDDIR)\$(*F).options
1135 $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$*.err ..\$(*F).c
1138 $(NEWTARE_OBJ_DEP) : $(NW_H_FILES) $(NW_HOST_H_FILES) $(*F).c
1139 @echo $(MPKMESSAGE) $(BLDMESG) $@
1140 @$(C_COMPILER) @<<$(BLDDIR)\$(*F).options
1141 $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$*.err $(*F).c
1144 $(EXT_MAIN_OBJ) : $(CLIB_H_FILES)
1145 @echo $(MPKMESSAGE) $(BLDMESG) $@
1146 @$(C_COMPILER) @<<$(BLDDIR)\$(*F).options
1147 $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$*.err $(*F).c
1149 $(NLM_LIB) $@ $(NLMIMPORTS)\prelude.obj -out:$*.lib
1150 @copy $*.lib $(COREDIR)
1152 # Delete any files that might have got created during building miniperl.exe
1153 # config.sh will definitely be created
1154 # COREDIR might have got created
1156 -del /f /q $(PERLIMPLIB)
1157 -del /f /q ..\lib\config.pm
1158 -del /f /q ..\config.sh
1159 -del /f /q .\Main.obj
1160 -del /f /q .\Main.lib
1161 -rmdir /s /q $(AUTODIR)
1162 -rmdir /s /q $(COREDIR)
1163 -del /f /q ..\lib\core
1165 .\nwconfig.h : $(NW_CFGH_TMPL)
1167 copy $(NW_CFGH_TMPL) config.h
1169 # REQUIRED WHEN WE INCLUDE CONFIGPM OR REGEN_CONFIG - sgp
1170 #..\nwconfig.sh : config.nw5 $(MINIPERL) config_sh.PL
1171 # $(MINIPERL) -I..\lib config_sh.PL $(NW_CFG_VARS) config.nw5 > ..\config.sh
1175 # rename nwconfig.sh config.sh
1178 config.nw5 : $(NW_CFGSH_TMPL)
1179 copy $(NW_CFGSH_TMPL) config.nw5
1181 $(SOCKET_NLP): $(NLM_NAME) $(SOCKET).xs
1183 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1187 $(HOSTNAME_NLP): $(NLM_NAME) $(HOSTNAME).xs
1188 cd $(EXTDIR)\Sys\$(*B)
1189 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
1195 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1201 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1207 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1213 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1218 cd $(EXTDIR)\Data\$(*B)
1219 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
1224 cd $(EXTDIR)\Devel\$(*B)
1225 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
1231 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1237 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1242 cd $(EXTDIR)\Devel\$(*B)
1243 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
1248 cd $(EXTDIR)\File\$(*B)
1249 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
1255 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1261 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1267 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1273 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1279 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1285 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1290 cd $(EXTDIR)\List\$(*B)
1291 ..\..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1296 cd $(EXTDIR)\Mime\$(*B)
1297 ..\..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1302 cd $(EXTDIR)\XS\$(*B)
1303 ..\..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1307 $(UNICODENORMALIZE_NLP):
1308 cd $(EXTDIR)\Unicode\$(*B)
1309 ..\..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1315 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1319 $(ECHO_SRC_OBJ): $*.c
1320 @echo $(MPKMESSAGE) $(BLDMESG) $@
1321 @$(C_COMPILER) @<<$*.options
1322 $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$*.err $*.c
1325 $(ECHO_NLM): $(ECHO_SRC_OBJ)
1326 @echo======= Linking $@ =======
1328 $(MPKTOOL) $(XDCFLAGS) $*.xdc
1331 @$(NLM_LINK) @<<$*.link
1332 Form Novell NLM 'DOS echo emulation for Perl Testing' Name $@
1333 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
1335 OPTION XDCDATA=$*.xdc
1337 $(EXTRA_LINK_OPTION)
1338 !if "$(MAKE_TYPE)"=="Debug"
1343 $(BASE_LIBRARIES) Module clib $(BASE_IMPORT_FNS) $(BASE_IMPORT_FILES) $(ADD_IMPORT_FNS)
1346 File $(ECHO_SRC_OBJ:.obj=.obj,) .\$(BLDDIR)\clibstuf.obj
1350 # Linker definitions and lining come here for CODEWARRIOR
1353 @echo======= Linking Complete =======
1355 $(TYPE_SRC_OBJ): $*.c
1356 @echo $(MPKMESSAGE) $(BLDMESG) $@
1357 @$(C_COMPILER) @<<$*.options
1358 $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(OBJOUT_FLAG)$@ $(ERROR_FLAG)$*.err $*.c
1361 $(TYPE_NLM): $(TYPE_SRC_OBJ)
1362 @echo======= Linking $@ =======
1364 $(MPKTOOL) $(XDCFLAGS) $*.xdc
1367 @$(NLM_LINK) @<<$*.link
1368 Form Novell NLM 'DOS type emulation for Perl Testing' Name $@
1369 Option Quiet Option Version = $(NLM_VERSION) Option Copyright '$(COPYRIGHT)' Option Caseexact Option Map=$*.map, Verbose, screenname 'System Console' Option Stack=1000 Option SYMFILE=$*.sym
1371 OPTION XDCDATA=$*.xdc
1373 Option NoDefaultLibs
1374 $(EXTRA_LINK_OPTION)
1375 !if "$(MAKE_TYPE)"=="Debug"
1380 $(BASE_LIBRARIES) Module clib $(BASE_IMPORT_FNS) $(BASE_IMPORT_FILES) $(ADD_IMPORT_FNS)
1383 File $(TYPE_SRC_OBJ:.obj=.obj,) .\$(BLDDIR)\clibstuf.obj
1387 # Linker definitions and lining come here for CODEWARRIOR
1390 @echo======= Linking Complete =======
1392 # Build NetWare specific extensions
1394 !if "$(NW_EXTNS)"=="yes"
1396 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1402 !if "$(NW_EXTNS)"=="yes"
1404 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1410 -rmdir /s /q $(REL_DIR)
1411 -rmdir /s /q $(DEB_DIR)
1412 @if exist .\stdio.h del /f /q .\stdio.h
1413 @if exist .\string.h del /f /q .\string.h
1414 @if exist .\Main.obj del /f /q .\Main.obj
1415 @if exist .\Main.lib del /f /q .\Main.lib
1416 @if exist .\config.nw5 del /f /q .\config.nw5
1417 @if exist .\perl.imp del /f /q .\perl.imp
1419 -del /f /q *.obj *.map *.link *.options *.nlm *.sym *.xdc *.err
1421 -del /f /q *.obj *.map *.link *.options *.nlm *.sym *.xdc *.err
1424 utils: $(BLDDIR)\$(NLM_NAME8).$(NLM_EXT) $(X2P)
1426 $(MAKE) PERL=$(MINIPERL)
1428 copy ..\README.amiga .\perlamiga.pod
1429 copy ..\README.cygwin .\perlcygwin.pod
1430 copy ..\README.dos .\perldos.pod
1431 copy ..\README.hpux .\perlhpux.pod
1432 # copy ..\README.machten .\perlmachten.pod
1433 copy ..\README.os2 .\perlos2.pod
1434 copy ..\vms\perlvms.pod .\perlvms.pod
1435 copy ..\README.win32 .\perlwin32.pod
1436 copy ..\README.netware .\perlnw5.pod
1437 $(MAKE) -f ..\win32\pod.mak converters
1439 $(MINIPERL) $(PL2BAT) $(UTILS)
1441 distclean: clean nwclean
1442 -del /f /q $(PERLIMPLIB) ..\miniperl.lib $(MINIMOD)
1443 -del /f /q *.def *.map
1444 -del /f /q $(EXTENSION_NPM)
1445 -del /f /q $(EXTENSION_C) $(DYNALOADER).c $(ERRNO).pm
1446 -del /f /q $(EXTDIR)\DynaLoader\dl_netware.xs
1447 -del /f /q $(LIBDIR)\.exists $(LIBDIR)\attrs.pm $(LIBDIR)\DynaLoader.pm
1448 -del /f /q $(LIBDIR)\XSLoader.pm
1449 -del /f /q $(LIBDIR)\Fcntl.pm $(LIBDIR)\IO.pm $(LIBDIR)\Opcode.pm
1450 -del /f /q $(LIBDIR)\ops.pm $(LIBDIR)\Safe.pm
1451 -del /f /q $(LIBDIR)\SDBM_File.pm $(LIBDIR)\Socket.pm $(LIBDIR)\POSIX.pm
1452 -del /f /q $(LIBDIR)\B.pm $(LIBDIR)\O.pm $(LIBDIR)\re.pm
1453 -del /f /q $(LIBDIR)\Data\Dumper.pm $(LIBDIR)\ByteLoader.pm
1454 -del /f /q $(LIBDIR)\Devel\Peek.pm $(LIBDIR)\Devel\DProf.pm
1455 -del /f /q $(LIBDIR)\File\Glob.pm
1456 -del /f /q $(LIBDIR)\Unicode\Normalize.pm
1457 -rmdir /s /q $(LIBDIR)\IO
1458 -rmdir /s /q $(LIBDIR)\Thread
1459 -rmdir /s /q $(LIBDIR)\B
1460 -rmdir /s /q $(LIBDIR)\Data
1461 -del /f /q $(PODDIR)\*.html
1462 -del /f /q $(PODDIR)\*.bat
1464 -del /f /q h2ph splain perlbug pl2pm c2ph h2xs perldoc dprofpp
1468 -del /f /q find2perl s2p
1470 -del /f /q *.obj *.map *.link *.xdc *.err
1472 -del /f /q ..\config.sh ..\splittree.pl dlutils.c config.h.new
1473 -del /f /q $(CONFIGPM)
1474 -del /f /q bin\*.bat
1476 -del /s /q *.lib *.def *.map *.pdb *.bs Makefile *$(o) pm_to_blib *.xdc *.err
1478 !if "$(NW_EXTNS)"=="yes"
1480 -del /f /q *.obj *.bs Makefile *$(o) *.c pm_to_blib *.xdc *.err *.sym *.map
1482 cd $(EXTDIR)\Perl2UCS
1483 -del /f /q *.obj *.bs Makefile *$(o) *.c pm_to_blib *.xdc *.err *.sym *.map *.c
1486 -rmdir /s /q $(AUTODIR)
1487 -rmdir /s /q $(COREDIR)
1488 -del /f /q ..\config.sh
1491 $(MINIPERL) -I..\lib ..\installperl
1493 install : utils installwin
1496 $(MINIPERL) -I..\lib ..\installperl -netware
1500 xcopy /f /r /i /s /d *.* $(INST_NW_TOP2)\scripts\t
1502 xcopy /f /r /i /s /d *.t $(INST_NW_TOP2)\scripts\t\lib
1504 xcopy /f /r /i /s /d *.t $(INST_NW_TOP2)\scripts\t\ext
1506 xcopy /f /r /i /s /d *.pl $(INST_NW_TOP2)\scripts\t
1509 nwinstall: utils installnw install_tests
1511 inst_lib : $(CONFIGPM)
1512 copy ..\win32\splittree.pl ..
1513 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR)
1514 $(RCOPY) ..\lib $(INST_LIB)\*.*
1517 -@erase miniperlmain$(o)
1520 -@erase ..\*$(o) ..\*.lib ..\*.exp *$(o) *.lib *.exp *.res
1521 -@erase ..\t\*.exe ..\t\*.dll ..\t\*.bat
1522 -@erase ..\x2p\*.nlm ..\x2p\*.bat