This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Re: [perl #43357] *DESTROY = sub {} at runtime
[perl5.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
JH
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
JH
17## Date Created: 13th July 2000
18## Date Modified: 21st March 2002
2986a63f 19# Name of the NLM
011f1a1a
JH
20
21
2986a63f
JH
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
JH
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
JH
47!message "Run bat\buildtype.bat to set the build type before continuing.\n"
48!error
f355267c 49!endif # !ifndef MAKE_TYPE
2986a63f
JH
50
51!ifdef USE_MPK
52MPKFLAGS = -DMPK_ON -DIAPX386
53MPKMESSAGE = MPK Build...
54XDCTOOL = mpkxdc
55!ifndef MPKBASE
f355267c
JH
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
JH
62MPKMESSAGE = Non MPK Build...
63NLM_INCLUDE_MP =
64MPKTOOL =
f355267c
JH
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
JH
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
JH
90CCTYPE = CodeWarrior
91C_COMPILER = mwccnlm -c
92CPP_COMPILER = mwccnlm
93LINK = mwldnlm
94LD = mwldnlm
95NLM_LIB = mwldnlm -type library
2986a63f
JH
96TOOL_HEADERS =
97TOOL_PATH =
011f1a1a
JH
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
JH
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
JH
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
JH
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
JH
128!endif # !ifdef NLM_NAME8
129!endif # !ifdef USE_D2
130!else # !if "$(MAKE_TYPE)"=="Debug"
2986a63f
JH
131BLDDIR = $(REL_DIR)
132BLDMESG = Release version
011f1a1a 133##BS_CFLAGS = -opt speed -inline smart -inline auto -sym off
2986a63f 134BS_CFLAGS =
f355267c
JH
135!endif # !if "$(MAKE_TYPE)"=="Debug"
136
2986a63f
JH
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
JH
144
145!ifdef SECURITYBASE
146SECURITY_INCLUDE = -I$(SECURITYBASE)\include
147!endif #!ifdef SECURITYBASE
148
149!ifdef UCSINC
011f1a1a 150NLM_INCLUDE_UCS = -I$(UCSINC)
f355267c
JH
151!endif #!ifndef UCSINC
152
011f1a1a 153!if "$(NW_EXTNS)"=="yes"
2986a63f 154INCLUDE_NW = -I.\include
011f1a1a 155!endif
f355267c
JH
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
JH
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
JH
174
175PATH = $(PATH);$(TOOL_PATH)
176
011f1a1a
JH
177NLM_INCLUDES = -I$(COREDIR) $(INCLUDE_NW)
178
179CCFLAGS = $(CCFLAGS) $(INCLUDE)
2986a63f 180
011f1a1a
JH
181COMPLER_FLAGS = $(BS_CFLAGS) $(ADD_BUILDOPT) $(NW_FLAGS) $(COMPILER_FLAG) $(MPKFLAGS) $(CCFLAGS)
182
2986a63f
JH
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
JH
196
197NW_HOST_H_FILES = \
198 .\iperlhost.h \
199 .\interface.h \
200 .\netware.h \
201 .\nw5sck.h \
011f1a1a
JH
202 .\nwperlhost.h \
203
2986a63f
JH
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
JH
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
JH
224NW_CPP_SRC = \
225 .\nwhashcls.cpp \
226 .\interface.cpp \
227 .\perllib.cpp \
228
2986a63f
JH
229EXT_MAIN_SRC = \
230 .\Main.c \
231
232PERL_IO_SRC = \
233 ..\perlio.c
234
011f1a1a
JH
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
JH
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
JH
250NLM_OBJ = $(NLM_CORE_OBJ:..\=.\Release\)
251NEWTARE_OBJ_DEP = $(NW_SRC_OBJ:.\=.\Release\)
011f1a1a 252NEWTARE_CPP_OBJ_DEP = $(NW_CPP_SRC_OBJ:.\=.\Release\)
2986a63f
JH
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
JH
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
JH
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
JH
291 "base_import=$(BASE_IMPORT_FILES)" \
292 "LINK_FLAGS=$(LINK_FLAGS:"=\")" \
293 "optimize=" \
2986a63f
JH
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
JH
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
JH
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
JH
314POSIX_NLM = $(AUTODIR)\POSIX\POSIX.NLM
315ATTRS_NLM = $(AUTODIR)\attrs\attrs.NLM
011f1a1a
JH
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
JH
329XSTYPEMAP_NLM = $(EXTDIR)\XS\Typemap\Typemap.NLM
330UNICODENORMALIZE_NLM = $(EXTDIR)\Unicode\Normalize\Normalize.NLM
331
332EXTENSION_NLM = \
f355267c
JH
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
JH
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
JH
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
JH
359PERL2UCS = Perl2UCS\Perl2UCS
360UCSExt = Perl2UCS\UCSExt
011f1a1a
JH
361
362CGI2PERL_NLM = \CGI2Perl\CGI2Perl.NLM
363PERL2UCS_NLM = $(AUTODIR)\Perl2UCS\Perl2UCS.NLM
364UCSExt_NLM = $(AUTODIR)\UCSExt\UCSExt.NLM
2986a63f
JH
365
366NETWARE_EXTNS = \
011f1a1a 367 $(CGI2PERL_NLM) \
011f1a1a 368 $(PERL2UCS_NLM) \
f355267c 369 $(UCSExt_NLM)
011f1a1a 370# End
4d76e4b4 371
f355267c 372
2986a63f
JH
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
JH
384
385!ifndef SCREEN
386SCREEN = 'none'
387!endif
388
389!ifndef NLM_DESCRIPTION
011f1a1a 390NLM_DESCRIPTION = $(NLM_NAME8) for NetWare
2986a63f
JH
391!endif
392
393!ifndef NLM_VERSION
011f1a1a 394NLM_VERSION = 3.1.0
2986a63f
JH
395!endif
396
397!ifndef NLM_EXT
011f1a1a 398NLM_EXT = NLM
2986a63f
JH
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
JH
408!endif
409
f355267c
JH
410!ifdef SECURITYBASE
411BASE_IMPORT_FILES = $(BASE_IMPORT_FILES), @$(SECURITY_IMPORTS)\nwsec.imp
412!endif # !ifdef SECURITYBASE
413
2986a63f
JH
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
JH
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
JH
431!ifdef WATCOM
432BASE_LIBRARIES = Library plib3s.lib, math3s.lib, clib3s.lib
433!endif # !ifdef WATCOM
011f1a1a 434!ifdef CODEWAR
2986a63f 435BASE_LIBRARIES =
f355267c
JH
436!endif # !ifdef CODEWAR
437!endif # !ifndef BASE_LIBRARIES
438
439
440COPYRIGHT = Copyright (C) 2000-01, 2002 Novell, Inc. All Rights Reserved.
2986a63f
JH
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
JH
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
JH
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
JH
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
JH
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
JH
541!IF "$(PERL_MALLOC)" == ""
542PERL_MALLOC = undef
543!ENDIF
544
2986a63f
JH
545!IF "$(USE_IMP_SYS)" == "define"
546PERL_MALLOC = undef
547!ENDIF
548
549!IF "$(USE_MULTI)" == ""
550USE_MULTI = undef
551!ENDIF
552
2986a63f
JH
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
JH
566USE_MULTI = define
567!ENDIF
568
acfe0abc 569!IF "$(USE_ITHREADS)$(USE_MULTI)" == "defineundef"
2986a63f 570USE_MULTI = define
2986a63f
JH
571!ENDIF
572
3db8f154 573!IF "$(USE_MULTI)" != "undef"
2986a63f
JH
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
JH
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
JH
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
JH
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
JH
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
JH
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
JH
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
JH
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
JH
693
694MICROCORE_SRC = \
225a5dca
JH
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
JH
703 ..\hv.c \
704 ..\locale.c \
7ee2227d 705 ..\mathoms.c \
225a5dca 706 ..\mg.c \
625b117d 707 ..\numeric.c \
225a5dca
JH
708 ..\op.c \
709 ..\perl.c \
2986a63f 710 ..\perlapi.c \
225a5dca
JH
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
JH
719 ..\regcomp.c \
720 ..\regexec.c \
225a5dca
JH
721 ..\run.c \
722 ..\scope.c \
723 ..\sv.c \
724 ..\taint.c \
725 ..\toke.c \
2986a63f 726 ..\universal.c \
225a5dca
JH
727 ..\utf8.c \
728 ..\util.c \
2986a63f
JH
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
JH
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 \
907b3e23 785 ..\intrpvar.h
011f1a1a 786
2986a63f
JH
787CORE_H = $(CORE_NOCFG_H) .\config.h
788
789DLL_OBJ = $(DLL_SRC:.c=.obj)
790X2P_OBJ = $(X2P_SRC:.c=.obj)
791
47f9f84c 792DYNAMIC_EXT = Socket IO Fcntl Opcode SDBM_File POSIX attrs B re \
8dbfbba0 793 Data/Dumper Devel/Peek ByteLoader Devel/DProf File/Glob \
83e2e978 794 Storable/Storable List/Util MIME/Base64/Base64 XS/APItest/APItest \
4d76e4b4 795 XS/Typemap/Typemap Unicode/Normalize/Normalize Sys/Hostname
57e69e5f 796
2986a63f
JH
797STATIC_EXT = DynaLoader
798NONXS_EXT = Errno
799
011f1a1a
JH
800DYNALOADER = $(EXTDIR)\DynaLoader\DynaLoader
801SOCKET = $(EXTDIR)\Socket\Socket
802FCNTL = $(EXTDIR)\Fcntl\Fcntl
803OPCODE = $(EXTDIR)\Opcode\Opcode
804SDBM_FILE = $(EXTDIR)\SDBM_File\SDBM_File
2986a63f 805IO = $(EXTDIR)\IO\IO
011f1a1a
JH
806POSIX = $(EXTDIR)\POSIX\POSIX
807ATTRS = $(EXTDIR)\attrs\attrs
2986a63f
JH
808B = $(EXTDIR)\B\B
809RE = $(EXTDIR)\re\re
011f1a1a
JH
810DUMPER = $(EXTDIR)\Data\Dumper\Dumper
811ERRNO = $(EXTDIR)\Errno\Errno
812PEEK = $(EXTDIR)\Devel\Peek\Peek
813BYTELOADER = $(EXTDIR)\ByteLoader\ByteLoader
814DPROF = $(EXTDIR)\Devel\DProf\DProf
815GLOB = $(EXTDIR)\File\Glob\Glob
816HOSTNAME = $(EXTDIR)\Sys\Hostname\Hostname
225a5dca 817CWD = $(EXTDIR)\Cwd\Cwd
ac5ea531
JH
818STORABLE = $(EXTDIR)\Storable\Storable
819LISTUTIL = $(EXTDIR)\List\Util
820MIMEBASE64 = $(EXTDIR)\MIME\Base64\Base64
83e2e978 821XSAPITEST = $(EXTDIR)\XS\APItest\APItest
ac5ea531
JH
822XSTYPEMAP = $(EXTDIR)\XS\Typemap\Typemap
823UNICODENORMALIZE = $(EXTDIR)\Unicode\Normalize\Normalize
2986a63f 824
57e69e5f
JH
825ERRNO_PM_NW = $(LIBDIR)\Errno.pm
826
011f1a1a 827EXTENSION_C = \
2986a63f
JH
828 $(SOCKET).c \
829 $(FCNTL).c \
830 $(OPCODE).c \
831 $(SDBM_FILE).c \
832 $(IO).c \
833 $(POSIX).c \
834 $(ATTRS).c \
2986a63f
JH
835 $(RE).c \
836 $(DUMPER).c \
837 $(PEEK).c \
838 $(B).c \
839 $(BYTELOADER).c \
840 $(DPROF).c \
225a5dca 841 $(GLOB).c \
57e69e5f 842 $(HOSTNAME).c \
225a5dca
JH
843 $(CWD).c \
844 $(STORABLE).c \
845 $(LISTUTIL).c \
846 $(MIMEBASE64).c \
83e2e978 847 $(XSAPITEST).c \
225a5dca 848 $(XSTYPEMAP).c \
ac5ea531 849 $(UNICODENORMALIZE).c \
2986a63f 850
57e69e5f
JH
851EXTENSION_NPM = \
852 $(ERRNO_PM_NW) \
853
2986a63f
JH
854POD2HTML = $(PODDIR)\pod2html
855POD2MAN = $(PODDIR)\pod2man
856POD2LATEX = $(PODDIR)\pod2latex
857POD2TEXT = $(PODDIR)\pod2text
858
859#
860# Top targets
861#
862
f355267c 863all : .cleanoldfiles .\nwconfig.h $(CONFIGPM) $(NLM_NAME) $(EXTENSION_NLM) $(EXTENSION_NPM) $(TEST_NLMS) $(NETWARE_EXTNS)
2986a63f
JH
864
865#------------------------------------------------------------
866
867..\config.sh : config.nw5 $(MINIPERL) config_sh.PL
868 $(MINIPERL) -I..\lib config_sh.PL $(NW_CFG_VARS) config.nw5 > ..\config.sh
869
870# this target is for when changes to the main config.sh happen
871# edit config.{b,v,g,w}c and make this target once for each supported
872# compiler (e.g. `dmake CCTYPE=BORLAND regen_config_h`)
873regen_config_h:
874 perl config_sh.PL $(NW_CFG_VARS) $(NW_CFGSH_TMPL) > ..\config.sh
875 cd ..
41504350 876 -del /f /q perl.exe
2986a63f
JH
877 perl configpm
878 cd netware
41504350 879 -del /f /q $(NW_CFGH_TMPL)
2986a63f
JH
880 -mkdir $(COREDIR)
881 -perl -I..\lib config_h.PL "INST_VER=$(INST_VER)"
882 rename config.h $(NW_CFGH_TMPL)
883
884$(CONFIGPM) : $(MINIPERL) ..\config.sh config_h.PL ..\minimod.pl
885 cd .. && miniperl configpm
886 if exist lib\* $(RCOPY) lib\*.* ..\lib\$(NULL)
887 $(XCOPY) ..\*.h $(COREDIR)\*.*
888 $(XCOPY) *.h $(COREDIR)\*.*
889 $(XCOPY) ..\ext\re\re.pm $(LIBDIR)\*.*
890 if exist include\* $(RCOPY) include $(COREDIR)\*.*
891 $(MINIPERL) -I..\lib config_h.PL "INST_VER=$(INST_VER)" \
892 || $(MAKE) /$(MAKEFLAGS) $(CONFIGPM)
f355267c 893 @echo CONFIGPM Done
2986a63f
JH
894
895$(MINIPERL) :
896 $(error)Please build $(MINIPERL) before continuing
897
898$(MINIMOD) : $(MINIPERL) ..\minimod.pl
899 cd .. && miniperl minimod.pl > lib\ExtUtils\Miniperl.pm
900
901..\x2p\a2p$(o) : ..\x2p\a2p.c
902 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
011f1a1a
JH
903 $(C_COMPILER) $(COMPLER_FLAGS) $(NLM_INCLUDES) -I..\x2p $(ADD_LOCDEFS) $(ERROR_FLAG) $*.c -o $@
904 @echo Built $(@)
cf267c36 905
2986a63f
JH
906..\x2p\hash$(o) : ..\x2p\hash.c
907 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
011f1a1a
JH
908 $(C_COMPILER) $(COMPLER_FLAGS) $(NLM_INCLUDES) -I..\x2p $(ADD_LOCDEFS) $(ERROR_FLAG) $*.c -o $@
909 @echo Built $(@)
910
2986a63f
JH
911..\x2p\str$(o) : ..\x2p\str.c
912 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
011f1a1a
JH
913 $(C_COMPILER) $(COMPLER_FLAGS) $(NLM_INCLUDES) -I..\x2p $(ADD_LOCDEFS) $(ERROR_FLAG) $*.c -o $@
914 @echo Built $(@)
2986a63f
JH
915
916..\x2p\util$(o) : ..\x2p\util.c
917 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
011f1a1a
JH
918 $(C_COMPILER) $(COMPLER_FLAGS) $(NLM_INCLUDES) -I..\x2p $(ADD_LOCDEFS) $(ERROR_FLAG) $*.c -o $@
919 @echo Built $(@)
2986a63f
JH
920
921..\x2p\walk$(o) : ..\x2p\walk.c
922 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
011f1a1a
JH
923 $(C_COMPILER) $(COMPLER_FLAGS) $(NLM_INCLUDES) -I..\x2p $(ADD_LOCDEFS) $(ERROR_FLAG) $*.c -o $@
924 @echo Built $(@)
925
2986a63f 926$(X2P) : $(MINIPERL) $(X2P_OBJ)
011f1a1a 927 @echo Building $@..........
2986a63f
JH
928 $(MINIPERL) ..\x2p\find2perl.PL
929 $(MINIPERL) ..\x2p\s2p.PL
011f1a1a
JH
930# Linker definitions and lining come here for CODEWARRIOR
931 @echo $(BASE_IMPORT_FILES) > $*.def
932 @echo MODULE clib >> $*.def
933 @echo Import @perl.imp >> $*.def
2986a63f
JH
934!ifdef USE_XDC
935 $(MPKTOOL) $(XDCFLAGS) $*.xdc
011f1a1a
JH
936 @echo Import Mp.imp >> $*.def
937 @echo xdcdata $*.xdc >> $*.def
2986a63f 938!endif
011f1a1a
JH
939## $(LINK) $(LDFLAGS) $(BS_CFLAGS) -desc "Awk to Perl Translator" $(X2P_OBJ) $(BLDDIR)\clibstuf.obj -commandfile $*.def -o $@
940 $(LINK) $(LDFLAGS) -desc "Awk to Perl Translator" $(X2P_OBJ) $(BLDDIR)\clibstuf.obj -commandfile $*.def -o $@
2986a63f
JH
941
942$(EXTDIR)\DynaLoader\dl_netware.xs: dl_netware.xs
943 copy dl_netware.xs $(EXTDIR)\DynaLoader\dl_netware.xs
944
945HEADERS :
946 @echo . . . . making stdio.h and string.h
cd340a5d 947 @copy << stdio.h >\nul
2986a63f
JH
948
949/*
f355267c 950 * Copyright (C) 2000-01 Novell, Inc. All Rights Reserved.
2986a63f
JH
951 *
952 * You may distribute under the terms of either the GNU General Public
953 * License or the Artistic License, as specified in the README file.
954 *
955 */
956
957/*
958 * FILENAME : stdio.h
959 * DESCRIPTION : Generated header file, do not edit. See makefile.
960 * This header file causes the includer to use clibstuf.h
961 * The purpose of clibstuf is to make sure that Perl, cgi2perl and
011f1a1a 962 * all the perl extension nlm's (*.NLM) use the Novell Netware CLIB versions
2986a63f
JH
963 * of standard functions. This code loads up a whole bunch of function pointers
964 * to point at the standard CLIB functions.
965 * Author : HYAK
966 * Date : January 2001.
967 *
968 */
969
970
971#ifndef __Stdio_H__
972#define __Stdio_H__
973
974
975#include "$(NLMSDKBASE)\INCLUDE\NLM\stdio.h"
976#include "clibsdio.h"
977
978
979#endif // __Stdio_H__
980
981<<
982 @copy stdio.h $(COREDIR)
983
cd340a5d 984 @copy << string.h >\nul
2986a63f
JH
985
986/*
f355267c 987 * Copyright (C) 2000-01 Novell, Inc. All Rights Reserved.
2986a63f
JH
988 *
989 * You may distribute under the terms of either the GNU General Public
990 * License or the Artistic License, as specified in the README file.
991 *
992 */
993
994/*
995 * FILENAME : string.h
996 * DESCRIPTION : Generated header file, do not edit. See makefile.
997 * This header file causes the includer to use clibstuf.h
998 * The purpose of clibstuf is to make sure that Perl, cgi2perl and
011f1a1a 999 * all the perl extension nlm's (*.NLM) use the Novell Netware CLIB versions
2986a63f
JH
1000 * of standard functions. This code loads up a whole bunch of function pointers
1001 * to point at the standard CLIB functions.
1002 * Author : HYAK
1003 * Date : January 2001.
1004 *
1005 */
1006
1007
1008#ifndef __String_H__
1009#define __String_H__
1010
1011
1012#include "$(NLMSDKBASE)\INCLUDE\NLM\string.h"
1013#include "clibstr.h"
1014
1015
1016#endif // __String_H__
1017
1018<<
1019 @copy string.h $(COREDIR)
1020
1021
011f1a1a
JH
1022$(NLM_NAME): MESSAGE HEADERS $(BLDDIR)\nul $(NLM_OBJ) $(NEWTARE_OBJ_DEP) $(NEWTARE_CPP_OBJ_DEP) $(PERL_IO_OBJ_DEP) $(DLL_OBJ) \
1023 $(PERLIMPLIB) $(EXT_MAIN_OBJ) $(PERL_TEMP_OBJ) #$(PERL_LIB_OBJ)
2986a63f 1024 @echo======= Linking $@ at $(MAKEDIR)\$(BLDDIR) =======
2986a63f 1025# Linker definitions and lining come here for CODEWARRIOR
011f1a1a
JH
1026 @echo $(BASE_IMPORT_FILES) > $*.def
1027 @echo MODULE clib >> $*.def
1028 @echo MODULE netdb >> $*.def
f355267c
JH
1029!ifdef SECURITYBASE
1030 @echo MODULE nwsec >> $*.def
1031!endif #!ifdef SECURITYBASE
011f1a1a
JH
1032 @echo $(EXPORTS) >> $*.def
1033!ifdef USE_XDC
1034 @echo======= Creating XDC file
1035 @echo Import Mp.imp >> $*.def
2986a63f 1036!ifdef NLM_NAME8
011f1a1a
JH
1037 $(MPKTOOL) $(XDCFLAGS) $(BLDDIR)\$(NLM_NAME8).xdc
1038 @echo xdcdata $(BLDDIR)\$(NLM_NAME8).xdc >> $*.def
2986a63f 1039!else
011f1a1a
JH
1040 $(MPKTOOL) $(XDCFLAGS) $(BLDDIR)\$(NLM_NAME).xdc
1041 @echo xdcdata $(BLDDIR)\$(NLM_NAME).xdc >> $*.def
2986a63f
JH
1042!endif
1043!endif
011f1a1a
JH
1044## $(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)\$@
1045 $(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)\$@
1046 copy splittree.pl ..
1047 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR)
1048 @echo ========Linked $@ ==========
f355267c 1049
2986a63f 1050 @echo======= Finished building $(BUILT).
011f1a1a
JH
1051
1052# Create the debug or release directory if not existing
1053$(BLDDIR)\nul:
1054 @echo . . . . mkdir $(BLDDIR)
1055 @mkdir $(BLDDIR)
1056 @echo '$(BLDDIR)' directory created.
2986a63f
JH
1057
1058MESSAGE:
1059 @echo======= $(MAKE_ACTION)ing $(NLM_NAME) at $(MAKEDIR)\$(BLDDIR) =======
011f1a1a
JH
1060
1061$(PERLIMPLIB): perllib.imp
f355267c
JH
1062# @echo Building $(PERLIMPLIB)...
1063# $(LD) -type library $(NLM_OBJ) $(BLDDIR)\nw5.obj $(BLDDIR)\nwmain.obj $(BLDDIR)\nw5thread.obj $(BLDDIR)\nwtinfo.obj \
1064# $(BLDDIR)\nwutil.obj $(BLDDIR)\interface.obj $(BLDDIR)\perllib.obj $(PERL_IO_OBJ_DEP) $(DLL_OBJ) -o $@
1065# $(XCOPY) $(PERLIMPLIB) $(COREDIR)
1066# @echo $(PERLIMPLIB) Done
011f1a1a
JH
1067
1068perllib.imp : $(MINIPERL) $(CONFIGPM) ..\global.sym ..\pp.sym ..\makedef.pl
1069# $(MINIPERL) -w ..\makedef.pl PLATFORM=netware FILETYPE=def $(ADD_BUILDOPT) \
1070# CCTYPE=$(CCTYPE) > perllib.def
1071 @echo (Perl) > perl.imp
1072 $(MINIPERL) -w ..\makedef.pl PLATFORM=netware FILETYPE=imp $(BS_CFLAGS) $(DEFINES) $(ADD_BUILDOPT) \
1073 CCTYPE=$(CCTYPE) >> perl.imp
1074 copy perl.imp $(COREDIR)
1075
2986a63f 1076$(DLL_OBJ) : $(DYNALOADER).c $(CORE_H) $(EXTDIR)\DynaLoader\dlutils.c
011f1a1a
JH
1077 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
1078 @$(C_COMPILER) $(NLM_INCLUDES) $(COMPLER_FLAGS) $(NLM_INCLUDES) $(ADD_LOCDEFS) $(ERROR_FLAG) -I$(EXTDIR)\DynaLoader \
1079 $(EXTDIR)\DynaLoader\$(*F).c -o $@
1080 @echo $(@) Done.
2986a63f
JH
1081
1082$(DYNALOADER).c : $(MINIPERL) $(EXTDIR)\DynaLoader\dl_netware.xs $(CONFIGPM)
1083 if not exist $(AUTODIR) mkdir $(AUTODIR)
1084 cd $(EXTDIR)\$(*B)
1085 ..\$(MINIPERL) -I..\..\lib $(*B)_pm.PL
1086 ..\$(MINIPERL) -I..\..\lib XSLoader_pm.PL
1087 cd ..\..\netware
1088 $(XCOPY) $(EXTDIR)\$(*B)\$(*B).pm $(LIBDIR)\$(NULL)
1089 $(XCOPY) $(EXTDIR)\$(*B)\XSLoader.pm $(LIBDIR)\$(NULL)
1090 cd $(EXTDIR)\$(*B)
1091 $(XSUBPP) dl_netware.xs > $(*B).c
1092 cd ..\..\netware
011f1a1a 1093 @echo Dynaloader Done
2986a63f 1094
2986a63f
JH
1095
1096$(PERL_IO_OBJ_DEP) : ..\$(*F).c
1097 @echo $(MPKMESSAGE) $(BLDMESG) $@
011f1a1a
JH
1098 $(C_COMPILER) $(COMPLER_FLAGS) $(NLM_INCLUDES) $(ADD_LOCDEFS) $(ERROR_FLAG) ..\$(*F).c -o $@
1099 @echo Built $(@)
2986a63f
JH
1100
1101$(NLM_OBJ) : ..\$(*F).c
1102 @echo $(MPKMESSAGE) $(BLDMESG) $@
011f1a1a
JH
1103 $(C_COMPILER) $(COMPLER_FLAGS) $(NLM_INCLUDES) $(ADD_LOCDEFS) $(ERROR_FLAG) ..\$(*F).c -o $@
1104 @echo Built $(@)
1105
1106
2986a63f
JH
1107$(NEWTARE_OBJ_DEP) : $(NW_H_FILES) $(NW_HOST_H_FILES) $(*F).c
1108 @echo $(MPKMESSAGE) $(BLDMESG) $@
011f1a1a
JH
1109 $(C_COMPILER) $(COMPLER_FLAGS) $(NLM_INCLUDES) $(ADD_LOCDEFS) $(ERROR_FLAG) $(*F).c -o $@
1110 @echo Built $(@)
2986a63f 1111
011f1a1a 1112$(NEWTARE_CPP_OBJ_DEP) : $(NW_H_FILES) $(NW_HOST_H_FILES) $(*F).cpp
2986a63f 1113 @echo $(MPKMESSAGE) $(BLDMESG) $@
011f1a1a
JH
1114 $(C_COMPILER) $(CWCPPFLAGS) $(COMPLER_FLAGS) $(NLM_INCLUDES) $(ADD_LOCDEFS) $(ERROR_FLAG) $(*F).cpp -o $@
1115 @echo Built $(@)
1116
1117$(EXT_MAIN_OBJ) : $(CLIB_H_FILES)
1118 @echo $(MPKMESSAGE) $(BLDMESG) $@
1119 $(C_COMPILER) $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(ERROR_FLAG) $(*F).c -o $@
1120 $(LD) -type library $@ -o $*.lib
1121 @copy $*.lib $(COREDIR)
2986a63f
JH
1122
1123# Delete any files that might have got created during building miniperl.exe
1124# config.sh will definitely be created
1125# COREDIR might have got created
1126.cleanoldfiles :
41504350
JH
1127 -del /f /q $(PERLIMPLIB)
1128 -del /f /q ..\lib\config.pm
1129 -del /f /q ..\config.sh
1130 -del /f /q .\Main.obj
1131 -del /f /q .\Main.lib
2986a63f
JH
1132 -rmdir /s /q $(AUTODIR)
1133 -rmdir /s /q $(COREDIR)
41504350 1134 -del /f /q ..\lib\core
2986a63f
JH
1135
1136.\nwconfig.h : $(NW_CFGH_TMPL)
f355267c 1137 @if exist .\config.h del /f /q .\config.h
2986a63f
JH
1138 copy $(NW_CFGH_TMPL) config.h
1139
1140# REQUIRED WHEN WE INCLUDE CONFIGPM OR REGEN_CONFIG - sgp
1141#..\nwconfig.sh : config.nw5 $(MINIPERL) config_sh.PL
1142# $(MINIPERL) -I..\lib config_sh.PL $(NW_CFG_VARS) config.nw5 > ..\config.sh
1143# @pause
1144# cd ..
4d76e4b4 1145# del /f /q config.sh
2986a63f
JH
1146# rename nwconfig.sh config.sh
1147# cd netware
1148
1149config.nw5 : $(NW_CFGSH_TMPL)
1150 copy $(NW_CFGSH_TMPL) config.nw5
1151
011f1a1a 1152$(SOCKET_NLM): $(NLM_NAME) $(SOCKET).xs
2986a63f 1153 cd $(EXTDIR)\$(*B)
c5635c9e 1154 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1155 $(MAKE)
1156 cd ..\..\netware
1157
011f1a1a 1158$(HOSTNAME_NLM): $(NLM_NAME) $(HOSTNAME).xs
57e69e5f 1159 cd $(EXTDIR)\Sys\$(*B)
c5635c9e 1160 ..\..\..\miniperl -I..\..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
57e69e5f
JH
1161 $(MAKE)
1162 cd ..\..\..\netware
1163
011f1a1a 1164$(FCNTL_NLM):
2986a63f 1165 cd $(EXTDIR)\$(*B)
c5635c9e 1166 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1167 $(MAKE)
1168 cd ..\..\netware
1169
011f1a1a 1170$(IO_NLM):
2986a63f 1171 cd $(EXTDIR)\$(*B)
c5635c9e 1172 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1173 $(MAKE)
1174 cd ..\..\netware
1175
011f1a1a 1176$(OPCODE_NLM):
2986a63f 1177 cd $(EXTDIR)\$(*B)
c5635c9e 1178 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1179 $(MAKE)
1180 cd ..\..\netware
1181
011f1a1a 1182$(B_NLM):
2986a63f 1183 cd $(EXTDIR)\$(*B)
c5635c9e 1184 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1185 $(MAKE)
1186 cd ..\..\netware
1187
011f1a1a 1188$(DUMPER_NLM):
2986a63f 1189 cd $(EXTDIR)\Data\$(*B)
c5635c9e 1190 ..\..\..\miniperl -I..\..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1191 $(MAKE)
1192 cd ..\..\..\netware
1193
011f1a1a 1194$(PEEK_NLM):
2986a63f 1195 cd $(EXTDIR)\Devel\$(*B)
c5635c9e 1196 ..\..\..\miniperl -I..\..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1197 $(MAKE)
1198 cd ..\..\..\netware
1199
011f1a1a 1200$(RE_NLM):
2986a63f 1201 cd $(EXTDIR)\$(*B)
c5635c9e 1202 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1203 $(MAKE)
1204 cd ..\..\netware
1205
011f1a1a 1206$(BYTELOADER_NLM):
2986a63f 1207 cd $(EXTDIR)\$(*B)
c5635c9e 1208 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1209 $(MAKE)
1210 cd ..\..\netware
1211
011f1a1a 1212$(DPROF_NLM):
2986a63f 1213 cd $(EXTDIR)\Devel\$(*B)
c5635c9e 1214 ..\..\..\miniperl -I..\..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1215 $(MAKE)
1216 cd ..\..\..\netware
1217
011f1a1a 1218$(GLOB_NLM):
2986a63f 1219 cd $(EXTDIR)\File\$(*B)
c5635c9e 1220 ..\..\..\miniperl -I..\..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1221 $(MAKE)
1222 cd ..\..\..\netware
1223
011f1a1a 1224$(POSIX_NLM):
2986a63f 1225 cd $(EXTDIR)\$(*B)
c5635c9e 1226 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1227 $(MAKE)
1228 cd ..\..\netware
1229
011f1a1a 1230$(ATTRS_NLM):
2986a63f 1231 cd $(EXTDIR)\$(*B)
c5635c9e 1232 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1233 $(MAKE)
1234 cd ..\..\netware
1235
011f1a1a 1236$(SDBM_FILE_NLM):
2986a63f 1237 cd $(EXTDIR)\$(*B)
c5635c9e 1238 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1239 $(MAKE)
1240 cd ..\..\netware
1241
011f1a1a 1242$(CWD_NLM):
225a5dca 1243 cd $(EXTDIR)\$(*B)
c5635c9e 1244 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
225a5dca
JH
1245 $(MAKE)
1246 cd ..\..\netware
1247
011f1a1a 1248$(STORABLE_NLM):
225a5dca 1249 cd $(EXTDIR)\$(*B)
c5635c9e 1250 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
225a5dca
JH
1251 $(MAKE)
1252 cd ..\..\netware
1253
011f1a1a 1254$(LISTUTIL_NLM):
225a5dca 1255 cd $(EXTDIR)\List\$(*B)
c5635c9e 1256 ..\..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
225a5dca
JH
1257 $(MAKE)
1258 cd ..\..\..\netware
1259
011f1a1a 1260$(MIMEBASE64_NLM):
225a5dca 1261 cd $(EXTDIR)\Mime\$(*B)
c5635c9e 1262 ..\..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
225a5dca
JH
1263 $(MAKE)
1264 cd ..\..\..\netware
1265
83e2e978
JH
1266$(XSAPITEST_NLM):
1267 cd $(EXTDIR)\XS\$(*B)
1268 ..\..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
1269 $(MAKE)
1270 cd ..\..\..\netware
1271
011f1a1a 1272$(XSTYPEMAP_NLM):
225a5dca 1273 cd $(EXTDIR)\XS\$(*B)
c5635c9e 1274 ..\..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
225a5dca
JH
1275 $(MAKE)
1276 cd ..\..\..\netware
1277
011f1a1a 1278$(UNICODENORMALIZE_NLM):
ac5ea531 1279 cd $(EXTDIR)\Unicode\$(*B)
c5635c9e 1280 ..\..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
ac5ea531
JH
1281 $(MAKE)
1282 cd ..\..\..\netware
1283
011f1a1a 1284
2986a63f 1285$(ERRNO_PM_NW):
011f1a1a 1286# @echo Building $@
2986a63f 1287 cd $(EXTDIR)\$(*B)
c5635c9e 1288 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1289 $(MAKE)
1290 cd ..\..\netware
1291
1292$(ECHO_SRC_OBJ): $*.c
1293 @echo $(MPKMESSAGE) $(BLDMESG) $@
011f1a1a
JH
1294 $(C_COMPILER) $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(ERROR_FLAG) $*.c -o $@
1295 @echo Built $(@)
2986a63f
JH
1296
1297$(ECHO_NLM): $(ECHO_SRC_OBJ)
1298 @echo======= Linking $@ =======
011f1a1a
JH
1299# Linker definitions and lining come here for CODEWARRIOR
1300 @echo $(BASE_IMPORT_FILES) > $*.def
1301 @echo MODULE clib >> $*.def
1302 @echo Import @perl.imp >> $*.def
2986a63f
JH
1303!ifdef USE_XDC
1304 $(MPKTOOL) $(XDCFLAGS) $*.xdc
011f1a1a
JH
1305 @echo Import @MP.imp >> $*.def
1306 @echo xdcdata $*.xdc >> $*.def
2986a63f 1307!endif
011f1a1a
JH
1308## $(LINK) $(LDFLAGS) $(BS_CFLAGS) -desc "DOS Echo emulation for Perl testing" $(ECHO_SRC_OBJ) $(BLDDIR)\clibstuf.obj -commandfile $*.def -o $@
1309 $(LINK) $(LDFLAGS) -desc "DOS Echo emulation for Perl testing" $(ECHO_SRC_OBJ) $(BLDDIR)\clibstuf.obj -commandfile $*.def -o $@
2986a63f
JH
1310 @echo======= Linking Complete =======
1311
1312$(TYPE_SRC_OBJ): $*.c
1313 @echo $(MPKMESSAGE) $(BLDMESG) $@
011f1a1a
JH
1314 $(C_COMPILER) $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(ERROR_FLAG) $*.c -o $@
1315 @echo Built $(@)
1316
2986a63f
JH
1317$(TYPE_NLM): $(TYPE_SRC_OBJ)
1318 @echo======= Linking $@ =======
011f1a1a
JH
1319# Linker definitions and lining come here for CODEWARRIOR
1320 @echo $(BASE_IMPORT_FILES) > $*.def
1321 @echo MODULE clib >> $*.def
1322 @echo Import @perl.imp >> $*.def
2986a63f
JH
1323!ifdef USE_XDC
1324 $(MPKTOOL) $(XDCFLAGS) $*.xdc
011f1a1a
JH
1325 @echo Import @MP.imp >> $*.def
1326 @echo xdcdata $*.xdc >> $*.def
2986a63f 1327!endif
011f1a1a
JH
1328## $(LINK) $(LDFLAGS) $(BS_CFLAGS) -desc "DOS Type emulation for Perl testing" $(TYPE_SRC_OBJ) $(BLDDIR)\clibstuf.obj -commandfile $*.def -o $@
1329 $(LINK) $(LDFLAGS) -desc "DOS Type emulation for Perl testing" $(TYPE_SRC_OBJ) $(BLDDIR)\clibstuf.obj -commandfile $*.def -o $@
2986a63f
JH
1330 @echo======= Linking Complete =======
1331
011f1a1a 1332
2986a63f 1333# Build NetWare specific extensions
011f1a1a 1334$(CGI2PERL_NLM):
2986a63f
JH
1335!if "$(NW_EXTNS)"=="yes"
1336 cd $(*B)
011f1a1a 1337 ..\..\miniperl -I..\..\lib Makefile.PL "CCCDLFLAGS=-bool on -lang c++" PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1338 $(MAKE)
1339 cd ..\..\netware
1340!endif
1341
011f1a1a 1342$(PERL2UCS_NLM):
2986a63f 1343!if "$(NW_EXTNS)"=="yes"
1a95e36d 1344 cd $(*B)
011f1a1a 1345 ..\..\miniperl -I..\..\lib Makefile.PL "CCCDLFLAGS=-bool on -lang c++" PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1346 $(MAKE)
1347 cd ..\..\netware
1348!endif
1349
011f1a1a 1350$(UCSExt_NLM):
4d76e4b4 1351!if "$(NW_EXTNS)"=="yes"
1a95e36d 1352 cd $(*B)
011f1a1a 1353 ..\..\miniperl -I..\..\lib Makefile.PL "CCCDLFLAGS=-bool on -lang c++" PERL_CORE=1 INSTALLDIRS=perl
4d76e4b4
JH
1354 $(MAKE)
1355 cd ..\..\netware
1356!endif
1357
2986a63f 1358nwclean:
41504350
JH
1359 -rmdir /s /q $(REL_DIR)
1360 -rmdir /s /q $(DEB_DIR)
1361 @if exist .\stdio.h del /f /q .\stdio.h
1362 @if exist .\string.h del /f /q .\string.h
f355267c 1363 @if exist .\config.h del /f /q .\config.h
41504350
JH
1364 @if exist .\config.nw5 del /f /q .\config.nw5
1365 @if exist .\perl.imp del /f /q .\perl.imp
cf267c36 1366 -del /f /q *.obj *.lib *.def *.sym *.map *.xdc *.err *.nlm
2986a63f 1367 cd testnlm\echo
cf267c36 1368 -del /f /q *.obj *.map *.link *.options *.nlm *.sym *.xdc *.err *.lib *.def *.pdb *.bs
2986a63f 1369 cd ..\type
cf267c36 1370 -del /f /q *.obj *.map *.link *.options *.nlm *.sym *.xdc *.err *.lib *.def *.pdb *.bs
2986a63f
JH
1371 cd ..\..\
1372
1373utils: $(BLDDIR)\$(NLM_NAME8).$(NLM_EXT) $(X2P)
1374 cd ..\utils
1375 $(MAKE) PERL=$(MINIPERL)
1376 cd ..\pod
1377 copy ..\README.amiga .\perlamiga.pod
1378 copy ..\README.cygwin .\perlcygwin.pod
1379 copy ..\README.dos .\perldos.pod
1380 copy ..\README.hpux .\perlhpux.pod
1381# copy ..\README.machten .\perlmachten.pod
1382 copy ..\README.os2 .\perlos2.pod
1383 copy ..\vms\perlvms.pod .\perlvms.pod
1384 copy ..\README.win32 .\perlwin32.pod
1385 copy ..\README.netware .\perlnw5.pod
1386 $(MAKE) -f ..\win32\pod.mak converters
3e7b198a
JH
1387
1388 cd ..\lib
1389 $(MINIPERL) lib_pm.PL
2986a63f
JH
1390 cd ..\netware
1391 $(MINIPERL) $(PL2BAT) $(UTILS)
1392
1393distclean: clean nwclean
41504350 1394 -del /f /q $(PERLIMPLIB) ..\miniperl.lib $(MINIMOD)
41504350
JH
1395 -del /f /q $(EXTENSION_NPM)
1396 -del /f /q $(EXTENSION_C) $(DYNALOADER).c $(ERRNO).pm
1397 -del /f /q $(EXTDIR)\DynaLoader\dl_netware.xs
f355267c
JH
1398 -del /f /q $(EXTDIR)\DynaLoader\dl_win32.xs
1399 -del /f /q $(EXTDIR)\DynaLoader\DynaLoader.pm
1400 -del /f /q $(EXTDIR)\DynaLoader\XSLoader.pm
41504350
JH
1401 -del /f /q $(LIBDIR)\.exists $(LIBDIR)\attrs.pm $(LIBDIR)\DynaLoader.pm
1402 -del /f /q $(LIBDIR)\XSLoader.pm
1403 -del /f /q $(LIBDIR)\Fcntl.pm $(LIBDIR)\IO.pm $(LIBDIR)\Opcode.pm
1404 -del /f /q $(LIBDIR)\ops.pm $(LIBDIR)\Safe.pm
1405 -del /f /q $(LIBDIR)\SDBM_File.pm $(LIBDIR)\Socket.pm $(LIBDIR)\POSIX.pm
1406 -del /f /q $(LIBDIR)\B.pm $(LIBDIR)\O.pm $(LIBDIR)\re.pm
1407 -del /f /q $(LIBDIR)\Data\Dumper.pm $(LIBDIR)\ByteLoader.pm
1408 -del /f /q $(LIBDIR)\Devel\Peek.pm $(LIBDIR)\Devel\DProf.pm
1409 -del /f /q $(LIBDIR)\File\Glob.pm
1410 -del /f /q $(LIBDIR)\Unicode\Normalize.pm
1411 -rmdir /s /q $(LIBDIR)\IO
41504350
JH
1412 -rmdir /s /q $(LIBDIR)\B
1413 -rmdir /s /q $(LIBDIR)\Data
1414 -del /f /q $(PODDIR)\*.html
1415 -del /f /q $(PODDIR)\*.bat
2986a63f 1416 cd ..\utils
41504350
JH
1417 -del /f /q h2ph splain perlbug pl2pm c2ph h2xs perldoc dprofpp
1418 -del /f /q *.bat
2986a63f
JH
1419 cd ..\netware
1420 cd ..\x2p
41504350 1421 -del /f /q find2perl s2p
f355267c 1422 -del /f /q *.bat *.exe
41504350 1423 -del /f /q *.obj *.map *.link *.xdc *.err
2986a63f 1424 cd ..\netware
41504350
JH
1425 -del /f /q ..\config.sh ..\splittree.pl dlutils.c config.h.new
1426 -del /f /q $(CONFIGPM)
1427 -del /f /q bin\*.bat
2986a63f 1428 cd $(EXTDIR)
cf267c36 1429 -del /s /q /f *.lib *.def *.map *.pdb *.bs Makefile *$(o) pm_to_blib *.xdc *.err *.obj *.sym
2986a63f
JH
1430 cd ..\netware
1431!if "$(NW_EXTNS)"=="yes"
1432 cd cgi2perl
cf267c36 1433 -del /f /q *.obj *.bs Makefile *$(o) *.c pm_to_blib *.xdc *.err *.sym *.map *.def *.lib *.pdb
2986a63f 1434 cd ..
1a95e36d 1435 cd Perl2UCS
cf267c36 1436 -del /f /q *.obj *.bs Makefile *$(o) *.c pm_to_blib *.xdc *.err *.sym *.map *.def *.lib *.pdb
9219c8de 1437 cd ..\..\netware
1a95e36d 1438 cd UCSExt
4d76e4b4
JH
1439 -del /f /q *.obj *.bs Makefile *$(o) *.c pm_to_blib *.xdc *.err *.sym *.map *.c
1440 cd ..\..\netware
2986a63f 1441!endif
41504350
JH
1442 -rmdir /s /q $(AUTODIR)
1443 -rmdir /s /q $(COREDIR)
1444 -del /f /q ..\config.sh
2986a63f
JH
1445
1446installwin:
1447 $(MINIPERL) -I..\lib ..\installperl
1448
f355267c
JH
1449install : utils installwin perlimp
1450
1451perlimp :
1452 copy perl.imp $(INST_COREDIR)
2986a63f
JH
1453
1454installnw:
1455 $(MINIPERL) -I..\lib ..\installperl -netware
1456
225a5dca
JH
1457install_tests :
1458 cd ..\t
1459 xcopy /f /r /i /s /d *.* $(INST_NW_TOP2)\scripts\t
1460 cd ..\lib
1461 xcopy /f /r /i /s /d *.t $(INST_NW_TOP2)\scripts\t\lib
1462 cd ..\ext
1463 xcopy /f /r /i /s /d *.t $(INST_NW_TOP2)\scripts\t\ext
32ce01bc
JH
1464 cd ..\netware\t
1465 xcopy /f /r /i /s /d *.pl $(INST_NW_TOP2)\scripts\t
1466 cd ..
225a5dca
JH
1467
1468nwinstall: utils installnw install_tests
2986a63f
JH
1469
1470inst_lib : $(CONFIGPM)
1471 copy ..\win32\splittree.pl ..
1472 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR)
1473 $(RCOPY) ..\lib $(INST_LIB)\*.*
1474
1475clean :
1476 -@erase miniperlmain$(o)
1477 -@erase /f config.h
1478 -@erase $(DLL_OBJ)
1479 -@erase ..\*$(o) ..\*.lib ..\*.exp *$(o) *.lib *.exp *.res
1480 -@erase ..\t\*.exe ..\t\*.dll ..\t\*.bat
1481 -@erase ..\x2p\*.nlm ..\x2p\*.bat