Given that @optype and @specialsv_name are hard coded tables, it seems
[p5sagit/p5-mst-13.2.git] / NetWare / Makefile
CommitLineData
2986a63f 1##
011f1a1a 2## Makefile to build Perl on NetWare using Microsoft NMAKE and CodeWarrior tools
2986a63f 3##
011f1a1a 4## This will build perl.nlm, perl.lib and extensions called NLMs
2986a63f 5##
6
7##
8## Please read README.netware before starting
9##
10
11##
12## Build configuration. Edit the values below to suit your needs.
13##
14
15## This file is created by using the makefile that creates Windows Perl as the reference
011f1a1a 16## Author:
f355267c 17## Date Created: 13th July 2000
18## Date Modified: 21st March 2002
2986a63f 19# Name of the NLM
011f1a1a 20
21
2986a63f 22NLM_NAME = perl.nlm
23NLM_NAME8 = Perl
24
25MAKE_ACTION = Build
26
27# Flags
28DBG_FLAG = -DDEBUGON
29
30NW_FLAGS = -DNETWARE -DNLM_PLATFORM -DNETDB_USE_INTERNET
31
32REL_DIR = Release
33DEB_DIR = Debug
34
011f1a1a 35
f355267c 36!ifndef NLMSDKBASE
37!message "Run bat\SetNWBld.bat to set the NetWare SDK before continuing.\n"
38!error
39!endif # !ifndef NLMSDKBASE
40
41!ifndef CODEWAR # !ifdef CODEWAR
42!message "CodeWarrior tools base directory is not defined. Run bat\setnwbld.bat before proceeding"
43!error
44!endif # !ifdef CODEWAR
45
46!ifndef MAKE_TYPE
2986a63f 47!message "Run bat\buildtype.bat to set the build type before continuing.\n"
48!error
f355267c 49!endif # !ifndef MAKE_TYPE
2986a63f 50
51!ifdef USE_MPK
52MPKFLAGS = -DMPK_ON -DIAPX386
53MPKMESSAGE = MPK Build...
54XDCTOOL = mpkxdc
55!ifndef MPKBASE
f355267c 56!message "Run bat\setmpksdk.bat to set the NetWare MPK SDK before continuing.\n"
57!error
58!endif # !ifndef MPKBASE
011f1a1a 59NLM_INCLUDE_MP = -I$(MPKBASE)\include
2986a63f 60MPKTOOL = $(MPKBASE)\$(XDCTOOL)
f355267c 61!else # !ifdef USE_MPK
2986a63f 62MPKMESSAGE = Non MPK Build...
63NLM_INCLUDE_MP =
64MPKTOOL =
f355267c 65!endif # !ifdef USE_MPK
66
67#!ifndef SECURITYBASE
68#!message "Run bat\SetSecSdk.bat to set the Security path before continuing.\n"
69#!error
70#!endif # !ifndef SECURITYBASE
71
72#!ifndef UCSINC
73#!message "Run bat\BldNWExt.bat to set the UCS Include path before continuing.\n"
74#!error
75#!endif # !ifndef UCSINC
76
77NLMIMPORTS = $(NLMSDKBASE)\imports
78
79!ifdef SECURITYBASE
80SECURITY_IMPORTS = $(SECURITYBASE)\imports
81!endif # !ifdef SECURITYBASE
011f1a1a 82
83!ifndef NLM_VERSION
84NLM_VERSION = 3,20,0
85!endif
2986a63f 86
011f1a1a 87
f355267c 88# Here comes the CW tools - TO BE FILLED TO BUILD WITH CW -
56a89353 89MODULE_DESC = "Perl 5.9.5 for NetWare"
011f1a1a 90CCTYPE = CodeWarrior
91C_COMPILER = mwccnlm -c
92CPP_COMPILER = mwccnlm
93LINK = mwldnlm
94LD = mwldnlm
95NLM_LIB = mwldnlm -type library
2986a63f 96TOOL_HEADERS =
97TOOL_PATH =
011f1a1a 98CWCPPFLAGS = -cpp_exceptions on -wchar_t off -bool on -w on -ansi off
99CCFLAGS = -maxerrors 25 -processor Pentium -align packed \
f355267c 100 -w nounusedarg -msext on \
011f1a1a 101 -DN_PLAT_NLM -DNLM=1 -D__NO_MATH_OPS -msgstyle gcc
102COMPILER_FLAG = -d NETWARE
103ERROR_FLAG = -sym on -sym codeview4 -sym internal
104LDFLAGS = -type generic -stacksize 16384 -zerobss \
105 -nofail -msgstyle gcc -nostderr -w on \
106 -nlmversion $(NLM_VERSION) \
f355267c 107 -copy "Copyright (C) 2000-01\, 2002 Novell\, Inc. All Rights Reserved."
011f1a1a 108
2986a63f 109# Debug flags comes here - Not mandatory - required only for debug build
110!if "$(MAKE_TYPE)"=="Debug"
111BLDDIR = $(DEB_DIR)
011f1a1a 112BLDMESG = Debug version,
2986a63f 113!ifdef USE_D2
011f1a1a 114BS_CFLAGS = -opt off -inline off -sym on -sym codeview4 -sym internal -DDEBUGGING -DDKFBPON
2986a63f 115BLDMESG = $(BLDMESG) Using /d2 option
f355267c 116!ifdef NLM_NAME8
cf267c36 117LDFLAGS = $(LDFLAGS) -sym on -sym codeview4 -sym internal -osym $(MAKE_TYPE)\$(NLM_NAME8).sym
f355267c 118!else # !ifdef NLM_NAME8
cf267c36 119LDFLAGS = $(LDFLAGS) -sym on -sym codeview4 -sym internal -osym $(MAKE_TYPE)\$(NLM_NAME).sym
f355267c 120!endif # !ifdef NLM_NAME8
121!else # !ifdef USE_D2
011f1a1a 122BS_CFLAGS = -opt off -inline off -sym on -sym codeview4 -sym internal -DDEBUGGING -DDKFBPON
2986a63f 123BLDMESG = $(BLDMESG) Using /d1 option
f355267c 124!ifdef NLM_NAME8
cf267c36 125LDFLAGS = $(LDFLAGS) -sym on -sym codeview4 -sym internal -osym $(MAKE_TYPE)\$(NLM_NAME8).sym
f355267c 126!else # !ifdef NLM_NAME8
cf267c36 127LDFLAGS = $(LDFLAGS) -sym on -sym codeview4 -sym internal -osym $(MAKE_TYPE)\$(NLM_NAME).sym
f355267c 128!endif # !ifdef NLM_NAME8
129!endif # !ifdef USE_D2
130!else # !if "$(MAKE_TYPE)"=="Debug"
2986a63f 131BLDDIR = $(REL_DIR)
132BLDMESG = Release version
011f1a1a 133##BS_CFLAGS = -opt speed -inline smart -inline auto -sym off
2986a63f 134BS_CFLAGS =
f355267c 135!endif # !if "$(MAKE_TYPE)"=="Debug"
136
2986a63f 137
138ADD_LOCDEFS = -DPERL_CORE
139
140NLM_INCLUDE = -I$(NLMSDKBASE)\include
141NLM_INCLUDE_NLM = -I$(NLMSDKBASE)\include\nlm
142NLM_INCLUDE_NLM_SYS = -I$(NLMSDKBASE)\include\nlm\sys
011f1a1a 143NLM_INCLUDE_OBSLETE = -I$(NLMSDKBASE)\include\nlm\obsolete
f355267c 144
145!ifdef SECURITYBASE
146SECURITY_INCLUDE = -I$(SECURITYBASE)\include
147!endif #!ifdef SECURITYBASE
148
149!ifdef UCSINC
011f1a1a 150NLM_INCLUDE_UCS = -I$(UCSINC)
f355267c 151!endif #!ifndef UCSINC
152
011f1a1a 153!if "$(NW_EXTNS)"=="yes"
2986a63f 154INCLUDE_NW = -I.\include
011f1a1a 155!endif
f355267c 156
157
2986a63f 158INC_PREV = -I..
011f1a1a 159INC_THIS = -I.
2986a63f 160
f355267c 161
011f1a1a 162NLM_INCLUDE_PATH = $(NLM_INCLUDE) $(NLM_INCLUDE_NLM) $(NLM_INCLUDE_NLM_SYS) $(NLM_INCLUDE_OBSLETE) \
f355267c 163 $(NLM_INCLUDE_MP) $(TOOL_HEADERS)
164
165!ifdef SECURITYBASE
166NLM_INCLUDE_PATH = $(NLM_INCLUDE_PATH) $(SECURITY_INCLUDE)
167!endif #!ifdef SECURITYBASE
168
169!ifdef UCSINC
170NLM_INCLUDE_PATH = $(NLM_INCLUDE_PATH) $(NLM_INCLUDE_UCS)
171!endif #!ifndef UCSINC
172
011f1a1a 173INCLUDE = $(INC_THIS) $(INC_PREV) -I- $(NLM_INCLUDE_PATH)
2986a63f 174
175PATH = $(PATH);$(TOOL_PATH)
176
011f1a1a 177NLM_INCLUDES = -I$(COREDIR) $(INCLUDE_NW)
178
179CCFLAGS = $(CCFLAGS) $(INCLUDE)
2986a63f 180
011f1a1a 181COMPLER_FLAGS = $(BS_CFLAGS) $(ADD_BUILDOPT) $(NW_FLAGS) $(COMPILER_FLAG) $(MPKFLAGS) $(CCFLAGS)
182
2986a63f 183
184# Source file list
185NW_H_FILES = \
186 .\iperlhost.h \
187 .\interface.h \
188 .\netware.h \
189 .\nw5iop.h \
190 .\nw5sck.h \
191 .\nwpipe.h \
192 .\nwplglob.h \
193 .\nwtinfo.h \
194 .\nwutil.h \
011f1a1a 195 .\nwhashcls.h \
2986a63f 196
197NW_HOST_H_FILES = \
198 .\iperlhost.h \
199 .\interface.h \
200 .\netware.h \
201 .\nw5sck.h \
011f1a1a 202 .\nwperlhost.h \
203
2986a63f 204
205CLIB_H_FILES = \
206 .\clibsdio.h \
207 .\clibstr.h \
208 .\clibstuf.h \
209 .\stdio.h \
210 .\string.h \
211
212NW_SRC = \
213 .\CLIBstuf.c \
f355267c 214 .\sv_nw.c \
2986a63f 215 .\nw5.c \
216 .\nw5sck.c \
217 .\nw5thread.c \
218 .\nwmain.c \
219 .\nwpipe.c \
220 .\nwplglob.c \
221 .\nwtinfo.c \
222 .\nwutil.c \
223
011f1a1a 224NW_CPP_SRC = \
225 .\nwhashcls.cpp \
226 .\interface.cpp \
227 .\perllib.cpp \
228
2986a63f 229EXT_MAIN_SRC = \
230 .\Main.c \
231
232PERL_IO_SRC = \
233 ..\perlio.c
234
011f1a1a 235CLIBSTUF_OBJ = \
236 .\CLIBstuf.obj
2986a63f 237
011f1a1a 238#PERL_TMP_OBJ = $(PERL_TEMP_SRC:.c=.obj)
2986a63f 239NW_SRC_OBJ = $(NW_SRC:.c=.obj)
011f1a1a 240NW_CPP_SRC_OBJ = $(NW_CPP_SRC:.cpp=.obj)
2986a63f 241NLM_MICROCORE_OBJ = $(MICROCORE_SRC:.c=.obj)
242PERL_LIB_OBJ = $(PERL_LIB_SRC:.c=.obj)
243PERL_IO_OBJ = $(PERL_IO_SRC:.c=.obj)
244NLM_CORE_OBJ = $(NLM_MICROCORE_OBJ)
245EXT_MAIN_OBJ = $(EXT_MAIN_SRC:.c=.obj)
246
247# For dependency checking
248# $(BLDDIR) in place of Release or Debug is not working, should look into this - sgp
011f1a1a 249!if "$(BLDDIR)"=="Release"
2986a63f 250NLM_OBJ = $(NLM_CORE_OBJ:..\=.\Release\)
251NEWTARE_OBJ_DEP = $(NW_SRC_OBJ:.\=.\Release\)
011f1a1a 252NEWTARE_CPP_OBJ_DEP = $(NW_CPP_SRC_OBJ:.\=.\Release\)
2986a63f 253PERL_LIB_OBJ_DEP = $(PERL_LIB_OBJ:.\=.\Release\)
254PERL_IO_OBJ_DEP = $(PERL_IO_OBJ:..\=.\Release\)
255!else
256NLM_OBJ = $(NLM_CORE_OBJ:..\=.\Debug\)
257NEWTARE_OBJ_DEP = $(NW_SRC_OBJ:.\=.\Debug\)
011f1a1a 258NEWTARE_CPP_OBJ_DEP = $(NW_CPP_SRC_OBJ:.\=.\Debug\)
2986a63f 259PERL_LIB_OBJ_DEP = $(PERL_LIB_OBJ:.\=.\Debug\)
260PERL_IO_OBJ_DEP = $(PERL_IO_OBJ:..\=.\Debug\)
261!endif
262
263# Symbol base_import & version added for NETWARE
264NW_CFG_VARS = \
265 "INST_DRV=$(INST_DRV)" \
266 "INST_TOP=$(INST_TOP)" \
267 "INST_VER=$(INST_VER)" \
268 "INST_ARCH=$(INST_ARCH)" \
269 "INST_NW_TOP1=$(INST_NW_TOP1)" \
270 "INST_NW_TOP2=$(INST_NW_TOP2)" \
271 "INST_NW_VER=$(INST_NW_VER)" \
272 "archname=$(ARCHNAME)" \
273 "cc=$(C_COMPILER)" \
011f1a1a 274 "ar=$(LINK)" \
2986a63f 275 "ccflags=$(COMPLER_FLAGS)" \
276 "cf_email=$(EMAIL)" \
277 "d_crypt=$(D_CRYPT)" \
278 "d_mymalloc=$(PERL_MALLOC)" \
279# "libs=$(LIBFILES)" \
280 "incpath=$(NLM_INCLUDE_PATH)" \
281 "libperl=$(PERLIMPLIB:..\=)" \
282 "libpth=$(LIBPATH)" \
283# "libc=$(LIBC)" \
284 "make=nmake" \
285 "static_ext=$(STATIC_EXT)" \
286 "dynamic_ext=$(DYNAMIC_EXT)" \
287 "nonxs_ext=$(NONXS_EXT)" \
2986a63f 288 "useithreads=$(USE_ITHREADS)" \
2986a63f 289 "usemultiplicity=$(USE_MULTI)" \
011f1a1a 290 "ld=$(LINK)" \
2986a63f 291 "base_import=$(BASE_IMPORT_FILES)" \
292 "LINK_FLAGS=$(LINK_FLAGS:"=\")" \
293 "optimize=" \
2986a63f 294 "d_stdio_cnt_lval=undef" \
295 "d_stdio_ptr_lval=undef" \
296 "d_stdiobase=undef" \
297 "d_stdstdio=undef" \
011f1a1a 298 "d_times=undef" \
2986a63f 299 "direntrytype=DIR" \
300 "nlm_version=$(NLM_VERSION)" \
301 "d_archname=NetWare" \
302 "mpktool=$(MPKTOOL) $(XDCFLAGS)" \
303 "toolpath=$(TOOL_PATH)"
304
305
306NW_CFGSH_TMPL = config.wc
307NW_CFGH_TMPL = config_H.wc
308
011f1a1a 309SOCKET_NLM = $(AUTODIR)\Socket\Socket.NLM
310FCNTL_NLM = $(AUTODIR)\Fcntl\Fcntl.NLM
311IO_NLM = $(AUTODIR)\IO\IO.NLM
312OPCODE_NLM = $(AUTODIR)\Opcode\Opcode.NLM
cd340a5d 313SDBM_FILE_NLM = $(AUTODIR)\SDBM_File\SDBM_File.NLM
011f1a1a 314POSIX_NLM = $(AUTODIR)\POSIX\POSIX.NLM
315ATTRS_NLM = $(AUTODIR)\attrs\attrs.NLM
011f1a1a 316B_NLM = $(AUTODIR)\B\B.NLM
317DUMPER_NLM = $(AUTODIR)\Data\Dumper\Dumper.NLM
318PEEK_NLM = $(AUTODIR)\Devel\Peek\Peek.NLM
319RE_NLM = $(AUTODIR)\re\re.NLM
320BYTELOADER_NLM = $(AUTODIR)\ByteLoader\ByteLoader.NLM
321DPROF_NLM = $(AUTODIR)\Devel\DProf\DProf.NLM
322GLOB_NLM = $(AUTODIR)\File\Glob\Glob.NLM
323HOSTNAME_NLM = $(AUTODIR)\Sys\Hostname\Hostname.NLM
324CWD_NLM = $(EXTDIR)\Cwd\Cwd.NLM
325STORABLE_NLM = $(EXTDIR)\Storable\Storable.NLM
326LISTUTIL_NLM = $(EXTDIR)\List\Util.NLM
327MIMEBASE64_NLM = $(EXTDIR)\MIME\Base64\Base64.NLM
83e2e978 328XSAPITEST_NLM = $(EXTDIR)\XS\APItest\APItest.NLM
011f1a1a 329XSTYPEMAP_NLM = $(EXTDIR)\XS\Typemap\Typemap.NLM
330UNICODENORMALIZE_NLM = $(EXTDIR)\Unicode\Normalize\Normalize.NLM
331
332EXTENSION_NLM = \
f355267c 333 $(FCNTL_NLM) \
334 $(BYTELOADER_NLM) \
335 $(IO_NLM) \
336 $(SOCKET_NLM) \
337 $(OPCODE_NLM) \
338 $(B_NLM) \
339 $(ATTRS_NLM) \
340 $(SDBM_FILE_NLM) \
011f1a1a 341 $(POSIX_NLM) \
011f1a1a 342 $(DUMPER_NLM) \
343 $(GLOB_NLM) \
344 $(PEEK_NLM) \
345 $(RE_NLM) \
346 $(DPROF_NLM) \
347 $(HOSTNAME_NLM) \
348 $(CWD_NLM) \
349 $(STORABLE_NLM) \
350 $(LISTUTIL_NLM) \
351 $(MIMEBASE64_NLM) \
83e2e978 352 $(XSAPITEST_NLM) \
011f1a1a 353 $(XSTYPEMAP_NLM) \
f355267c 354 $(UNICODENORMALIZE_NLM) \
355 $(FILTER_NLM)
011f1a1a 356
f355267c 357# Begin - Following is required to build NetWare specific extensions CGI2Perl, Perl2UCS and UCSExt
011f1a1a 358CGI2PERL = CGI2Perl\CGI2Perl
1a95e36d 359PERL2UCS = Perl2UCS\Perl2UCS
360UCSExt = Perl2UCS\UCSExt
011f1a1a 361
362CGI2PERL_NLM = \CGI2Perl\CGI2Perl.NLM
363PERL2UCS_NLM = $(AUTODIR)\Perl2UCS\Perl2UCS.NLM
364UCSExt_NLM = $(AUTODIR)\UCSExt\UCSExt.NLM
2986a63f 365
366NETWARE_EXTNS = \
011f1a1a 367 $(CGI2PERL_NLM) \
011f1a1a 368 $(PERL2UCS_NLM) \
f355267c 369 $(UCSExt_NLM)
011f1a1a 370# End
4d76e4b4 371
f355267c 372
2986a63f 373ECHO_SRC = TestNLM\echo\echo.c
374TYPE_SRC = TestNLM\type\type.c
375ECHO_SRC_OBJ = $(ECHO_SRC:.c=.obj)
376TYPE_SRC_OBJ = $(TYPE_SRC:.c=.obj)
377ECHO_NLM = TestNLM\echo\echo.nlm
378TYPE_NLM = TestNLM\type\type.nlm
379
380TEST_NLMS = \
381 $(ECHO_NLM) \
382 $(TYPE_NLM) \
383
2986a63f 384
385!ifndef SCREEN
386SCREEN = 'none'
387!endif
388
389!ifndef NLM_DESCRIPTION
011f1a1a 390NLM_DESCRIPTION = $(NLM_NAME8) for NetWare
2986a63f 391!endif
392
393!ifndef NLM_VERSION
011f1a1a 394NLM_VERSION = 3.1.0
2986a63f 395!endif
396
397!ifndef NLM_EXT
011f1a1a 398NLM_EXT = NLM
2986a63f 399!endif
400
401!ifndef BUILT
402BUILT = $(BLDDIR)\$(NLM_NAME8).$(NLM_EXT)
403!endif
404
405!ifndef BASE_IMPORT_FILES
011f1a1a 406BASE_IMPORT_FILES = Import @$(NLMIMPORTS)\clib.imp, @$(NLMIMPORTS)\nlmlib.imp, @$(NLMIMPORTS)\threads.imp, @$(NLMIMPORTS)\nit.imp, @$(NLMIMPORTS)\socklib.imp, \
f355267c 407@$(NLMIMPORTS)\fpsm.imp, @$(NLMIMPORTS)\lib0.imp
2986a63f 408!endif
409
f355267c 410!ifdef SECURITYBASE
411BASE_IMPORT_FILES = $(BASE_IMPORT_FILES), @$(SECURITY_IMPORTS)\nwsec.imp
412!endif # !ifdef SECURITYBASE
413
2986a63f 414!ifdef USE_MPK
415BASE_IMPORT_FILES = $(BASE_IMPORT_FILES), @$(MPKBASE)\import\mpkorg.imp
416!endif
417
418!ifndef BASE_IMPORT_FNS
419BASE_IMPORT_FNS = Import ImportSymbol, GetSystemConsoleScreen, LoadModule
420!endif
f355267c 421
422!ifdef CODEWAR
423NWLIBPATH =
424LIBPATH386 =
425LIBPATH =
426!else # !ifdef CODEWAR
427!error Please define the tools base directory before proceeding
428!endif # !ifdef CODEWAR
429
2986a63f 430!ifndef BASE_LIBRARIES
f355267c 431!ifdef WATCOM
432BASE_LIBRARIES = Library plib3s.lib, math3s.lib, clib3s.lib
433!endif # !ifdef WATCOM
011f1a1a 434!ifdef CODEWAR
2986a63f 435BASE_LIBRARIES =
f355267c 436!endif # !ifdef CODEWAR
437!endif # !ifndef BASE_LIBRARIES
438
439
440COPYRIGHT = Copyright (C) 2000-01, 2002 Novell, Inc. All Rights Reserved.
2986a63f 441
442EXPORTS = Export @perl.imp
443
444#
445# Set these to wherever you want "nmake install" to put your
446# newly built perl.
447#
011f1a1a 448INST_DRV = C:
2986a63f 449INST_TOP = $(INST_DRV)\perl
450
451INST_NW_DRV = i:
452INST_NW_VOL = sys:
453INST_NW_TOP1 = $(INST_NW_VOL)\perl
454INST_NW_TOP2 = $(INST_NW_DRV)\perl
455#INST_NW_VER = \5.6.1
456
457#
458# Comment this out if you DON'T want your perl installation to be versioned.
459# This means that the new installation will overwrite any files from the
460# old installation at the same INST_TOP location. Leaving it enabled is
461# the safest route, as perl adds the extra version directory to all the
462# locations it installs files to. If you disable it, an alternative
463# versioned installation can be obtained by setting INST_TOP above to a
464# path that includes an arbitrary version string.
465#
56a89353 466INST_VER = \5.9.5
2986a63f 467
468#
469# Comment this out if you DON'T want your perl installation to have
470# architecture specific components. This means that architecture-
471# specific files will be installed along with the architecture-neutral
472# files. Leaving it enabled is safer and more flexible, in case you
473# want to build multiple flavors of perl and install them together in
474# the same location. Commenting it out gives you a simpler
475# installation that is easier to understand for beginners.
476#
477INST_ARCH = \$(ARCHNAME)
478
479#
480# uncomment to enable multiple interpreters. This is need for fork()
481# emulation.
482#
011f1a1a 483
2986a63f 484USE_MULTI = define
485
486#
487# Beginnings of interpreter cloning/threads; still very incomplete.
488# This should be enabled to get the fork() emulation. This needs
489# USE_MULTI as well.
490#
491USE_ITHREADS = define
492
493#
494# uncomment to enable the implicit "host" layer for all system calls
495# made by perl. This needs USE_MULTI above. This is also needed to
496# get fork().
497#
498USE_IMP_SYS = define
499
500# uncomment this to enable the experimental PerlIO I/O subsystem
501# else USE_STDIO will be defined.
502#USE_PERLIO = define
503#USE_STDIO = define
2986a63f 504
2986a63f 505# For now let this be here
506#
507#CRYPT_SRC = fcrypt.c
508
509# For now let this be here
510#
511#CRYPT_LIB = fcrypt.lib
512
513#
514# set this if you wish to use perl's malloc
515# WARNING: Turning this on/off WILL break binary compatibility with extensions
516# you may have compiled with/without it. Be prepared to recompile all
517# extensions if you change the default. Currently, this cannot be enabled
518# if you ask for USE_IMP_SYS above.
519#
520#PERL_MALLOC = define
521
522#
523# set this to your email address (perl will guess a value from
524# from your loginname and your hostname, which may not be right)
525#
526#EMAIL =
527
528##
529## Build configuration ends.
530##
531
532##################### CHANGE THESE ONLY IF YOU MUST #####################
533
534!IF "$(CRYPT_SRC)$(CRYPT_LIB)" == ""
535D_CRYPT = undef
536!ELSE
537D_CRYPT = define
538CRYPT_FLAG = -DHAVE_DES_FCRYPT
539!ENDIF
540
2986a63f 541!IF "$(PERL_MALLOC)" == ""
542PERL_MALLOC = undef
543!ENDIF
544
2986a63f 545!IF "$(USE_IMP_SYS)" == "define"
546PERL_MALLOC = undef
547!ENDIF
548
549!IF "$(USE_MULTI)" == ""
550USE_MULTI = undef
551!ENDIF
552
2986a63f 553!IF "$(USE_ITHREADS)" == ""
554USE_ITHREADS = undef
555!ENDIF
556
557!IF "$(USE_IMP_SYS)" == ""
558USE_IMP_SYS = undef
559!ENDIF
560
561!IF "$(USE_PERLCRT)" == ""
562USE_PERLCRT = undef
563!ENDIF
564
3db8f154 565!IF "$(USE_IMP_SYS)$(USE_MULTI)" == "defineundef"
2986a63f 566USE_MULTI = define
567!ENDIF
568
acfe0abc 569!IF "$(USE_ITHREADS)$(USE_MULTI)" == "defineundef"
2986a63f 570USE_MULTI = define
2986a63f 571!ENDIF
572
3db8f154 573!IF "$(USE_MULTI)" != "undef"
2986a63f 574BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_CONTEXT
575!ENDIF
576
577!IF "$(USE_IMP_SYS)" != "undef"
578BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_SYS
579!ENDIF
580
581!IF "$(PROCESSOR_ARCHITECTURE)" == ""
582PROCESSOR_ARCHITECTURE = x86
583!ENDIF
584
2986a63f 585!IF "$(USE_MULTI)" == "define"
586ARCHNAME = NetWare-$(PROCESSOR_ARCHITECTURE)-multi
587!ELSE
588ARCHNAME = NetWare-$(PROCESSOR_ARCHITECTURE)
589!ENDIF
2986a63f 590
3db8f154 591!IF "$(USE_MULTI)" != "undef"
2986a63f 592ADD_BUILDOPT = $(ADD_BUILDOPT) -DPERL_IMPLICIT_CONTEXT
593!ENDIF
594
595!IF "$(USE_IMP_SYS)" != "undef"
596ADD_BUILDOPT = $(ADD_BUILDOPT) -DPERL_IMPLICIT_SYS
597!ENDIF
598
599!IF "$(USE_ITHREADS)" == "define"
600ARCHNAME = $(ARCHNAME)-thread
601!ENDIF
602
603!IF "$(USE_PERLIO)" == "define"
604USE_STDIO = undef
605ADD_BUILDOPT = $(ADD_BUILDOPT) -DUSE_PERLIO
606ARCHNAME = $(ARCHNAME)-perlio
607!ELSE
608#USE_STDIO = define
609#ADD_BUILDOPT = $(ADD_BUILDOPT) -DUSE_STDIO
610!ENDIF
611
011f1a1a 612
2986a63f 613ARCHDIR = ..\lib\$(ARCHNAME)
614COREDIR = ..\lib\CORE
615AUTODIR = ..\lib\auto
616LIBDIR = ..\lib
617EXTDIR = ..\ext
618PODDIR = ..\pod
619EXTUTILSDIR = $(LIBDIR)\ExtUtils
620
621#
622INST_SCRIPT = $(INST_TOP)$(INST_VER)\bin
623INST_BIN = $(INST_SCRIPT)$(INST_ARCH)
624INST_LIB = $(INST_TOP)$(INST_VER)\lib
625INST_ARCHLIB = $(INST_LIB)$(INST_ARCH)
626INST_COREDIR = $(INST_ARCHLIB)\CORE
627INST_POD = $(INST_LIB)\pod
628INST_HTML = $(INST_POD)\html
629
630#
631# Options
632#
633
2986a63f 634OBJOUT_FLAG = -Fo
635EXEOUT_FLAG = -Fe
636
637
638#################### do not edit below this line #######################
639############# NO USER-SERVICEABLE PARTS BEYOND THIS POINT ##############
640
641o = .obj
642
643#
644# Rules
645#
646
011f1a1a 647.SUFFIXES : .c $(o) .nlm .lib .NLM
2986a63f 648
649
650#
651# various targets
652PERLIMPLIB = ..\perl.lib
653
654MINIPERL = ..\miniperl.exe
655CONFIGPM = ..\lib\Config.pm
656MINIMOD = ..\lib\ExtUtils\Miniperl.pm
657X2P = ..\x2p\a2p.nlm
658
659PL2BAT = ..\win32\bin\pl2bat.pl
660
661UTILS = \
662 ..\utils\h2ph \
663 ..\utils\splain \
664 ..\utils\dprofpp \
665 ..\utils\perlbug \
666 ..\utils\pl2pm \
667 ..\utils\c2ph \
668 ..\utils\h2xs \
669 ..\utils\perldoc \
2986a63f 670 ..\pod\checkpods \
671 ..\pod\pod2html \
672 ..\pod\pod2latex \
673 ..\pod\pod2man \
674 ..\pod\pod2text \
675 ..\pod\pod2usage \
676 ..\pod\podchecker \
677 ..\pod\podselect \
678 ..\x2p\find2perl \
679 ..\x2p\s2p
680
681MAKE = nmake -nologo
011f1a1a 682#NMAKE = $(C_COMPILER) $(INCLUDE) $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(ERROR_FLAG) $(*F).c -o $@
2986a63f 683
684XCOPY = xcopy /f /r /i /d
685RCOPY = xcopy /f /r /i /e /d
686NOOP = @echo
687NULL =
688
689#
690# filenames given to xsubpp must have forward slashes (since it puts
691# full pathnames in #line strings)
f355267c 692XSUBPP = ..\$(MINIPERL) -I..\..\lib ..\$(EXTUTILSDIR)\xsubpp -C++ -prototypes
2986a63f 693
694MICROCORE_SRC = \
225a5dca 695 ..\av.c \
696 ..\deb.c \
697 ..\doio.c \
698 ..\doop.c \
699 ..\dump.c \
2986a63f 700 ..\globals.c \
225a5dca 701 ..\gv.c \
e1a479c5 702 ..\mro.c \
225a5dca 703 ..\hv.c \
704 ..\locale.c \
7ee2227d 705 ..\mathoms.c \
225a5dca 706 ..\mg.c \
625b117d 707 ..\numeric.c \
225a5dca 708 ..\op.c \
709 ..\perl.c \
2986a63f 710 ..\perlapi.c \
225a5dca 711 ..\perly.c \
712 ..\pp.c \
713 ..\pp_ctl.c \
714 ..\pp_hot.c \
625b117d 715 ..\pp_pack.c \
84d4ea48 716 ..\pp_sort.c \
225a5dca 717 ..\pp_sys.c \
10bc17b6 718 ..\reentr.c \
2986a63f 719 ..\regcomp.c \
720 ..\regexec.c \
225a5dca 721 ..\run.c \
722 ..\scope.c \
723 ..\sv.c \
724 ..\taint.c \
725 ..\toke.c \
2986a63f 726 ..\universal.c \
225a5dca 727 ..\utf8.c \
728 ..\util.c \
2986a63f 729 ..\xsutils.c
730
731#EXTRACORE_SRC = $(EXTRACORE_SRC) perllib.c
732
733!IF "$(PERL_MALLOC)" == "define"
734EXTRACORE_SRC = $(EXTRACORE_SRC) ..\malloc.c
735!ENDIF
736
2986a63f 737#EXTRACORE_SRC = $(EXTRACORE_SRC) ..\perlio.c
2986a63f 738
739!IF "$(CRYPT_SRC)" != ""
740NW_SRC = $(NW_SRC) .\$(CRYPT_SRC)
741!ENDIF
742
743DLL_SRC = $(DYNALOADER).c
744
745X2P_SRC = \
746 ..\x2p\a2p.c \
747 ..\x2p\hash.c \
748 ..\x2p\str.c \
749 ..\x2p\util.c \
750 ..\x2p\walk.c
751
752CORE_NOCFG_H = \
753 ..\av.h \
754 ..\cop.h \
755 ..\cv.h \
756 ..\dosish.h \
757 ..\embed.h \
758 ..\form.h \
759 ..\gv.h \
760 ..\handy.h \
761 ..\hv.h \
762 ..\iperlsys.h \
763 ..\mg.h \
764 ..\nostdio.h \
765 ..\op.h \
766 ..\opcode.h \
767 ..\perl.h \
768 ..\perlapi.h \
769 ..\perlsdio.h \
770 ..\perlsfio.h \
771 ..\perly.h \
772 ..\pp.h \
773 ..\proto.h \
774 ..\regexp.h \
775 ..\scope.h \
776 ..\sv.h \
777 ..\thread.h \
778 ..\unixish.h \
779 ..\utf8.h \
780 ..\util.h \
781 ..\warnings.h \
782 ..\XSUB.h \
783 ..\EXTERN.h \
784 ..\perlvars.h \
785 ..\intrpvar.h \
011f1a1a 786 ..\thrdvar.h
787
2986a63f 788CORE_H = $(CORE_NOCFG_H) .\config.h
789
790DLL_OBJ = $(DLL_SRC:.c=.obj)
791X2P_OBJ = $(X2P_SRC:.c=.obj)
792
47f9f84c 793DYNAMIC_EXT = Socket IO Fcntl Opcode SDBM_File POSIX attrs B re \
8dbfbba0 794 Data/Dumper Devel/Peek ByteLoader Devel/DProf File/Glob \
83e2e978 795 Storable/Storable List/Util MIME/Base64/Base64 XS/APItest/APItest \
4d76e4b4 796 XS/Typemap/Typemap Unicode/Normalize/Normalize Sys/Hostname
57e69e5f 797
2986a63f 798STATIC_EXT = DynaLoader
799NONXS_EXT = Errno
800
011f1a1a 801DYNALOADER = $(EXTDIR)\DynaLoader\DynaLoader
802SOCKET = $(EXTDIR)\Socket\Socket
803FCNTL = $(EXTDIR)\Fcntl\Fcntl
804OPCODE = $(EXTDIR)\Opcode\Opcode
805SDBM_FILE = $(EXTDIR)\SDBM_File\SDBM_File
2986a63f 806IO = $(EXTDIR)\IO\IO
011f1a1a 807POSIX = $(EXTDIR)\POSIX\POSIX
808ATTRS = $(EXTDIR)\attrs\attrs
2986a63f 809B = $(EXTDIR)\B\B
810RE = $(EXTDIR)\re\re
011f1a1a 811DUMPER = $(EXTDIR)\Data\Dumper\Dumper
812ERRNO = $(EXTDIR)\Errno\Errno
813PEEK = $(EXTDIR)\Devel\Peek\Peek
814BYTELOADER = $(EXTDIR)\ByteLoader\ByteLoader
815DPROF = $(EXTDIR)\Devel\DProf\DProf
816GLOB = $(EXTDIR)\File\Glob\Glob
817HOSTNAME = $(EXTDIR)\Sys\Hostname\Hostname
225a5dca 818CWD = $(EXTDIR)\Cwd\Cwd
ac5ea531 819STORABLE = $(EXTDIR)\Storable\Storable
820LISTUTIL = $(EXTDIR)\List\Util
821MIMEBASE64 = $(EXTDIR)\MIME\Base64\Base64
83e2e978 822XSAPITEST = $(EXTDIR)\XS\APItest\APItest
ac5ea531 823XSTYPEMAP = $(EXTDIR)\XS\Typemap\Typemap
824UNICODENORMALIZE = $(EXTDIR)\Unicode\Normalize\Normalize
2986a63f 825
57e69e5f 826ERRNO_PM_NW = $(LIBDIR)\Errno.pm
827
011f1a1a 828EXTENSION_C = \
2986a63f 829 $(SOCKET).c \
830 $(FCNTL).c \
831 $(OPCODE).c \
832 $(SDBM_FILE).c \
833 $(IO).c \
834 $(POSIX).c \
835 $(ATTRS).c \
2986a63f 836 $(RE).c \
837 $(DUMPER).c \
838 $(PEEK).c \
839 $(B).c \
840 $(BYTELOADER).c \
841 $(DPROF).c \
225a5dca 842 $(GLOB).c \
57e69e5f 843 $(HOSTNAME).c \
225a5dca 844 $(CWD).c \
845 $(STORABLE).c \
846 $(LISTUTIL).c \
847 $(MIMEBASE64).c \
83e2e978 848 $(XSAPITEST).c \
225a5dca 849 $(XSTYPEMAP).c \
ac5ea531 850 $(UNICODENORMALIZE).c \
2986a63f 851
57e69e5f 852EXTENSION_NPM = \
853 $(ERRNO_PM_NW) \
854
2986a63f 855POD2HTML = $(PODDIR)\pod2html
856POD2MAN = $(PODDIR)\pod2man
857POD2LATEX = $(PODDIR)\pod2latex
858POD2TEXT = $(PODDIR)\pod2text
859
860#
861# Top targets
862#
863
f355267c 864all : .cleanoldfiles .\nwconfig.h $(CONFIGPM) $(NLM_NAME) $(EXTENSION_NLM) $(EXTENSION_NPM) $(TEST_NLMS) $(NETWARE_EXTNS)
2986a63f 865
866#------------------------------------------------------------
867
868..\config.sh : config.nw5 $(MINIPERL) config_sh.PL
869 $(MINIPERL) -I..\lib config_sh.PL $(NW_CFG_VARS) config.nw5 > ..\config.sh
870
871# this target is for when changes to the main config.sh happen
872# edit config.{b,v,g,w}c and make this target once for each supported
873# compiler (e.g. `dmake CCTYPE=BORLAND regen_config_h`)
874regen_config_h:
875 perl config_sh.PL $(NW_CFG_VARS) $(NW_CFGSH_TMPL) > ..\config.sh
876 cd ..
41504350 877 -del /f /q perl.exe
2986a63f 878 perl configpm
879 cd netware
41504350 880 -del /f /q $(NW_CFGH_TMPL)
2986a63f 881 -mkdir $(COREDIR)
882 -perl -I..\lib config_h.PL "INST_VER=$(INST_VER)"
883 rename config.h $(NW_CFGH_TMPL)
884
885$(CONFIGPM) : $(MINIPERL) ..\config.sh config_h.PL ..\minimod.pl
886 cd .. && miniperl configpm
887 if exist lib\* $(RCOPY) lib\*.* ..\lib\$(NULL)
888 $(XCOPY) ..\*.h $(COREDIR)\*.*
889 $(XCOPY) *.h $(COREDIR)\*.*
890 $(XCOPY) ..\ext\re\re.pm $(LIBDIR)\*.*
891 if exist include\* $(RCOPY) include $(COREDIR)\*.*
892 $(MINIPERL) -I..\lib config_h.PL "INST_VER=$(INST_VER)" \
893 || $(MAKE) /$(MAKEFLAGS) $(CONFIGPM)
f355267c 894 @echo CONFIGPM Done
2986a63f 895
896$(MINIPERL) :
897 $(error)Please build $(MINIPERL) before continuing
898
899$(MINIMOD) : $(MINIPERL) ..\minimod.pl
900 cd .. && miniperl minimod.pl > lib\ExtUtils\Miniperl.pm
901
902..\x2p\a2p$(o) : ..\x2p\a2p.c
903 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
011f1a1a 904 $(C_COMPILER) $(COMPLER_FLAGS) $(NLM_INCLUDES) -I..\x2p $(ADD_LOCDEFS) $(ERROR_FLAG) $*.c -o $@
905 @echo Built $(@)
cf267c36 906
2986a63f 907..\x2p\hash$(o) : ..\x2p\hash.c
908 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
011f1a1a 909 $(C_COMPILER) $(COMPLER_FLAGS) $(NLM_INCLUDES) -I..\x2p $(ADD_LOCDEFS) $(ERROR_FLAG) $*.c -o $@
910 @echo Built $(@)
911
2986a63f 912..\x2p\str$(o) : ..\x2p\str.c
913 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
011f1a1a 914 $(C_COMPILER) $(COMPLER_FLAGS) $(NLM_INCLUDES) -I..\x2p $(ADD_LOCDEFS) $(ERROR_FLAG) $*.c -o $@
915 @echo Built $(@)
2986a63f 916
917..\x2p\util$(o) : ..\x2p\util.c
918 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
011f1a1a 919 $(C_COMPILER) $(COMPLER_FLAGS) $(NLM_INCLUDES) -I..\x2p $(ADD_LOCDEFS) $(ERROR_FLAG) $*.c -o $@
920 @echo Built $(@)
2986a63f 921
922..\x2p\walk$(o) : ..\x2p\walk.c
923 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
011f1a1a 924 $(C_COMPILER) $(COMPLER_FLAGS) $(NLM_INCLUDES) -I..\x2p $(ADD_LOCDEFS) $(ERROR_FLAG) $*.c -o $@
925 @echo Built $(@)
926
2986a63f 927$(X2P) : $(MINIPERL) $(X2P_OBJ)
011f1a1a 928 @echo Building $@..........
2986a63f 929 $(MINIPERL) ..\x2p\find2perl.PL
930 $(MINIPERL) ..\x2p\s2p.PL
011f1a1a 931# Linker definitions and lining come here for CODEWARRIOR
932 @echo $(BASE_IMPORT_FILES) > $*.def
933 @echo MODULE clib >> $*.def
934 @echo Import @perl.imp >> $*.def
2986a63f 935!ifdef USE_XDC
936 $(MPKTOOL) $(XDCFLAGS) $*.xdc
011f1a1a 937 @echo Import Mp.imp >> $*.def
938 @echo xdcdata $*.xdc >> $*.def
2986a63f 939!endif
011f1a1a 940## $(LINK) $(LDFLAGS) $(BS_CFLAGS) -desc "Awk to Perl Translator" $(X2P_OBJ) $(BLDDIR)\clibstuf.obj -commandfile $*.def -o $@
941 $(LINK) $(LDFLAGS) -desc "Awk to Perl Translator" $(X2P_OBJ) $(BLDDIR)\clibstuf.obj -commandfile $*.def -o $@
2986a63f 942
943$(EXTDIR)\DynaLoader\dl_netware.xs: dl_netware.xs
944 copy dl_netware.xs $(EXTDIR)\DynaLoader\dl_netware.xs
945
946HEADERS :
947 @echo . . . . making stdio.h and string.h
cd340a5d 948 @copy << stdio.h >\nul
2986a63f 949
950/*
f355267c 951 * Copyright (C) 2000-01 Novell, Inc. All Rights Reserved.
2986a63f 952 *
953 * You may distribute under the terms of either the GNU General Public
954 * License or the Artistic License, as specified in the README file.
955 *
956 */
957
958/*
959 * FILENAME : stdio.h
960 * DESCRIPTION : Generated header file, do not edit. See makefile.
961 * This header file causes the includer to use clibstuf.h
962 * The purpose of clibstuf is to make sure that Perl, cgi2perl and
011f1a1a 963 * all the perl extension nlm's (*.NLM) use the Novell Netware CLIB versions
2986a63f 964 * of standard functions. This code loads up a whole bunch of function pointers
965 * to point at the standard CLIB functions.
966 * Author : HYAK
967 * Date : January 2001.
968 *
969 */
970
971
972#ifndef __Stdio_H__
973#define __Stdio_H__
974
975
976#include "$(NLMSDKBASE)\INCLUDE\NLM\stdio.h"
977#include "clibsdio.h"
978
979
980#endif // __Stdio_H__
981
982<<
983 @copy stdio.h $(COREDIR)
984
cd340a5d 985 @copy << string.h >\nul
2986a63f 986
987/*
f355267c 988 * Copyright (C) 2000-01 Novell, Inc. All Rights Reserved.
2986a63f 989 *
990 * You may distribute under the terms of either the GNU General Public
991 * License or the Artistic License, as specified in the README file.
992 *
993 */
994
995/*
996 * FILENAME : string.h
997 * DESCRIPTION : Generated header file, do not edit. See makefile.
998 * This header file causes the includer to use clibstuf.h
999 * The purpose of clibstuf is to make sure that Perl, cgi2perl and
011f1a1a 1000 * all the perl extension nlm's (*.NLM) use the Novell Netware CLIB versions
2986a63f 1001 * of standard functions. This code loads up a whole bunch of function pointers
1002 * to point at the standard CLIB functions.
1003 * Author : HYAK
1004 * Date : January 2001.
1005 *
1006 */
1007
1008
1009#ifndef __String_H__
1010#define __String_H__
1011
1012
1013#include "$(NLMSDKBASE)\INCLUDE\NLM\string.h"
1014#include "clibstr.h"
1015
1016
1017#endif // __String_H__
1018
1019<<
1020 @copy string.h $(COREDIR)
1021
1022
011f1a1a 1023$(NLM_NAME): MESSAGE HEADERS $(BLDDIR)\nul $(NLM_OBJ) $(NEWTARE_OBJ_DEP) $(NEWTARE_CPP_OBJ_DEP) $(PERL_IO_OBJ_DEP) $(DLL_OBJ) \
1024 $(PERLIMPLIB) $(EXT_MAIN_OBJ) $(PERL_TEMP_OBJ) #$(PERL_LIB_OBJ)
2986a63f 1025 @echo======= Linking $@ at $(MAKEDIR)\$(BLDDIR) =======
2986a63f 1026# Linker definitions and lining come here for CODEWARRIOR
011f1a1a 1027 @echo $(BASE_IMPORT_FILES) > $*.def
1028 @echo MODULE clib >> $*.def
1029 @echo MODULE netdb >> $*.def
f355267c 1030!ifdef SECURITYBASE
1031 @echo MODULE nwsec >> $*.def
1032!endif #!ifdef SECURITYBASE
011f1a1a 1033 @echo $(EXPORTS) >> $*.def
1034!ifdef USE_XDC
1035 @echo======= Creating XDC file
1036 @echo Import Mp.imp >> $*.def
2986a63f 1037!ifdef NLM_NAME8
011f1a1a 1038 $(MPKTOOL) $(XDCFLAGS) $(BLDDIR)\$(NLM_NAME8).xdc
1039 @echo xdcdata $(BLDDIR)\$(NLM_NAME8).xdc >> $*.def
2986a63f 1040!else
011f1a1a 1041 $(MPKTOOL) $(XDCFLAGS) $(BLDDIR)\$(NLM_NAME).xdc
1042 @echo xdcdata $(BLDDIR)\$(NLM_NAME).xdc >> $*.def
2986a63f 1043!endif
1044!endif
011f1a1a 1045## $(LINK) $(LDFLAGS) $(BS_CFLAGS) -desc "Perl 5.6.1 for NetWare" $(NEWTARE_OBJ_DEP:.obj=.obj) $(NLM_OBJ:.obj=.obj) $(PERL_IO_OBJ_DEP:.obj=.obj) $(DLL_OBJ:.obj=.obj) $(NEWTARE_CPP_OBJ_DEP:.obj=.obj) -commandfile $*.def -o .\$(BLDDIR)\$@
1046 $(LINK) $(LDFLAGS) -desc $(MODULE_DESC) $(NEWTARE_OBJ_DEP:.obj=.obj) $(NLM_OBJ:.obj=.obj) $(PERL_IO_OBJ_DEP:.obj=.obj) $(DLL_OBJ:.obj=.obj) $(NEWTARE_CPP_OBJ_DEP:.obj=.obj) -commandfile $*.def -o .\$(BLDDIR)\$@
1047 copy splittree.pl ..
1048 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR)
1049 @echo ========Linked $@ ==========
f355267c 1050
2986a63f 1051 @echo======= Finished building $(BUILT).
011f1a1a 1052
1053# Create the debug or release directory if not existing
1054$(BLDDIR)\nul:
1055 @echo . . . . mkdir $(BLDDIR)
1056 @mkdir $(BLDDIR)
1057 @echo '$(BLDDIR)' directory created.
2986a63f 1058
1059MESSAGE:
1060 @echo======= $(MAKE_ACTION)ing $(NLM_NAME) at $(MAKEDIR)\$(BLDDIR) =======
011f1a1a 1061
1062$(PERLIMPLIB): perllib.imp
f355267c 1063# @echo Building $(PERLIMPLIB)...
1064# $(LD) -type library $(NLM_OBJ) $(BLDDIR)\nw5.obj $(BLDDIR)\nwmain.obj $(BLDDIR)\nw5thread.obj $(BLDDIR)\nwtinfo.obj \
1065# $(BLDDIR)\nwutil.obj $(BLDDIR)\interface.obj $(BLDDIR)\perllib.obj $(PERL_IO_OBJ_DEP) $(DLL_OBJ) -o $@
1066# $(XCOPY) $(PERLIMPLIB) $(COREDIR)
1067# @echo $(PERLIMPLIB) Done
011f1a1a 1068
1069perllib.imp : $(MINIPERL) $(CONFIGPM) ..\global.sym ..\pp.sym ..\makedef.pl
1070# $(MINIPERL) -w ..\makedef.pl PLATFORM=netware FILETYPE=def $(ADD_BUILDOPT) \
1071# CCTYPE=$(CCTYPE) > perllib.def
1072 @echo (Perl) > perl.imp
1073 $(MINIPERL) -w ..\makedef.pl PLATFORM=netware FILETYPE=imp $(BS_CFLAGS) $(DEFINES) $(ADD_BUILDOPT) \
1074 CCTYPE=$(CCTYPE) >> perl.imp
1075 copy perl.imp $(COREDIR)
1076
2986a63f 1077$(DLL_OBJ) : $(DYNALOADER).c $(CORE_H) $(EXTDIR)\DynaLoader\dlutils.c
011f1a1a 1078 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
1079 @$(C_COMPILER) $(NLM_INCLUDES) $(COMPLER_FLAGS) $(NLM_INCLUDES) $(ADD_LOCDEFS) $(ERROR_FLAG) -I$(EXTDIR)\DynaLoader \
1080 $(EXTDIR)\DynaLoader\$(*F).c -o $@
1081 @echo $(@) Done.
2986a63f 1082
1083$(DYNALOADER).c : $(MINIPERL) $(EXTDIR)\DynaLoader\dl_netware.xs $(CONFIGPM)
1084 if not exist $(AUTODIR) mkdir $(AUTODIR)
1085 cd $(EXTDIR)\$(*B)
1086 ..\$(MINIPERL) -I..\..\lib $(*B)_pm.PL
1087 ..\$(MINIPERL) -I..\..\lib XSLoader_pm.PL
1088 cd ..\..\netware
1089 $(XCOPY) $(EXTDIR)\$(*B)\$(*B).pm $(LIBDIR)\$(NULL)
1090 $(XCOPY) $(EXTDIR)\$(*B)\XSLoader.pm $(LIBDIR)\$(NULL)
1091 cd $(EXTDIR)\$(*B)
1092 $(XSUBPP) dl_netware.xs > $(*B).c
1093 cd ..\..\netware
011f1a1a 1094 @echo Dynaloader Done
2986a63f 1095
2986a63f 1096
1097$(PERL_IO_OBJ_DEP) : ..\$(*F).c
1098 @echo $(MPKMESSAGE) $(BLDMESG) $@
011f1a1a 1099 $(C_COMPILER) $(COMPLER_FLAGS) $(NLM_INCLUDES) $(ADD_LOCDEFS) $(ERROR_FLAG) ..\$(*F).c -o $@
1100 @echo Built $(@)
2986a63f 1101
1102$(NLM_OBJ) : ..\$(*F).c
1103 @echo $(MPKMESSAGE) $(BLDMESG) $@
011f1a1a 1104 $(C_COMPILER) $(COMPLER_FLAGS) $(NLM_INCLUDES) $(ADD_LOCDEFS) $(ERROR_FLAG) ..\$(*F).c -o $@
1105 @echo Built $(@)
1106
1107
2986a63f 1108$(NEWTARE_OBJ_DEP) : $(NW_H_FILES) $(NW_HOST_H_FILES) $(*F).c
1109 @echo $(MPKMESSAGE) $(BLDMESG) $@
011f1a1a 1110 $(C_COMPILER) $(COMPLER_FLAGS) $(NLM_INCLUDES) $(ADD_LOCDEFS) $(ERROR_FLAG) $(*F).c -o $@
1111 @echo Built $(@)
2986a63f 1112
011f1a1a 1113$(NEWTARE_CPP_OBJ_DEP) : $(NW_H_FILES) $(NW_HOST_H_FILES) $(*F).cpp
2986a63f 1114 @echo $(MPKMESSAGE) $(BLDMESG) $@
011f1a1a 1115 $(C_COMPILER) $(CWCPPFLAGS) $(COMPLER_FLAGS) $(NLM_INCLUDES) $(ADD_LOCDEFS) $(ERROR_FLAG) $(*F).cpp -o $@
1116 @echo Built $(@)
1117
1118$(EXT_MAIN_OBJ) : $(CLIB_H_FILES)
1119 @echo $(MPKMESSAGE) $(BLDMESG) $@
1120 $(C_COMPILER) $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(ERROR_FLAG) $(*F).c -o $@
1121 $(LD) -type library $@ -o $*.lib
1122 @copy $*.lib $(COREDIR)
2986a63f 1123
1124# Delete any files that might have got created during building miniperl.exe
1125# config.sh will definitely be created
1126# COREDIR might have got created
1127.cleanoldfiles :
41504350 1128 -del /f /q $(PERLIMPLIB)
1129 -del /f /q ..\lib\config.pm
1130 -del /f /q ..\config.sh
1131 -del /f /q .\Main.obj
1132 -del /f /q .\Main.lib
2986a63f 1133 -rmdir /s /q $(AUTODIR)
1134 -rmdir /s /q $(COREDIR)
41504350 1135 -del /f /q ..\lib\core
2986a63f 1136
1137.\nwconfig.h : $(NW_CFGH_TMPL)
f355267c 1138 @if exist .\config.h del /f /q .\config.h
2986a63f 1139 copy $(NW_CFGH_TMPL) config.h
1140
1141# REQUIRED WHEN WE INCLUDE CONFIGPM OR REGEN_CONFIG - sgp
1142#..\nwconfig.sh : config.nw5 $(MINIPERL) config_sh.PL
1143# $(MINIPERL) -I..\lib config_sh.PL $(NW_CFG_VARS) config.nw5 > ..\config.sh
1144# @pause
1145# cd ..
4d76e4b4 1146# del /f /q config.sh
2986a63f 1147# rename nwconfig.sh config.sh
1148# cd netware
1149
1150config.nw5 : $(NW_CFGSH_TMPL)
1151 copy $(NW_CFGSH_TMPL) config.nw5
1152
011f1a1a 1153$(SOCKET_NLM): $(NLM_NAME) $(SOCKET).xs
2986a63f 1154 cd $(EXTDIR)\$(*B)
c5635c9e 1155 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f 1156 $(MAKE)
1157 cd ..\..\netware
1158
011f1a1a 1159$(HOSTNAME_NLM): $(NLM_NAME) $(HOSTNAME).xs
57e69e5f 1160 cd $(EXTDIR)\Sys\$(*B)
c5635c9e 1161 ..\..\..\miniperl -I..\..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
57e69e5f 1162 $(MAKE)
1163 cd ..\..\..\netware
1164
011f1a1a 1165$(FCNTL_NLM):
2986a63f 1166 cd $(EXTDIR)\$(*B)
c5635c9e 1167 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f 1168 $(MAKE)
1169 cd ..\..\netware
1170
011f1a1a 1171$(IO_NLM):
2986a63f 1172 cd $(EXTDIR)\$(*B)
c5635c9e 1173 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f 1174 $(MAKE)
1175 cd ..\..\netware
1176
011f1a1a 1177$(OPCODE_NLM):
2986a63f 1178 cd $(EXTDIR)\$(*B)
c5635c9e 1179 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f 1180 $(MAKE)
1181 cd ..\..\netware
1182
011f1a1a 1183$(B_NLM):
2986a63f 1184 cd $(EXTDIR)\$(*B)
c5635c9e 1185 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f 1186 $(MAKE)
1187 cd ..\..\netware
1188
011f1a1a 1189$(DUMPER_NLM):
2986a63f 1190 cd $(EXTDIR)\Data\$(*B)
c5635c9e 1191 ..\..\..\miniperl -I..\..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f 1192 $(MAKE)
1193 cd ..\..\..\netware
1194
011f1a1a 1195$(PEEK_NLM):
2986a63f 1196 cd $(EXTDIR)\Devel\$(*B)
c5635c9e 1197 ..\..\..\miniperl -I..\..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f 1198 $(MAKE)
1199 cd ..\..\..\netware
1200
011f1a1a 1201$(RE_NLM):
2986a63f 1202 cd $(EXTDIR)\$(*B)
c5635c9e 1203 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f 1204 $(MAKE)
1205 cd ..\..\netware
1206
011f1a1a 1207$(BYTELOADER_NLM):
2986a63f 1208 cd $(EXTDIR)\$(*B)
c5635c9e 1209 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f 1210 $(MAKE)
1211 cd ..\..\netware
1212
011f1a1a 1213$(DPROF_NLM):
2986a63f 1214 cd $(EXTDIR)\Devel\$(*B)
c5635c9e 1215 ..\..\..\miniperl -I..\..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f 1216 $(MAKE)
1217 cd ..\..\..\netware
1218
011f1a1a 1219$(GLOB_NLM):
2986a63f 1220 cd $(EXTDIR)\File\$(*B)
c5635c9e 1221 ..\..\..\miniperl -I..\..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f 1222 $(MAKE)
1223 cd ..\..\..\netware
1224
011f1a1a 1225$(POSIX_NLM):
2986a63f 1226 cd $(EXTDIR)\$(*B)
c5635c9e 1227 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f 1228 $(MAKE)
1229 cd ..\..\netware
1230
011f1a1a 1231$(ATTRS_NLM):
2986a63f 1232 cd $(EXTDIR)\$(*B)
c5635c9e 1233 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f 1234 $(MAKE)
1235 cd ..\..\netware
1236
011f1a1a 1237$(SDBM_FILE_NLM):
2986a63f 1238 cd $(EXTDIR)\$(*B)
c5635c9e 1239 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f 1240 $(MAKE)
1241 cd ..\..\netware
1242
011f1a1a 1243$(CWD_NLM):
225a5dca 1244 cd $(EXTDIR)\$(*B)
c5635c9e 1245 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
225a5dca 1246 $(MAKE)
1247 cd ..\..\netware
1248
011f1a1a 1249$(STORABLE_NLM):
225a5dca 1250 cd $(EXTDIR)\$(*B)
c5635c9e 1251 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
225a5dca 1252 $(MAKE)
1253 cd ..\..\netware
1254
011f1a1a 1255$(LISTUTIL_NLM):
225a5dca 1256 cd $(EXTDIR)\List\$(*B)
c5635c9e 1257 ..\..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
225a5dca 1258 $(MAKE)
1259 cd ..\..\..\netware
1260
011f1a1a 1261$(MIMEBASE64_NLM):
225a5dca 1262 cd $(EXTDIR)\Mime\$(*B)
c5635c9e 1263 ..\..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
225a5dca 1264 $(MAKE)
1265 cd ..\..\..\netware
1266
83e2e978 1267$(XSAPITEST_NLM):
1268 cd $(EXTDIR)\XS\$(*B)
1269 ..\..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
1270 $(MAKE)
1271 cd ..\..\..\netware
1272
011f1a1a 1273$(XSTYPEMAP_NLM):
225a5dca 1274 cd $(EXTDIR)\XS\$(*B)
c5635c9e 1275 ..\..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
225a5dca 1276 $(MAKE)
1277 cd ..\..\..\netware
1278
011f1a1a 1279$(UNICODENORMALIZE_NLM):
ac5ea531 1280 cd $(EXTDIR)\Unicode\$(*B)
c5635c9e 1281 ..\..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
ac5ea531 1282 $(MAKE)
1283 cd ..\..\..\netware
1284
011f1a1a 1285
2986a63f 1286$(ERRNO_PM_NW):
011f1a1a 1287# @echo Building $@
2986a63f 1288 cd $(EXTDIR)\$(*B)
c5635c9e 1289 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f 1290 $(MAKE)
1291 cd ..\..\netware
1292
1293$(ECHO_SRC_OBJ): $*.c
1294 @echo $(MPKMESSAGE) $(BLDMESG) $@
011f1a1a 1295 $(C_COMPILER) $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(ERROR_FLAG) $*.c -o $@
1296 @echo Built $(@)
2986a63f 1297
1298$(ECHO_NLM): $(ECHO_SRC_OBJ)
1299 @echo======= Linking $@ =======
011f1a1a 1300# Linker definitions and lining come here for CODEWARRIOR
1301 @echo $(BASE_IMPORT_FILES) > $*.def
1302 @echo MODULE clib >> $*.def
1303 @echo Import @perl.imp >> $*.def
2986a63f 1304!ifdef USE_XDC
1305 $(MPKTOOL) $(XDCFLAGS) $*.xdc
011f1a1a 1306 @echo Import @MP.imp >> $*.def
1307 @echo xdcdata $*.xdc >> $*.def
2986a63f 1308!endif
011f1a1a 1309## $(LINK) $(LDFLAGS) $(BS_CFLAGS) -desc "DOS Echo emulation for Perl testing" $(ECHO_SRC_OBJ) $(BLDDIR)\clibstuf.obj -commandfile $*.def -o $@
1310 $(LINK) $(LDFLAGS) -desc "DOS Echo emulation for Perl testing" $(ECHO_SRC_OBJ) $(BLDDIR)\clibstuf.obj -commandfile $*.def -o $@
2986a63f 1311 @echo======= Linking Complete =======
1312
1313$(TYPE_SRC_OBJ): $*.c
1314 @echo $(MPKMESSAGE) $(BLDMESG) $@
011f1a1a 1315 $(C_COMPILER) $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(ERROR_FLAG) $*.c -o $@
1316 @echo Built $(@)
1317
2986a63f 1318$(TYPE_NLM): $(TYPE_SRC_OBJ)
1319 @echo======= Linking $@ =======
011f1a1a 1320# Linker definitions and lining come here for CODEWARRIOR
1321 @echo $(BASE_IMPORT_FILES) > $*.def
1322 @echo MODULE clib >> $*.def
1323 @echo Import @perl.imp >> $*.def
2986a63f 1324!ifdef USE_XDC
1325 $(MPKTOOL) $(XDCFLAGS) $*.xdc
011f1a1a 1326 @echo Import @MP.imp >> $*.def
1327 @echo xdcdata $*.xdc >> $*.def
2986a63f 1328!endif
011f1a1a 1329## $(LINK) $(LDFLAGS) $(BS_CFLAGS) -desc "DOS Type emulation for Perl testing" $(TYPE_SRC_OBJ) $(BLDDIR)\clibstuf.obj -commandfile $*.def -o $@
1330 $(LINK) $(LDFLAGS) -desc "DOS Type emulation for Perl testing" $(TYPE_SRC_OBJ) $(BLDDIR)\clibstuf.obj -commandfile $*.def -o $@
2986a63f 1331 @echo======= Linking Complete =======
1332
011f1a1a 1333
2986a63f 1334# Build NetWare specific extensions
011f1a1a 1335$(CGI2PERL_NLM):
2986a63f 1336!if "$(NW_EXTNS)"=="yes"
1337 cd $(*B)
011f1a1a 1338 ..\..\miniperl -I..\..\lib Makefile.PL "CCCDLFLAGS=-bool on -lang c++" PERL_CORE=1 INSTALLDIRS=perl
2986a63f 1339 $(MAKE)
1340 cd ..\..\netware
1341!endif
1342
011f1a1a 1343$(PERL2UCS_NLM):
2986a63f 1344!if "$(NW_EXTNS)"=="yes"
1a95e36d 1345 cd $(*B)
011f1a1a 1346 ..\..\miniperl -I..\..\lib Makefile.PL "CCCDLFLAGS=-bool on -lang c++" PERL_CORE=1 INSTALLDIRS=perl
2986a63f 1347 $(MAKE)
1348 cd ..\..\netware
1349!endif
1350
011f1a1a 1351$(UCSExt_NLM):
4d76e4b4 1352!if "$(NW_EXTNS)"=="yes"
1a95e36d 1353 cd $(*B)
011f1a1a 1354 ..\..\miniperl -I..\..\lib Makefile.PL "CCCDLFLAGS=-bool on -lang c++" PERL_CORE=1 INSTALLDIRS=perl
4d76e4b4 1355 $(MAKE)
1356 cd ..\..\netware
1357!endif
1358
2986a63f 1359nwclean:
41504350 1360 -rmdir /s /q $(REL_DIR)
1361 -rmdir /s /q $(DEB_DIR)
1362 @if exist .\stdio.h del /f /q .\stdio.h
1363 @if exist .\string.h del /f /q .\string.h
f355267c 1364 @if exist .\config.h del /f /q .\config.h
41504350 1365 @if exist .\config.nw5 del /f /q .\config.nw5
1366 @if exist .\perl.imp del /f /q .\perl.imp
cf267c36 1367 -del /f /q *.obj *.lib *.def *.sym *.map *.xdc *.err *.nlm
2986a63f 1368 cd testnlm\echo
cf267c36 1369 -del /f /q *.obj *.map *.link *.options *.nlm *.sym *.xdc *.err *.lib *.def *.pdb *.bs
2986a63f 1370 cd ..\type
cf267c36 1371 -del /f /q *.obj *.map *.link *.options *.nlm *.sym *.xdc *.err *.lib *.def *.pdb *.bs
2986a63f 1372 cd ..\..\
1373
1374utils: $(BLDDIR)\$(NLM_NAME8).$(NLM_EXT) $(X2P)
1375 cd ..\utils
1376 $(MAKE) PERL=$(MINIPERL)
1377 cd ..\pod
1378 copy ..\README.amiga .\perlamiga.pod
1379 copy ..\README.cygwin .\perlcygwin.pod
1380 copy ..\README.dos .\perldos.pod
1381 copy ..\README.hpux .\perlhpux.pod
1382# copy ..\README.machten .\perlmachten.pod
1383 copy ..\README.os2 .\perlos2.pod
1384 copy ..\vms\perlvms.pod .\perlvms.pod
1385 copy ..\README.win32 .\perlwin32.pod
1386 copy ..\README.netware .\perlnw5.pod
1387 $(MAKE) -f ..\win32\pod.mak converters
3e7b198a 1388
1389 cd ..\lib
1390 $(MINIPERL) lib_pm.PL
2986a63f 1391 cd ..\netware
1392 $(MINIPERL) $(PL2BAT) $(UTILS)
1393
1394distclean: clean nwclean
41504350 1395 -del /f /q $(PERLIMPLIB) ..\miniperl.lib $(MINIMOD)
41504350 1396 -del /f /q $(EXTENSION_NPM)
1397 -del /f /q $(EXTENSION_C) $(DYNALOADER).c $(ERRNO).pm
1398 -del /f /q $(EXTDIR)\DynaLoader\dl_netware.xs
f355267c 1399 -del /f /q $(EXTDIR)\DynaLoader\dl_win32.xs
1400 -del /f /q $(EXTDIR)\DynaLoader\DynaLoader.pm
1401 -del /f /q $(EXTDIR)\DynaLoader\XSLoader.pm
41504350 1402 -del /f /q $(LIBDIR)\.exists $(LIBDIR)\attrs.pm $(LIBDIR)\DynaLoader.pm
1403 -del /f /q $(LIBDIR)\XSLoader.pm
1404 -del /f /q $(LIBDIR)\Fcntl.pm $(LIBDIR)\IO.pm $(LIBDIR)\Opcode.pm
1405 -del /f /q $(LIBDIR)\ops.pm $(LIBDIR)\Safe.pm
1406 -del /f /q $(LIBDIR)\SDBM_File.pm $(LIBDIR)\Socket.pm $(LIBDIR)\POSIX.pm
1407 -del /f /q $(LIBDIR)\B.pm $(LIBDIR)\O.pm $(LIBDIR)\re.pm
1408 -del /f /q $(LIBDIR)\Data\Dumper.pm $(LIBDIR)\ByteLoader.pm
1409 -del /f /q $(LIBDIR)\Devel\Peek.pm $(LIBDIR)\Devel\DProf.pm
1410 -del /f /q $(LIBDIR)\File\Glob.pm
1411 -del /f /q $(LIBDIR)\Unicode\Normalize.pm
1412 -rmdir /s /q $(LIBDIR)\IO
41504350 1413 -rmdir /s /q $(LIBDIR)\B
1414 -rmdir /s /q $(LIBDIR)\Data
1415 -del /f /q $(PODDIR)\*.html
1416 -del /f /q $(PODDIR)\*.bat
2986a63f 1417 cd ..\utils
41504350 1418 -del /f /q h2ph splain perlbug pl2pm c2ph h2xs perldoc dprofpp
1419 -del /f /q *.bat
2986a63f 1420 cd ..\netware
1421 cd ..\x2p
41504350 1422 -del /f /q find2perl s2p
f355267c 1423 -del /f /q *.bat *.exe
41504350 1424 -del /f /q *.obj *.map *.link *.xdc *.err
2986a63f 1425 cd ..\netware
41504350 1426 -del /f /q ..\config.sh ..\splittree.pl dlutils.c config.h.new
1427 -del /f /q $(CONFIGPM)
1428 -del /f /q bin\*.bat
2986a63f 1429 cd $(EXTDIR)
cf267c36 1430 -del /s /q /f *.lib *.def *.map *.pdb *.bs Makefile *$(o) pm_to_blib *.xdc *.err *.obj *.sym
2986a63f 1431 cd ..\netware
1432!if "$(NW_EXTNS)"=="yes"
1433 cd cgi2perl
cf267c36 1434 -del /f /q *.obj *.bs Makefile *$(o) *.c pm_to_blib *.xdc *.err *.sym *.map *.def *.lib *.pdb
2986a63f 1435 cd ..
1a95e36d 1436 cd Perl2UCS
cf267c36 1437 -del /f /q *.obj *.bs Makefile *$(o) *.c pm_to_blib *.xdc *.err *.sym *.map *.def *.lib *.pdb
9219c8de 1438 cd ..\..\netware
1a95e36d 1439 cd UCSExt
4d76e4b4 1440 -del /f /q *.obj *.bs Makefile *$(o) *.c pm_to_blib *.xdc *.err *.sym *.map *.c
1441 cd ..\..\netware
2986a63f 1442!endif
41504350 1443 -rmdir /s /q $(AUTODIR)
1444 -rmdir /s /q $(COREDIR)
1445 -del /f /q ..\config.sh
2986a63f 1446
1447installwin:
1448 $(MINIPERL) -I..\lib ..\installperl
1449
f355267c 1450install : utils installwin perlimp
1451
1452perlimp :
1453 copy perl.imp $(INST_COREDIR)
2986a63f 1454
1455installnw:
1456 $(MINIPERL) -I..\lib ..\installperl -netware
1457
225a5dca 1458install_tests :
1459 cd ..\t
1460 xcopy /f /r /i /s /d *.* $(INST_NW_TOP2)\scripts\t
1461 cd ..\lib
1462 xcopy /f /r /i /s /d *.t $(INST_NW_TOP2)\scripts\t\lib
1463 cd ..\ext
1464 xcopy /f /r /i /s /d *.t $(INST_NW_TOP2)\scripts\t\ext
32ce01bc 1465 cd ..\netware\t
1466 xcopy /f /r /i /s /d *.pl $(INST_NW_TOP2)\scripts\t
1467 cd ..
225a5dca 1468
1469nwinstall: utils installnw install_tests
2986a63f 1470
1471inst_lib : $(CONFIGPM)
1472 copy ..\win32\splittree.pl ..
1473 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR)
1474 $(RCOPY) ..\lib $(INST_LIB)\*.*
1475
1476clean :
1477 -@erase miniperlmain$(o)
1478 -@erase /f config.h
1479 -@erase $(DLL_OBJ)
1480 -@erase ..\*$(o) ..\*.lib ..\*.exp *$(o) *.lib *.exp *.res
1481 -@erase ..\t\*.exe ..\t\*.dll ..\t\*.bat
1482 -@erase ..\x2p\*.nlm ..\x2p\*.bat