This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Remove all mention of checkpods
[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 -
4eeeaff6 89MODULE_DESC = "Perl 5.11.0 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#
4eeeaff6 466INST_VER = \5.11.0
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\pod2html \
671 ..\pod\pod2latex \
672 ..\pod\pod2man \
673 ..\pod\pod2text \
674 ..\pod\pod2usage \
675 ..\pod\podchecker \
676 ..\pod\podselect \
677 ..\x2p\find2perl \
678 ..\x2p\s2p
679
680MAKE = nmake -nologo
011f1a1a 681#NMAKE = $(C_COMPILER) $(INCLUDE) $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(ERROR_FLAG) $(*F).c -o $@
2986a63f
JH
682
683XCOPY = xcopy /f /r /i /d
684RCOPY = xcopy /f /r /i /e /d
685NOOP = @echo
686NULL =
687
688#
689# filenames given to xsubpp must have forward slashes (since it puts
690# full pathnames in #line strings)
f355267c 691XSUBPP = ..\$(MINIPERL) -I..\..\lib ..\$(EXTUTILSDIR)\xsubpp -C++ -prototypes
2986a63f
JH
692
693MICROCORE_SRC = \
225a5dca
JH
694 ..\av.c \
695 ..\deb.c \
696 ..\doio.c \
697 ..\doop.c \
698 ..\dump.c \
2986a63f 699 ..\globals.c \
225a5dca 700 ..\gv.c \
e1a479c5 701 ..\mro.c \
225a5dca
JH
702 ..\hv.c \
703 ..\locale.c \
7ee2227d 704 ..\mathoms.c \
225a5dca 705 ..\mg.c \
625b117d 706 ..\numeric.c \
225a5dca
JH
707 ..\op.c \
708 ..\perl.c \
2986a63f 709 ..\perlapi.c \
225a5dca
JH
710 ..\perly.c \
711 ..\pp.c \
712 ..\pp_ctl.c \
713 ..\pp_hot.c \
625b117d 714 ..\pp_pack.c \
84d4ea48 715 ..\pp_sort.c \
225a5dca 716 ..\pp_sys.c \
10bc17b6 717 ..\reentr.c \
2986a63f
JH
718 ..\regcomp.c \
719 ..\regexec.c \
225a5dca
JH
720 ..\run.c \
721 ..\scope.c \
722 ..\sv.c \
723 ..\taint.c \
724 ..\toke.c \
2986a63f 725 ..\universal.c \
225a5dca
JH
726 ..\utf8.c \
727 ..\util.c \
2986a63f
JH
728 ..\xsutils.c
729
730#EXTRACORE_SRC = $(EXTRACORE_SRC) perllib.c
731
732!IF "$(PERL_MALLOC)" == "define"
733EXTRACORE_SRC = $(EXTRACORE_SRC) ..\malloc.c
734!ENDIF
735
2986a63f 736#EXTRACORE_SRC = $(EXTRACORE_SRC) ..\perlio.c
2986a63f
JH
737
738!IF "$(CRYPT_SRC)" != ""
739NW_SRC = $(NW_SRC) .\$(CRYPT_SRC)
740!ENDIF
741
742DLL_SRC = $(DYNALOADER).c
743
744X2P_SRC = \
745 ..\x2p\a2p.c \
746 ..\x2p\hash.c \
747 ..\x2p\str.c \
748 ..\x2p\util.c \
749 ..\x2p\walk.c
750
751CORE_NOCFG_H = \
752 ..\av.h \
753 ..\cop.h \
754 ..\cv.h \
755 ..\dosish.h \
756 ..\embed.h \
757 ..\form.h \
758 ..\gv.h \
759 ..\handy.h \
760 ..\hv.h \
761 ..\iperlsys.h \
762 ..\mg.h \
763 ..\nostdio.h \
764 ..\op.h \
765 ..\opcode.h \
766 ..\perl.h \
767 ..\perlapi.h \
768 ..\perlsdio.h \
769 ..\perlsfio.h \
770 ..\perly.h \
771 ..\pp.h \
772 ..\proto.h \
773 ..\regexp.h \
774 ..\scope.h \
775 ..\sv.h \
776 ..\thread.h \
777 ..\unixish.h \
778 ..\utf8.h \
779 ..\util.h \
780 ..\warnings.h \
781 ..\XSUB.h \
782 ..\EXTERN.h \
783 ..\perlvars.h \
907b3e23 784 ..\intrpvar.h
011f1a1a 785
2986a63f
JH
786CORE_H = $(CORE_NOCFG_H) .\config.h
787
788DLL_OBJ = $(DLL_SRC:.c=.obj)
789X2P_OBJ = $(X2P_SRC:.c=.obj)
790
47f9f84c 791DYNAMIC_EXT = Socket IO Fcntl Opcode SDBM_File POSIX attrs B re \
8dbfbba0 792 Data/Dumper Devel/Peek ByteLoader Devel/DProf File/Glob \
83e2e978 793 Storable/Storable List/Util MIME/Base64/Base64 XS/APItest/APItest \
4d76e4b4 794 XS/Typemap/Typemap Unicode/Normalize/Normalize Sys/Hostname
57e69e5f 795
2986a63f
JH
796STATIC_EXT = DynaLoader
797NONXS_EXT = Errno
798
011f1a1a
JH
799DYNALOADER = $(EXTDIR)\DynaLoader\DynaLoader
800SOCKET = $(EXTDIR)\Socket\Socket
801FCNTL = $(EXTDIR)\Fcntl\Fcntl
802OPCODE = $(EXTDIR)\Opcode\Opcode
803SDBM_FILE = $(EXTDIR)\SDBM_File\SDBM_File
2986a63f 804IO = $(EXTDIR)\IO\IO
011f1a1a
JH
805POSIX = $(EXTDIR)\POSIX\POSIX
806ATTRS = $(EXTDIR)\attrs\attrs
2986a63f
JH
807B = $(EXTDIR)\B\B
808RE = $(EXTDIR)\re\re
011f1a1a
JH
809DUMPER = $(EXTDIR)\Data\Dumper\Dumper
810ERRNO = $(EXTDIR)\Errno\Errno
811PEEK = $(EXTDIR)\Devel\Peek\Peek
812BYTELOADER = $(EXTDIR)\ByteLoader\ByteLoader
813DPROF = $(EXTDIR)\Devel\DProf\DProf
814GLOB = $(EXTDIR)\File\Glob\Glob
815HOSTNAME = $(EXTDIR)\Sys\Hostname\Hostname
225a5dca 816CWD = $(EXTDIR)\Cwd\Cwd
ac5ea531
JH
817STORABLE = $(EXTDIR)\Storable\Storable
818LISTUTIL = $(EXTDIR)\List\Util
819MIMEBASE64 = $(EXTDIR)\MIME\Base64\Base64
83e2e978 820XSAPITEST = $(EXTDIR)\XS\APItest\APItest
ac5ea531
JH
821XSTYPEMAP = $(EXTDIR)\XS\Typemap\Typemap
822UNICODENORMALIZE = $(EXTDIR)\Unicode\Normalize\Normalize
2986a63f 823
57e69e5f
JH
824ERRNO_PM_NW = $(LIBDIR)\Errno.pm
825
011f1a1a 826EXTENSION_C = \
2986a63f
JH
827 $(SOCKET).c \
828 $(FCNTL).c \
829 $(OPCODE).c \
830 $(SDBM_FILE).c \
831 $(IO).c \
832 $(POSIX).c \
833 $(ATTRS).c \
2986a63f
JH
834 $(RE).c \
835 $(DUMPER).c \
836 $(PEEK).c \
837 $(B).c \
838 $(BYTELOADER).c \
839 $(DPROF).c \
225a5dca 840 $(GLOB).c \
57e69e5f 841 $(HOSTNAME).c \
225a5dca
JH
842 $(CWD).c \
843 $(STORABLE).c \
844 $(LISTUTIL).c \
845 $(MIMEBASE64).c \
83e2e978 846 $(XSAPITEST).c \
225a5dca 847 $(XSTYPEMAP).c \
ac5ea531 848 $(UNICODENORMALIZE).c \
2986a63f 849
57e69e5f
JH
850EXTENSION_NPM = \
851 $(ERRNO_PM_NW) \
852
2986a63f
JH
853POD2HTML = $(PODDIR)\pod2html
854POD2MAN = $(PODDIR)\pod2man
855POD2LATEX = $(PODDIR)\pod2latex
856POD2TEXT = $(PODDIR)\pod2text
857
858#
859# Top targets
860#
861
f355267c 862all : .cleanoldfiles .\nwconfig.h $(CONFIGPM) $(NLM_NAME) $(EXTENSION_NLM) $(EXTENSION_NPM) $(TEST_NLMS) $(NETWARE_EXTNS)
2986a63f
JH
863
864#------------------------------------------------------------
865
866..\config.sh : config.nw5 $(MINIPERL) config_sh.PL
867 $(MINIPERL) -I..\lib config_sh.PL $(NW_CFG_VARS) config.nw5 > ..\config.sh
868
869# this target is for when changes to the main config.sh happen
870# edit config.{b,v,g,w}c and make this target once for each supported
871# compiler (e.g. `dmake CCTYPE=BORLAND regen_config_h`)
872regen_config_h:
873 perl config_sh.PL $(NW_CFG_VARS) $(NW_CFGSH_TMPL) > ..\config.sh
874 cd ..
41504350 875 -del /f /q perl.exe
2986a63f
JH
876 perl configpm
877 cd netware
41504350 878 -del /f /q $(NW_CFGH_TMPL)
2986a63f
JH
879 -mkdir $(COREDIR)
880 -perl -I..\lib config_h.PL "INST_VER=$(INST_VER)"
881 rename config.h $(NW_CFGH_TMPL)
882
883$(CONFIGPM) : $(MINIPERL) ..\config.sh config_h.PL ..\minimod.pl
884 cd .. && miniperl configpm
885 if exist lib\* $(RCOPY) lib\*.* ..\lib\$(NULL)
886 $(XCOPY) ..\*.h $(COREDIR)\*.*
887 $(XCOPY) *.h $(COREDIR)\*.*
888 $(XCOPY) ..\ext\re\re.pm $(LIBDIR)\*.*
889 if exist include\* $(RCOPY) include $(COREDIR)\*.*
890 $(MINIPERL) -I..\lib config_h.PL "INST_VER=$(INST_VER)" \
891 || $(MAKE) /$(MAKEFLAGS) $(CONFIGPM)
f355267c 892 @echo CONFIGPM Done
2986a63f
JH
893
894$(MINIPERL) :
895 $(error)Please build $(MINIPERL) before continuing
896
897$(MINIMOD) : $(MINIPERL) ..\minimod.pl
898 cd .. && miniperl minimod.pl > lib\ExtUtils\Miniperl.pm
899
900..\x2p\a2p$(o) : ..\x2p\a2p.c
901 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
011f1a1a
JH
902 $(C_COMPILER) $(COMPLER_FLAGS) $(NLM_INCLUDES) -I..\x2p $(ADD_LOCDEFS) $(ERROR_FLAG) $*.c -o $@
903 @echo Built $(@)
cf267c36 904
2986a63f
JH
905..\x2p\hash$(o) : ..\x2p\hash.c
906 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
011f1a1a
JH
907 $(C_COMPILER) $(COMPLER_FLAGS) $(NLM_INCLUDES) -I..\x2p $(ADD_LOCDEFS) $(ERROR_FLAG) $*.c -o $@
908 @echo Built $(@)
909
2986a63f
JH
910..\x2p\str$(o) : ..\x2p\str.c
911 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
011f1a1a
JH
912 $(C_COMPILER) $(COMPLER_FLAGS) $(NLM_INCLUDES) -I..\x2p $(ADD_LOCDEFS) $(ERROR_FLAG) $*.c -o $@
913 @echo Built $(@)
2986a63f
JH
914
915..\x2p\util$(o) : ..\x2p\util.c
916 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
011f1a1a
JH
917 $(C_COMPILER) $(COMPLER_FLAGS) $(NLM_INCLUDES) -I..\x2p $(ADD_LOCDEFS) $(ERROR_FLAG) $*.c -o $@
918 @echo Built $(@)
2986a63f
JH
919
920..\x2p\walk$(o) : ..\x2p\walk.c
921 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
011f1a1a
JH
922 $(C_COMPILER) $(COMPLER_FLAGS) $(NLM_INCLUDES) -I..\x2p $(ADD_LOCDEFS) $(ERROR_FLAG) $*.c -o $@
923 @echo Built $(@)
924
2986a63f 925$(X2P) : $(MINIPERL) $(X2P_OBJ)
011f1a1a 926 @echo Building $@..........
2986a63f
JH
927 $(MINIPERL) ..\x2p\find2perl.PL
928 $(MINIPERL) ..\x2p\s2p.PL
011f1a1a
JH
929# Linker definitions and lining come here for CODEWARRIOR
930 @echo $(BASE_IMPORT_FILES) > $*.def
931 @echo MODULE clib >> $*.def
932 @echo Import @perl.imp >> $*.def
2986a63f
JH
933!ifdef USE_XDC
934 $(MPKTOOL) $(XDCFLAGS) $*.xdc
011f1a1a
JH
935 @echo Import Mp.imp >> $*.def
936 @echo xdcdata $*.xdc >> $*.def
2986a63f 937!endif
011f1a1a
JH
938## $(LINK) $(LDFLAGS) $(BS_CFLAGS) -desc "Awk to Perl Translator" $(X2P_OBJ) $(BLDDIR)\clibstuf.obj -commandfile $*.def -o $@
939 $(LINK) $(LDFLAGS) -desc "Awk to Perl Translator" $(X2P_OBJ) $(BLDDIR)\clibstuf.obj -commandfile $*.def -o $@
2986a63f
JH
940
941$(EXTDIR)\DynaLoader\dl_netware.xs: dl_netware.xs
942 copy dl_netware.xs $(EXTDIR)\DynaLoader\dl_netware.xs
943
944HEADERS :
945 @echo . . . . making stdio.h and string.h
cd340a5d 946 @copy << stdio.h >\nul
2986a63f
JH
947
948/*
f355267c 949 * Copyright (C) 2000-01 Novell, Inc. All Rights Reserved.
2986a63f
JH
950 *
951 * You may distribute under the terms of either the GNU General Public
952 * License or the Artistic License, as specified in the README file.
953 *
954 */
955
956/*
957 * FILENAME : stdio.h
958 * DESCRIPTION : Generated header file, do not edit. See makefile.
959 * This header file causes the includer to use clibstuf.h
960 * The purpose of clibstuf is to make sure that Perl, cgi2perl and
011f1a1a 961 * all the perl extension nlm's (*.NLM) use the Novell Netware CLIB versions
2986a63f
JH
962 * of standard functions. This code loads up a whole bunch of function pointers
963 * to point at the standard CLIB functions.
964 * Author : HYAK
965 * Date : January 2001.
966 *
967 */
968
969
970#ifndef __Stdio_H__
971#define __Stdio_H__
972
973
974#include "$(NLMSDKBASE)\INCLUDE\NLM\stdio.h"
975#include "clibsdio.h"
976
977
978#endif // __Stdio_H__
979
980<<
981 @copy stdio.h $(COREDIR)
982
cd340a5d 983 @copy << string.h >\nul
2986a63f
JH
984
985/*
f355267c 986 * Copyright (C) 2000-01 Novell, Inc. All Rights Reserved.
2986a63f
JH
987 *
988 * You may distribute under the terms of either the GNU General Public
989 * License or the Artistic License, as specified in the README file.
990 *
991 */
992
993/*
994 * FILENAME : string.h
995 * DESCRIPTION : Generated header file, do not edit. See makefile.
996 * This header file causes the includer to use clibstuf.h
997 * The purpose of clibstuf is to make sure that Perl, cgi2perl and
011f1a1a 998 * all the perl extension nlm's (*.NLM) use the Novell Netware CLIB versions
2986a63f
JH
999 * of standard functions. This code loads up a whole bunch of function pointers
1000 * to point at the standard CLIB functions.
1001 * Author : HYAK
1002 * Date : January 2001.
1003 *
1004 */
1005
1006
1007#ifndef __String_H__
1008#define __String_H__
1009
1010
1011#include "$(NLMSDKBASE)\INCLUDE\NLM\string.h"
1012#include "clibstr.h"
1013
1014
1015#endif // __String_H__
1016
1017<<
1018 @copy string.h $(COREDIR)
1019
1020
011f1a1a
JH
1021$(NLM_NAME): MESSAGE HEADERS $(BLDDIR)\nul $(NLM_OBJ) $(NEWTARE_OBJ_DEP) $(NEWTARE_CPP_OBJ_DEP) $(PERL_IO_OBJ_DEP) $(DLL_OBJ) \
1022 $(PERLIMPLIB) $(EXT_MAIN_OBJ) $(PERL_TEMP_OBJ) #$(PERL_LIB_OBJ)
2986a63f 1023 @echo======= Linking $@ at $(MAKEDIR)\$(BLDDIR) =======
2986a63f 1024# Linker definitions and lining come here for CODEWARRIOR
011f1a1a
JH
1025 @echo $(BASE_IMPORT_FILES) > $*.def
1026 @echo MODULE clib >> $*.def
1027 @echo MODULE netdb >> $*.def
f355267c
JH
1028!ifdef SECURITYBASE
1029 @echo MODULE nwsec >> $*.def
1030!endif #!ifdef SECURITYBASE
011f1a1a
JH
1031 @echo $(EXPORTS) >> $*.def
1032!ifdef USE_XDC
1033 @echo======= Creating XDC file
1034 @echo Import Mp.imp >> $*.def
2986a63f 1035!ifdef NLM_NAME8
011f1a1a
JH
1036 $(MPKTOOL) $(XDCFLAGS) $(BLDDIR)\$(NLM_NAME8).xdc
1037 @echo xdcdata $(BLDDIR)\$(NLM_NAME8).xdc >> $*.def
2986a63f 1038!else
011f1a1a
JH
1039 $(MPKTOOL) $(XDCFLAGS) $(BLDDIR)\$(NLM_NAME).xdc
1040 @echo xdcdata $(BLDDIR)\$(NLM_NAME).xdc >> $*.def
2986a63f
JH
1041!endif
1042!endif
011f1a1a
JH
1043## $(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)\$@
1044 $(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)\$@
1045 copy splittree.pl ..
1046 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR)
1047 @echo ========Linked $@ ==========
f355267c 1048
2986a63f 1049 @echo======= Finished building $(BUILT).
011f1a1a
JH
1050
1051# Create the debug or release directory if not existing
1052$(BLDDIR)\nul:
1053 @echo . . . . mkdir $(BLDDIR)
1054 @mkdir $(BLDDIR)
1055 @echo '$(BLDDIR)' directory created.
2986a63f
JH
1056
1057MESSAGE:
1058 @echo======= $(MAKE_ACTION)ing $(NLM_NAME) at $(MAKEDIR)\$(BLDDIR) =======
011f1a1a
JH
1059
1060$(PERLIMPLIB): perllib.imp
f355267c
JH
1061# @echo Building $(PERLIMPLIB)...
1062# $(LD) -type library $(NLM_OBJ) $(BLDDIR)\nw5.obj $(BLDDIR)\nwmain.obj $(BLDDIR)\nw5thread.obj $(BLDDIR)\nwtinfo.obj \
1063# $(BLDDIR)\nwutil.obj $(BLDDIR)\interface.obj $(BLDDIR)\perllib.obj $(PERL_IO_OBJ_DEP) $(DLL_OBJ) -o $@
1064# $(XCOPY) $(PERLIMPLIB) $(COREDIR)
1065# @echo $(PERLIMPLIB) Done
011f1a1a
JH
1066
1067perllib.imp : $(MINIPERL) $(CONFIGPM) ..\global.sym ..\pp.sym ..\makedef.pl
1068# $(MINIPERL) -w ..\makedef.pl PLATFORM=netware FILETYPE=def $(ADD_BUILDOPT) \
1069# CCTYPE=$(CCTYPE) > perllib.def
1070 @echo (Perl) > perl.imp
1071 $(MINIPERL) -w ..\makedef.pl PLATFORM=netware FILETYPE=imp $(BS_CFLAGS) $(DEFINES) $(ADD_BUILDOPT) \
1072 CCTYPE=$(CCTYPE) >> perl.imp
1073 copy perl.imp $(COREDIR)
1074
2986a63f 1075$(DLL_OBJ) : $(DYNALOADER).c $(CORE_H) $(EXTDIR)\DynaLoader\dlutils.c
011f1a1a
JH
1076 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
1077 @$(C_COMPILER) $(NLM_INCLUDES) $(COMPLER_FLAGS) $(NLM_INCLUDES) $(ADD_LOCDEFS) $(ERROR_FLAG) -I$(EXTDIR)\DynaLoader \
1078 $(EXTDIR)\DynaLoader\$(*F).c -o $@
1079 @echo $(@) Done.
2986a63f
JH
1080
1081$(DYNALOADER).c : $(MINIPERL) $(EXTDIR)\DynaLoader\dl_netware.xs $(CONFIGPM)
1082 if not exist $(AUTODIR) mkdir $(AUTODIR)
1083 cd $(EXTDIR)\$(*B)
1084 ..\$(MINIPERL) -I..\..\lib $(*B)_pm.PL
1085 ..\$(MINIPERL) -I..\..\lib XSLoader_pm.PL
1086 cd ..\..\netware
1087 $(XCOPY) $(EXTDIR)\$(*B)\$(*B).pm $(LIBDIR)\$(NULL)
1088 $(XCOPY) $(EXTDIR)\$(*B)\XSLoader.pm $(LIBDIR)\$(NULL)
1089 cd $(EXTDIR)\$(*B)
1090 $(XSUBPP) dl_netware.xs > $(*B).c
1091 cd ..\..\netware
011f1a1a 1092 @echo Dynaloader Done
2986a63f 1093
2986a63f
JH
1094
1095$(PERL_IO_OBJ_DEP) : ..\$(*F).c
1096 @echo $(MPKMESSAGE) $(BLDMESG) $@
011f1a1a
JH
1097 $(C_COMPILER) $(COMPLER_FLAGS) $(NLM_INCLUDES) $(ADD_LOCDEFS) $(ERROR_FLAG) ..\$(*F).c -o $@
1098 @echo Built $(@)
2986a63f
JH
1099
1100$(NLM_OBJ) : ..\$(*F).c
1101 @echo $(MPKMESSAGE) $(BLDMESG) $@
011f1a1a
JH
1102 $(C_COMPILER) $(COMPLER_FLAGS) $(NLM_INCLUDES) $(ADD_LOCDEFS) $(ERROR_FLAG) ..\$(*F).c -o $@
1103 @echo Built $(@)
1104
1105
2986a63f
JH
1106$(NEWTARE_OBJ_DEP) : $(NW_H_FILES) $(NW_HOST_H_FILES) $(*F).c
1107 @echo $(MPKMESSAGE) $(BLDMESG) $@
011f1a1a
JH
1108 $(C_COMPILER) $(COMPLER_FLAGS) $(NLM_INCLUDES) $(ADD_LOCDEFS) $(ERROR_FLAG) $(*F).c -o $@
1109 @echo Built $(@)
2986a63f 1110
011f1a1a 1111$(NEWTARE_CPP_OBJ_DEP) : $(NW_H_FILES) $(NW_HOST_H_FILES) $(*F).cpp
2986a63f 1112 @echo $(MPKMESSAGE) $(BLDMESG) $@
011f1a1a
JH
1113 $(C_COMPILER) $(CWCPPFLAGS) $(COMPLER_FLAGS) $(NLM_INCLUDES) $(ADD_LOCDEFS) $(ERROR_FLAG) $(*F).cpp -o $@
1114 @echo Built $(@)
1115
1116$(EXT_MAIN_OBJ) : $(CLIB_H_FILES)
1117 @echo $(MPKMESSAGE) $(BLDMESG) $@
1118 $(C_COMPILER) $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(ERROR_FLAG) $(*F).c -o $@
1119 $(LD) -type library $@ -o $*.lib
1120 @copy $*.lib $(COREDIR)
2986a63f
JH
1121
1122# Delete any files that might have got created during building miniperl.exe
1123# config.sh will definitely be created
1124# COREDIR might have got created
1125.cleanoldfiles :
41504350
JH
1126 -del /f /q $(PERLIMPLIB)
1127 -del /f /q ..\lib\config.pm
1128 -del /f /q ..\config.sh
1129 -del /f /q .\Main.obj
1130 -del /f /q .\Main.lib
2986a63f
JH
1131 -rmdir /s /q $(AUTODIR)
1132 -rmdir /s /q $(COREDIR)
41504350 1133 -del /f /q ..\lib\core
2986a63f
JH
1134
1135.\nwconfig.h : $(NW_CFGH_TMPL)
f355267c 1136 @if exist .\config.h del /f /q .\config.h
2986a63f
JH
1137 copy $(NW_CFGH_TMPL) config.h
1138
1139# REQUIRED WHEN WE INCLUDE CONFIGPM OR REGEN_CONFIG - sgp
1140#..\nwconfig.sh : config.nw5 $(MINIPERL) config_sh.PL
1141# $(MINIPERL) -I..\lib config_sh.PL $(NW_CFG_VARS) config.nw5 > ..\config.sh
1142# @pause
1143# cd ..
4d76e4b4 1144# del /f /q config.sh
2986a63f
JH
1145# rename nwconfig.sh config.sh
1146# cd netware
1147
1148config.nw5 : $(NW_CFGSH_TMPL)
1149 copy $(NW_CFGSH_TMPL) config.nw5
1150
011f1a1a 1151$(SOCKET_NLM): $(NLM_NAME) $(SOCKET).xs
2986a63f 1152 cd $(EXTDIR)\$(*B)
c5635c9e 1153 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1154 $(MAKE)
1155 cd ..\..\netware
1156
011f1a1a 1157$(HOSTNAME_NLM): $(NLM_NAME) $(HOSTNAME).xs
57e69e5f 1158 cd $(EXTDIR)\Sys\$(*B)
c5635c9e 1159 ..\..\..\miniperl -I..\..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
57e69e5f
JH
1160 $(MAKE)
1161 cd ..\..\..\netware
1162
011f1a1a 1163$(FCNTL_NLM):
2986a63f 1164 cd $(EXTDIR)\$(*B)
c5635c9e 1165 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1166 $(MAKE)
1167 cd ..\..\netware
1168
011f1a1a 1169$(IO_NLM):
2986a63f 1170 cd $(EXTDIR)\$(*B)
c5635c9e 1171 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1172 $(MAKE)
1173 cd ..\..\netware
1174
011f1a1a 1175$(OPCODE_NLM):
2986a63f 1176 cd $(EXTDIR)\$(*B)
c5635c9e 1177 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1178 $(MAKE)
1179 cd ..\..\netware
1180
011f1a1a 1181$(B_NLM):
2986a63f 1182 cd $(EXTDIR)\$(*B)
c5635c9e 1183 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1184 $(MAKE)
1185 cd ..\..\netware
1186
011f1a1a 1187$(DUMPER_NLM):
2986a63f 1188 cd $(EXTDIR)\Data\$(*B)
c5635c9e 1189 ..\..\..\miniperl -I..\..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1190 $(MAKE)
1191 cd ..\..\..\netware
1192
011f1a1a 1193$(PEEK_NLM):
2986a63f 1194 cd $(EXTDIR)\Devel\$(*B)
c5635c9e 1195 ..\..\..\miniperl -I..\..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1196 $(MAKE)
1197 cd ..\..\..\netware
1198
011f1a1a 1199$(RE_NLM):
2986a63f 1200 cd $(EXTDIR)\$(*B)
c5635c9e 1201 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1202 $(MAKE)
1203 cd ..\..\netware
1204
011f1a1a 1205$(BYTELOADER_NLM):
2986a63f 1206 cd $(EXTDIR)\$(*B)
c5635c9e 1207 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1208 $(MAKE)
1209 cd ..\..\netware
1210
011f1a1a 1211$(DPROF_NLM):
2986a63f 1212 cd $(EXTDIR)\Devel\$(*B)
c5635c9e 1213 ..\..\..\miniperl -I..\..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1214 $(MAKE)
1215 cd ..\..\..\netware
1216
011f1a1a 1217$(GLOB_NLM):
2986a63f 1218 cd $(EXTDIR)\File\$(*B)
c5635c9e 1219 ..\..\..\miniperl -I..\..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1220 $(MAKE)
1221 cd ..\..\..\netware
1222
011f1a1a 1223$(POSIX_NLM):
2986a63f 1224 cd $(EXTDIR)\$(*B)
c5635c9e 1225 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1226 $(MAKE)
1227 cd ..\..\netware
1228
011f1a1a 1229$(ATTRS_NLM):
2986a63f 1230 cd $(EXTDIR)\$(*B)
c5635c9e 1231 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1232 $(MAKE)
1233 cd ..\..\netware
1234
011f1a1a 1235$(SDBM_FILE_NLM):
2986a63f 1236 cd $(EXTDIR)\$(*B)
c5635c9e 1237 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1238 $(MAKE)
1239 cd ..\..\netware
1240
011f1a1a 1241$(CWD_NLM):
225a5dca 1242 cd $(EXTDIR)\$(*B)
c5635c9e 1243 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
225a5dca
JH
1244 $(MAKE)
1245 cd ..\..\netware
1246
011f1a1a 1247$(STORABLE_NLM):
225a5dca 1248 cd $(EXTDIR)\$(*B)
c5635c9e 1249 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
225a5dca
JH
1250 $(MAKE)
1251 cd ..\..\netware
1252
011f1a1a 1253$(LISTUTIL_NLM):
225a5dca 1254 cd $(EXTDIR)\List\$(*B)
c5635c9e 1255 ..\..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
225a5dca
JH
1256 $(MAKE)
1257 cd ..\..\..\netware
1258
011f1a1a 1259$(MIMEBASE64_NLM):
225a5dca 1260 cd $(EXTDIR)\Mime\$(*B)
c5635c9e 1261 ..\..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
225a5dca
JH
1262 $(MAKE)
1263 cd ..\..\..\netware
1264
83e2e978
JH
1265$(XSAPITEST_NLM):
1266 cd $(EXTDIR)\XS\$(*B)
1267 ..\..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
1268 $(MAKE)
1269 cd ..\..\..\netware
1270
011f1a1a 1271$(XSTYPEMAP_NLM):
225a5dca 1272 cd $(EXTDIR)\XS\$(*B)
c5635c9e 1273 ..\..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
225a5dca
JH
1274 $(MAKE)
1275 cd ..\..\..\netware
1276
011f1a1a 1277$(UNICODENORMALIZE_NLM):
ac5ea531 1278 cd $(EXTDIR)\Unicode\$(*B)
c5635c9e 1279 ..\..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
ac5ea531
JH
1280 $(MAKE)
1281 cd ..\..\..\netware
1282
011f1a1a 1283
2986a63f 1284$(ERRNO_PM_NW):
011f1a1a 1285# @echo Building $@
2986a63f 1286 cd $(EXTDIR)\$(*B)
c5635c9e 1287 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1288 $(MAKE)
1289 cd ..\..\netware
1290
1291$(ECHO_SRC_OBJ): $*.c
1292 @echo $(MPKMESSAGE) $(BLDMESG) $@
011f1a1a
JH
1293 $(C_COMPILER) $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(ERROR_FLAG) $*.c -o $@
1294 @echo Built $(@)
2986a63f
JH
1295
1296$(ECHO_NLM): $(ECHO_SRC_OBJ)
1297 @echo======= Linking $@ =======
011f1a1a
JH
1298# Linker definitions and lining come here for CODEWARRIOR
1299 @echo $(BASE_IMPORT_FILES) > $*.def
1300 @echo MODULE clib >> $*.def
1301 @echo Import @perl.imp >> $*.def
2986a63f
JH
1302!ifdef USE_XDC
1303 $(MPKTOOL) $(XDCFLAGS) $*.xdc
011f1a1a
JH
1304 @echo Import @MP.imp >> $*.def
1305 @echo xdcdata $*.xdc >> $*.def
2986a63f 1306!endif
011f1a1a
JH
1307## $(LINK) $(LDFLAGS) $(BS_CFLAGS) -desc "DOS Echo emulation for Perl testing" $(ECHO_SRC_OBJ) $(BLDDIR)\clibstuf.obj -commandfile $*.def -o $@
1308 $(LINK) $(LDFLAGS) -desc "DOS Echo emulation for Perl testing" $(ECHO_SRC_OBJ) $(BLDDIR)\clibstuf.obj -commandfile $*.def -o $@
2986a63f
JH
1309 @echo======= Linking Complete =======
1310
1311$(TYPE_SRC_OBJ): $*.c
1312 @echo $(MPKMESSAGE) $(BLDMESG) $@
011f1a1a
JH
1313 $(C_COMPILER) $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(ERROR_FLAG) $*.c -o $@
1314 @echo Built $(@)
1315
2986a63f
JH
1316$(TYPE_NLM): $(TYPE_SRC_OBJ)
1317 @echo======= Linking $@ =======
011f1a1a
JH
1318# Linker definitions and lining come here for CODEWARRIOR
1319 @echo $(BASE_IMPORT_FILES) > $*.def
1320 @echo MODULE clib >> $*.def
1321 @echo Import @perl.imp >> $*.def
2986a63f
JH
1322!ifdef USE_XDC
1323 $(MPKTOOL) $(XDCFLAGS) $*.xdc
011f1a1a
JH
1324 @echo Import @MP.imp >> $*.def
1325 @echo xdcdata $*.xdc >> $*.def
2986a63f 1326!endif
011f1a1a
JH
1327## $(LINK) $(LDFLAGS) $(BS_CFLAGS) -desc "DOS Type emulation for Perl testing" $(TYPE_SRC_OBJ) $(BLDDIR)\clibstuf.obj -commandfile $*.def -o $@
1328 $(LINK) $(LDFLAGS) -desc "DOS Type emulation for Perl testing" $(TYPE_SRC_OBJ) $(BLDDIR)\clibstuf.obj -commandfile $*.def -o $@
2986a63f
JH
1329 @echo======= Linking Complete =======
1330
011f1a1a 1331
2986a63f 1332# Build NetWare specific extensions
011f1a1a 1333$(CGI2PERL_NLM):
2986a63f
JH
1334!if "$(NW_EXTNS)"=="yes"
1335 cd $(*B)
011f1a1a 1336 ..\..\miniperl -I..\..\lib Makefile.PL "CCCDLFLAGS=-bool on -lang c++" PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1337 $(MAKE)
1338 cd ..\..\netware
1339!endif
1340
011f1a1a 1341$(PERL2UCS_NLM):
2986a63f 1342!if "$(NW_EXTNS)"=="yes"
1a95e36d 1343 cd $(*B)
011f1a1a 1344 ..\..\miniperl -I..\..\lib Makefile.PL "CCCDLFLAGS=-bool on -lang c++" PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1345 $(MAKE)
1346 cd ..\..\netware
1347!endif
1348
011f1a1a 1349$(UCSExt_NLM):
4d76e4b4 1350!if "$(NW_EXTNS)"=="yes"
1a95e36d 1351 cd $(*B)
011f1a1a 1352 ..\..\miniperl -I..\..\lib Makefile.PL "CCCDLFLAGS=-bool on -lang c++" PERL_CORE=1 INSTALLDIRS=perl
4d76e4b4
JH
1353 $(MAKE)
1354 cd ..\..\netware
1355!endif
1356
2986a63f 1357nwclean:
41504350
JH
1358 -rmdir /s /q $(REL_DIR)
1359 -rmdir /s /q $(DEB_DIR)
1360 @if exist .\stdio.h del /f /q .\stdio.h
1361 @if exist .\string.h del /f /q .\string.h
f355267c 1362 @if exist .\config.h del /f /q .\config.h
41504350
JH
1363 @if exist .\config.nw5 del /f /q .\config.nw5
1364 @if exist .\perl.imp del /f /q .\perl.imp
cf267c36 1365 -del /f /q *.obj *.lib *.def *.sym *.map *.xdc *.err *.nlm
2986a63f 1366 cd testnlm\echo
cf267c36 1367 -del /f /q *.obj *.map *.link *.options *.nlm *.sym *.xdc *.err *.lib *.def *.pdb *.bs
2986a63f 1368 cd ..\type
cf267c36 1369 -del /f /q *.obj *.map *.link *.options *.nlm *.sym *.xdc *.err *.lib *.def *.pdb *.bs
2986a63f
JH
1370 cd ..\..\
1371
1372utils: $(BLDDIR)\$(NLM_NAME8).$(NLM_EXT) $(X2P)
1373 cd ..\utils
1374 $(MAKE) PERL=$(MINIPERL)
1375 cd ..\pod
1376 copy ..\README.amiga .\perlamiga.pod
1377 copy ..\README.cygwin .\perlcygwin.pod
1378 copy ..\README.dos .\perldos.pod
1379 copy ..\README.hpux .\perlhpux.pod
1380# copy ..\README.machten .\perlmachten.pod
1381 copy ..\README.os2 .\perlos2.pod
1382 copy ..\vms\perlvms.pod .\perlvms.pod
1383 copy ..\README.win32 .\perlwin32.pod
1384 copy ..\README.netware .\perlnw5.pod
1385 $(MAKE) -f ..\win32\pod.mak converters
3e7b198a
JH
1386
1387 cd ..\lib
1388 $(MINIPERL) lib_pm.PL
2986a63f
JH
1389 cd ..\netware
1390 $(MINIPERL) $(PL2BAT) $(UTILS)
1391
1392distclean: clean nwclean
41504350 1393 -del /f /q $(PERLIMPLIB) ..\miniperl.lib $(MINIMOD)
41504350
JH
1394 -del /f /q $(EXTENSION_NPM)
1395 -del /f /q $(EXTENSION_C) $(DYNALOADER).c $(ERRNO).pm
1396 -del /f /q $(EXTDIR)\DynaLoader\dl_netware.xs
f355267c
JH
1397 -del /f /q $(EXTDIR)\DynaLoader\dl_win32.xs
1398 -del /f /q $(EXTDIR)\DynaLoader\DynaLoader.pm
1399 -del /f /q $(EXTDIR)\DynaLoader\XSLoader.pm
41504350
JH
1400 -del /f /q $(LIBDIR)\.exists $(LIBDIR)\attrs.pm $(LIBDIR)\DynaLoader.pm
1401 -del /f /q $(LIBDIR)\XSLoader.pm
1402 -del /f /q $(LIBDIR)\Fcntl.pm $(LIBDIR)\IO.pm $(LIBDIR)\Opcode.pm
1403 -del /f /q $(LIBDIR)\ops.pm $(LIBDIR)\Safe.pm
1404 -del /f /q $(LIBDIR)\SDBM_File.pm $(LIBDIR)\Socket.pm $(LIBDIR)\POSIX.pm
1405 -del /f /q $(LIBDIR)\B.pm $(LIBDIR)\O.pm $(LIBDIR)\re.pm
1406 -del /f /q $(LIBDIR)\Data\Dumper.pm $(LIBDIR)\ByteLoader.pm
1407 -del /f /q $(LIBDIR)\Devel\Peek.pm $(LIBDIR)\Devel\DProf.pm
1408 -del /f /q $(LIBDIR)\File\Glob.pm
1409 -del /f /q $(LIBDIR)\Unicode\Normalize.pm
1410 -rmdir /s /q $(LIBDIR)\IO
41504350
JH
1411 -rmdir /s /q $(LIBDIR)\B
1412 -rmdir /s /q $(LIBDIR)\Data
1413 -del /f /q $(PODDIR)\*.html
1414 -del /f /q $(PODDIR)\*.bat
2986a63f 1415 cd ..\utils
41504350
JH
1416 -del /f /q h2ph splain perlbug pl2pm c2ph h2xs perldoc dprofpp
1417 -del /f /q *.bat
2986a63f
JH
1418 cd ..\netware
1419 cd ..\x2p
41504350 1420 -del /f /q find2perl s2p
f355267c 1421 -del /f /q *.bat *.exe
41504350 1422 -del /f /q *.obj *.map *.link *.xdc *.err
2986a63f 1423 cd ..\netware
41504350
JH
1424 -del /f /q ..\config.sh ..\splittree.pl dlutils.c config.h.new
1425 -del /f /q $(CONFIGPM)
1426 -del /f /q bin\*.bat
2986a63f 1427 cd $(EXTDIR)
cf267c36 1428 -del /s /q /f *.lib *.def *.map *.pdb *.bs Makefile *$(o) pm_to_blib *.xdc *.err *.obj *.sym
2986a63f
JH
1429 cd ..\netware
1430!if "$(NW_EXTNS)"=="yes"
1431 cd cgi2perl
cf267c36 1432 -del /f /q *.obj *.bs Makefile *$(o) *.c pm_to_blib *.xdc *.err *.sym *.map *.def *.lib *.pdb
2986a63f 1433 cd ..
1a95e36d 1434 cd Perl2UCS
cf267c36 1435 -del /f /q *.obj *.bs Makefile *$(o) *.c pm_to_blib *.xdc *.err *.sym *.map *.def *.lib *.pdb
9219c8de 1436 cd ..\..\netware
1a95e36d 1437 cd UCSExt
4d76e4b4
JH
1438 -del /f /q *.obj *.bs Makefile *$(o) *.c pm_to_blib *.xdc *.err *.sym *.map *.c
1439 cd ..\..\netware
2986a63f 1440!endif
41504350
JH
1441 -rmdir /s /q $(AUTODIR)
1442 -rmdir /s /q $(COREDIR)
1443 -del /f /q ..\config.sh
2986a63f
JH
1444
1445installwin:
1446 $(MINIPERL) -I..\lib ..\installperl
1447
f355267c
JH
1448install : utils installwin perlimp
1449
1450perlimp :
1451 copy perl.imp $(INST_COREDIR)
2986a63f
JH
1452
1453installnw:
1454 $(MINIPERL) -I..\lib ..\installperl -netware
1455
225a5dca
JH
1456install_tests :
1457 cd ..\t
1458 xcopy /f /r /i /s /d *.* $(INST_NW_TOP2)\scripts\t
1459 cd ..\lib
1460 xcopy /f /r /i /s /d *.t $(INST_NW_TOP2)\scripts\t\lib
1461 cd ..\ext
1462 xcopy /f /r /i /s /d *.t $(INST_NW_TOP2)\scripts\t\ext
32ce01bc
JH
1463 cd ..\netware\t
1464 xcopy /f /r /i /s /d *.pl $(INST_NW_TOP2)\scripts\t
1465 cd ..
225a5dca
JH
1466
1467nwinstall: utils installnw install_tests
2986a63f
JH
1468
1469inst_lib : $(CONFIGPM)
1470 copy ..\win32\splittree.pl ..
1471 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR)
1472 $(RCOPY) ..\lib $(INST_LIB)\*.*
1473
1474clean :
1475 -@erase miniperlmain$(o)
1476 -@erase /f config.h
1477 -@erase $(DLL_OBJ)
1478 -@erase ..\*$(o) ..\*.lib ..\*.exp *$(o) *.lib *.exp *.res
1479 -@erase ..\t\*.exe ..\t\*.dll ..\t\*.bat
1480 -@erase ..\x2p\*.nlm ..\x2p\*.bat