This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
bump perl version number to 5.15.1
[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 -
507b4ec1 89MODULE_DESC = "Perl 5.15.1 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 314POSIX_NLM = $(AUTODIR)\POSIX\POSIX.NLM
48462a74 315ATTRIBUTES_NLM = $(AUTODIR)\attributes\attributes.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
011f1a1a
JH
321GLOB_NLM = $(AUTODIR)\File\Glob\Glob.NLM
322HOSTNAME_NLM = $(AUTODIR)\Sys\Hostname\Hostname.NLM
323CWD_NLM = $(EXTDIR)\Cwd\Cwd.NLM
324STORABLE_NLM = $(EXTDIR)\Storable\Storable.NLM
325LISTUTIL_NLM = $(EXTDIR)\List\Util.NLM
326MIMEBASE64_NLM = $(EXTDIR)\MIME\Base64\Base64.NLM
83e2e978 327XSAPITEST_NLM = $(EXTDIR)\XS\APItest\APItest.NLM
011f1a1a
JH
328XSTYPEMAP_NLM = $(EXTDIR)\XS\Typemap\Typemap.NLM
329UNICODENORMALIZE_NLM = $(EXTDIR)\Unicode\Normalize\Normalize.NLM
0a2b78c5 330UNICODECOLLATE_NLM = $(EXTDIR)\Unicode\Collate\Collate.NLM
011f1a1a
JH
331
332EXTENSION_NLM = \
f355267c
JH
333 $(FCNTL_NLM) \
334 $(BYTELOADER_NLM) \
335 $(IO_NLM) \
336 $(SOCKET_NLM) \
337 $(OPCODE_NLM) \
338 $(B_NLM) \
48462a74 339 $(ATTRIBUTES_NLM) \
f355267c 340 $(SDBM_FILE_NLM) \
011f1a1a 341 $(POSIX_NLM) \
011f1a1a
JH
342 $(DUMPER_NLM) \
343 $(GLOB_NLM) \
344 $(PEEK_NLM) \
345 $(RE_NLM) \
011f1a1a
JH
346 $(HOSTNAME_NLM) \
347 $(CWD_NLM) \
348 $(STORABLE_NLM) \
349 $(LISTUTIL_NLM) \
350 $(MIMEBASE64_NLM) \
83e2e978 351 $(XSAPITEST_NLM) \
011f1a1a 352 $(XSTYPEMAP_NLM) \
f355267c
JH
353 $(UNICODENORMALIZE_NLM) \
354 $(FILTER_NLM)
011f1a1a 355
f355267c 356# Begin - Following is required to build NetWare specific extensions CGI2Perl, Perl2UCS and UCSExt
011f1a1a 357CGI2PERL = CGI2Perl\CGI2Perl
1a95e36d
JH
358PERL2UCS = Perl2UCS\Perl2UCS
359UCSExt = Perl2UCS\UCSExt
011f1a1a
JH
360
361CGI2PERL_NLM = \CGI2Perl\CGI2Perl.NLM
362PERL2UCS_NLM = $(AUTODIR)\Perl2UCS\Perl2UCS.NLM
363UCSExt_NLM = $(AUTODIR)\UCSExt\UCSExt.NLM
2986a63f
JH
364
365NETWARE_EXTNS = \
011f1a1a 366 $(CGI2PERL_NLM) \
011f1a1a 367 $(PERL2UCS_NLM) \
f355267c 368 $(UCSExt_NLM)
011f1a1a 369# End
4d76e4b4 370
f355267c 371
2986a63f
JH
372ECHO_SRC = TestNLM\echo\echo.c
373TYPE_SRC = TestNLM\type\type.c
374ECHO_SRC_OBJ = $(ECHO_SRC:.c=.obj)
375TYPE_SRC_OBJ = $(TYPE_SRC:.c=.obj)
376ECHO_NLM = TestNLM\echo\echo.nlm
377TYPE_NLM = TestNLM\type\type.nlm
378
379TEST_NLMS = \
380 $(ECHO_NLM) \
381 $(TYPE_NLM) \
382
2986a63f
JH
383
384!ifndef SCREEN
385SCREEN = 'none'
386!endif
387
388!ifndef NLM_DESCRIPTION
011f1a1a 389NLM_DESCRIPTION = $(NLM_NAME8) for NetWare
2986a63f
JH
390!endif
391
392!ifndef NLM_VERSION
011f1a1a 393NLM_VERSION = 3.1.0
2986a63f
JH
394!endif
395
396!ifndef NLM_EXT
011f1a1a 397NLM_EXT = NLM
2986a63f
JH
398!endif
399
400!ifndef BUILT
401BUILT = $(BLDDIR)\$(NLM_NAME8).$(NLM_EXT)
402!endif
403
404!ifndef BASE_IMPORT_FILES
011f1a1a 405BASE_IMPORT_FILES = Import @$(NLMIMPORTS)\clib.imp, @$(NLMIMPORTS)\nlmlib.imp, @$(NLMIMPORTS)\threads.imp, @$(NLMIMPORTS)\nit.imp, @$(NLMIMPORTS)\socklib.imp, \
f355267c 406@$(NLMIMPORTS)\fpsm.imp, @$(NLMIMPORTS)\lib0.imp
2986a63f
JH
407!endif
408
f355267c
JH
409!ifdef SECURITYBASE
410BASE_IMPORT_FILES = $(BASE_IMPORT_FILES), @$(SECURITY_IMPORTS)\nwsec.imp
411!endif # !ifdef SECURITYBASE
412
2986a63f
JH
413!ifdef USE_MPK
414BASE_IMPORT_FILES = $(BASE_IMPORT_FILES), @$(MPKBASE)\import\mpkorg.imp
415!endif
416
417!ifndef BASE_IMPORT_FNS
418BASE_IMPORT_FNS = Import ImportSymbol, GetSystemConsoleScreen, LoadModule
419!endif
f355267c
JH
420
421!ifdef CODEWAR
422NWLIBPATH =
423LIBPATH386 =
424LIBPATH =
425!else # !ifdef CODEWAR
426!error Please define the tools base directory before proceeding
427!endif # !ifdef CODEWAR
428
2986a63f 429!ifndef BASE_LIBRARIES
f355267c
JH
430!ifdef WATCOM
431BASE_LIBRARIES = Library plib3s.lib, math3s.lib, clib3s.lib
432!endif # !ifdef WATCOM
011f1a1a 433!ifdef CODEWAR
2986a63f 434BASE_LIBRARIES =
f355267c
JH
435!endif # !ifdef CODEWAR
436!endif # !ifndef BASE_LIBRARIES
437
438
439COPYRIGHT = Copyright (C) 2000-01, 2002 Novell, Inc. All Rights Reserved.
2986a63f
JH
440
441EXPORTS = Export @perl.imp
442
443#
444# Set these to wherever you want "nmake install" to put your
445# newly built perl.
446#
011f1a1a 447INST_DRV = C:
2986a63f
JH
448INST_TOP = $(INST_DRV)\perl
449
450INST_NW_DRV = i:
451INST_NW_VOL = sys:
452INST_NW_TOP1 = $(INST_NW_VOL)\perl
453INST_NW_TOP2 = $(INST_NW_DRV)\perl
454#INST_NW_VER = \5.6.1
455
456#
457# Comment this out if you DON'T want your perl installation to be versioned.
458# This means that the new installation will overwrite any files from the
459# old installation at the same INST_TOP location. Leaving it enabled is
460# the safest route, as perl adds the extra version directory to all the
461# locations it installs files to. If you disable it, an alternative
462# versioned installation can be obtained by setting INST_TOP above to a
463# path that includes an arbitrary version string.
464#
507b4ec1 465INST_VER = \5.15.1
2986a63f
JH
466
467#
468# Comment this out if you DON'T want your perl installation to have
469# architecture specific components. This means that architecture-
470# specific files will be installed along with the architecture-neutral
471# files. Leaving it enabled is safer and more flexible, in case you
472# want to build multiple flavors of perl and install them together in
473# the same location. Commenting it out gives you a simpler
474# installation that is easier to understand for beginners.
475#
476INST_ARCH = \$(ARCHNAME)
477
478#
479# uncomment to enable multiple interpreters. This is need for fork()
480# emulation.
481#
011f1a1a 482
2986a63f
JH
483USE_MULTI = define
484
485#
486# Beginnings of interpreter cloning/threads; still very incomplete.
487# This should be enabled to get the fork() emulation. This needs
488# USE_MULTI as well.
489#
490USE_ITHREADS = define
491
492#
493# uncomment to enable the implicit "host" layer for all system calls
494# made by perl. This needs USE_MULTI above. This is also needed to
495# get fork().
496#
497USE_IMP_SYS = define
498
499# uncomment this to enable the experimental PerlIO I/O subsystem
500# else USE_STDIO will be defined.
501#USE_PERLIO = define
502#USE_STDIO = define
2986a63f 503
2986a63f
JH
504# For now let this be here
505#
506#CRYPT_SRC = fcrypt.c
507
508# For now let this be here
509#
510#CRYPT_LIB = fcrypt.lib
511
512#
513# set this if you wish to use perl's malloc
514# WARNING: Turning this on/off WILL break binary compatibility with extensions
515# you may have compiled with/without it. Be prepared to recompile all
516# extensions if you change the default. Currently, this cannot be enabled
517# if you ask for USE_IMP_SYS above.
518#
519#PERL_MALLOC = define
520
521#
522# set this to your email address (perl will guess a value from
523# from your loginname and your hostname, which may not be right)
524#
525#EMAIL =
526
527##
528## Build configuration ends.
529##
530
531##################### CHANGE THESE ONLY IF YOU MUST #####################
532
533!IF "$(CRYPT_SRC)$(CRYPT_LIB)" == ""
534D_CRYPT = undef
535!ELSE
536D_CRYPT = define
537CRYPT_FLAG = -DHAVE_DES_FCRYPT
538!ENDIF
539
2986a63f
JH
540!IF "$(PERL_MALLOC)" == ""
541PERL_MALLOC = undef
542!ENDIF
543
2986a63f
JH
544!IF "$(USE_IMP_SYS)" == "define"
545PERL_MALLOC = undef
546!ENDIF
547
548!IF "$(USE_MULTI)" == ""
549USE_MULTI = undef
550!ENDIF
551
2986a63f
JH
552!IF "$(USE_ITHREADS)" == ""
553USE_ITHREADS = undef
554!ENDIF
555
556!IF "$(USE_IMP_SYS)" == ""
557USE_IMP_SYS = undef
558!ENDIF
559
560!IF "$(USE_PERLCRT)" == ""
561USE_PERLCRT = undef
562!ENDIF
563
3db8f154 564!IF "$(USE_IMP_SYS)$(USE_MULTI)" == "defineundef"
2986a63f
JH
565USE_MULTI = define
566!ENDIF
567
acfe0abc 568!IF "$(USE_ITHREADS)$(USE_MULTI)" == "defineundef"
2986a63f 569USE_MULTI = define
2986a63f
JH
570!ENDIF
571
3db8f154 572!IF "$(USE_MULTI)" != "undef"
2986a63f
JH
573BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_CONTEXT
574!ENDIF
575
576!IF "$(USE_IMP_SYS)" != "undef"
577BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_SYS
578!ENDIF
579
580!IF "$(PROCESSOR_ARCHITECTURE)" == ""
581PROCESSOR_ARCHITECTURE = x86
582!ENDIF
583
2986a63f
JH
584!IF "$(USE_MULTI)" == "define"
585ARCHNAME = NetWare-$(PROCESSOR_ARCHITECTURE)-multi
586!ELSE
587ARCHNAME = NetWare-$(PROCESSOR_ARCHITECTURE)
588!ENDIF
2986a63f 589
3db8f154 590!IF "$(USE_MULTI)" != "undef"
2986a63f
JH
591ADD_BUILDOPT = $(ADD_BUILDOPT) -DPERL_IMPLICIT_CONTEXT
592!ENDIF
593
594!IF "$(USE_IMP_SYS)" != "undef"
595ADD_BUILDOPT = $(ADD_BUILDOPT) -DPERL_IMPLICIT_SYS
596!ENDIF
597
598!IF "$(USE_ITHREADS)" == "define"
599ARCHNAME = $(ARCHNAME)-thread
600!ENDIF
601
602!IF "$(USE_PERLIO)" == "define"
603USE_STDIO = undef
604ADD_BUILDOPT = $(ADD_BUILDOPT) -DUSE_PERLIO
605ARCHNAME = $(ARCHNAME)-perlio
606!ELSE
607#USE_STDIO = define
608#ADD_BUILDOPT = $(ADD_BUILDOPT) -DUSE_STDIO
609!ENDIF
610
011f1a1a 611
2986a63f
JH
612ARCHDIR = ..\lib\$(ARCHNAME)
613COREDIR = ..\lib\CORE
614AUTODIR = ..\lib\auto
615LIBDIR = ..\lib
616EXTDIR = ..\ext
617PODDIR = ..\pod
618EXTUTILSDIR = $(LIBDIR)\ExtUtils
619
620#
621INST_SCRIPT = $(INST_TOP)$(INST_VER)\bin
622INST_BIN = $(INST_SCRIPT)$(INST_ARCH)
623INST_LIB = $(INST_TOP)$(INST_VER)\lib
624INST_ARCHLIB = $(INST_LIB)$(INST_ARCH)
625INST_COREDIR = $(INST_ARCHLIB)\CORE
626INST_POD = $(INST_LIB)\pod
627INST_HTML = $(INST_POD)\html
628
629#
630# Options
631#
632
2986a63f
JH
633OBJOUT_FLAG = -Fo
634EXEOUT_FLAG = -Fe
635
636
637#################### do not edit below this line #######################
638############# NO USER-SERVICEABLE PARTS BEYOND THIS POINT ##############
639
640o = .obj
641
642#
643# Rules
644#
645
011f1a1a 646.SUFFIXES : .c $(o) .nlm .lib .NLM
2986a63f
JH
647
648
649#
650# various targets
651PERLIMPLIB = ..\perl.lib
652
653MINIPERL = ..\miniperl.exe
654CONFIGPM = ..\lib\Config.pm
655MINIMOD = ..\lib\ExtUtils\Miniperl.pm
656X2P = ..\x2p\a2p.nlm
657
658PL2BAT = ..\win32\bin\pl2bat.pl
659
660UTILS = \
661 ..\utils\h2ph \
662 ..\utils\splain \
2986a63f
JH
663 ..\utils\perlbug \
664 ..\utils\pl2pm \
665 ..\utils\c2ph \
666 ..\utils\h2xs \
667 ..\utils\perldoc \
2986a63f
JH
668 ..\pod\pod2html \
669 ..\pod\pod2latex \
670 ..\pod\pod2man \
671 ..\pod\pod2text \
672 ..\pod\pod2usage \
673 ..\pod\podchecker \
674 ..\pod\podselect \
675 ..\x2p\find2perl \
676 ..\x2p\s2p
677
678MAKE = nmake -nologo
011f1a1a 679#NMAKE = $(C_COMPILER) $(INCLUDE) $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(ERROR_FLAG) $(*F).c -o $@
2986a63f
JH
680
681XCOPY = xcopy /f /r /i /d
682RCOPY = xcopy /f /r /i /e /d
683NOOP = @echo
684NULL =
685
686#
687# filenames given to xsubpp must have forward slashes (since it puts
688# full pathnames in #line strings)
f355267c 689XSUBPP = ..\$(MINIPERL) -I..\..\lib ..\$(EXTUTILSDIR)\xsubpp -C++ -prototypes
2986a63f
JH
690
691MICROCORE_SRC = \
225a5dca
JH
692 ..\av.c \
693 ..\deb.c \
694 ..\doio.c \
695 ..\doop.c \
696 ..\dump.c \
2986a63f 697 ..\globals.c \
225a5dca 698 ..\gv.c \
e1a479c5 699 ..\mro.c \
225a5dca 700 ..\hv.c \
26ea9e12 701 ..\keywords.c \
225a5dca 702 ..\locale.c \
7ee2227d 703 ..\mathoms.c \
225a5dca 704 ..\mg.c \
625b117d 705 ..\numeric.c \
225a5dca
JH
706 ..\op.c \
707 ..\perl.c \
2986a63f 708 ..\perlapi.c \
225a5dca
JH
709 ..\perly.c \
710 ..\pp.c \
711 ..\pp_ctl.c \
712 ..\pp_hot.c \
625b117d 713 ..\pp_pack.c \
84d4ea48 714 ..\pp_sort.c \
225a5dca 715 ..\pp_sys.c \
10bc17b6 716 ..\reentr.c \
2986a63f
JH
717 ..\regcomp.c \
718 ..\regexec.c \
225a5dca
JH
719 ..\run.c \
720 ..\scope.c \
721 ..\sv.c \
722 ..\taint.c \
723 ..\toke.c \
2986a63f 724 ..\universal.c \
225a5dca 725 ..\utf8.c \
48462a74 726 ..\util.c
2986a63f
JH
727
728#EXTRACORE_SRC = $(EXTRACORE_SRC) perllib.c
729
730!IF "$(PERL_MALLOC)" == "define"
731EXTRACORE_SRC = $(EXTRACORE_SRC) ..\malloc.c
732!ENDIF
733
2986a63f 734#EXTRACORE_SRC = $(EXTRACORE_SRC) ..\perlio.c
2986a63f
JH
735
736!IF "$(CRYPT_SRC)" != ""
737NW_SRC = $(NW_SRC) .\$(CRYPT_SRC)
738!ENDIF
739
740DLL_SRC = $(DYNALOADER).c
741
742X2P_SRC = \
743 ..\x2p\a2p.c \
744 ..\x2p\hash.c \
745 ..\x2p\str.c \
746 ..\x2p\util.c \
747 ..\x2p\walk.c
748
749CORE_NOCFG_H = \
750 ..\av.h \
751 ..\cop.h \
752 ..\cv.h \
753 ..\dosish.h \
754 ..\embed.h \
755 ..\form.h \
756 ..\gv.h \
757 ..\handy.h \
758 ..\hv.h \
759 ..\iperlsys.h \
760 ..\mg.h \
761 ..\nostdio.h \
762 ..\op.h \
763 ..\opcode.h \
764 ..\perl.h \
765 ..\perlapi.h \
766 ..\perlsdio.h \
767 ..\perlsfio.h \
768 ..\perly.h \
769 ..\pp.h \
770 ..\proto.h \
771 ..\regexp.h \
772 ..\scope.h \
773 ..\sv.h \
774 ..\thread.h \
775 ..\unixish.h \
776 ..\utf8.h \
777 ..\util.h \
778 ..\warnings.h \
779 ..\XSUB.h \
780 ..\EXTERN.h \
781 ..\perlvars.h \
907b3e23 782 ..\intrpvar.h
011f1a1a 783
2986a63f
JH
784CORE_H = $(CORE_NOCFG_H) .\config.h
785
786DLL_OBJ = $(DLL_SRC:.c=.obj)
787X2P_OBJ = $(X2P_SRC:.c=.obj)
788
48462a74 789DYNAMIC_EXT = Socket IO Fcntl Opcode SDBM_File POSIX attributes B re \
c9dab4e9 790 Data/Dumper Devel/Peek ByteLoader File/Glob \
83f8bb56 791 Storable/Storable List/Util MIME/Base64/Base64 XS/APItest/APItest \
0a2b78c5 792 XS/Typemap/Typemap Unicode/Collate/Collate Unicode/Normalize/Normalize Sys/Hostname
57e69e5f 793
2986a63f
JH
794STATIC_EXT = DynaLoader
795NONXS_EXT = Errno
796
011f1a1a
JH
797DYNALOADER = $(EXTDIR)\DynaLoader\DynaLoader
798SOCKET = $(EXTDIR)\Socket\Socket
799FCNTL = $(EXTDIR)\Fcntl\Fcntl
800OPCODE = $(EXTDIR)\Opcode\Opcode
801SDBM_FILE = $(EXTDIR)\SDBM_File\SDBM_File
2986a63f 802IO = $(EXTDIR)\IO\IO
011f1a1a 803POSIX = $(EXTDIR)\POSIX\POSIX
48462a74 804ATTRIBUTES = $(EXTDIR)\attributes\attributes
2986a63f
JH
805B = $(EXTDIR)\B\B
806RE = $(EXTDIR)\re\re
011f1a1a
JH
807DUMPER = $(EXTDIR)\Data\Dumper\Dumper
808ERRNO = $(EXTDIR)\Errno\Errno
809PEEK = $(EXTDIR)\Devel\Peek\Peek
810BYTELOADER = $(EXTDIR)\ByteLoader\ByteLoader
011f1a1a
JH
811GLOB = $(EXTDIR)\File\Glob\Glob
812HOSTNAME = $(EXTDIR)\Sys\Hostname\Hostname
225a5dca 813CWD = $(EXTDIR)\Cwd\Cwd
ac5ea531
JH
814STORABLE = $(EXTDIR)\Storable\Storable
815LISTUTIL = $(EXTDIR)\List\Util
816MIMEBASE64 = $(EXTDIR)\MIME\Base64\Base64
83e2e978 817XSAPITEST = $(EXTDIR)\XS\APItest\APItest
ac5ea531
JH
818XSTYPEMAP = $(EXTDIR)\XS\Typemap\Typemap
819UNICODENORMALIZE = $(EXTDIR)\Unicode\Normalize\Normalize
0a2b78c5 820UNICODECOLLATE = $(EXTDIR)\Unicode\Collate\Collate
2986a63f 821
57e69e5f
JH
822ERRNO_PM_NW = $(LIBDIR)\Errno.pm
823
011f1a1a 824EXTENSION_C = \
2986a63f
JH
825 $(SOCKET).c \
826 $(FCNTL).c \
827 $(OPCODE).c \
828 $(SDBM_FILE).c \
829 $(IO).c \
830 $(POSIX).c \
48462a74 831 $(ATTRIBUTES).c \
2986a63f
JH
832 $(RE).c \
833 $(DUMPER).c \
834 $(PEEK).c \
835 $(B).c \
836 $(BYTELOADER).c \
225a5dca 837 $(GLOB).c \
57e69e5f 838 $(HOSTNAME).c \
225a5dca
JH
839 $(CWD).c \
840 $(STORABLE).c \
841 $(LISTUTIL).c \
842 $(MIMEBASE64).c \
83e2e978 843 $(XSAPITEST).c \
225a5dca 844 $(XSTYPEMAP).c \
ac5ea531 845 $(UNICODENORMALIZE).c \
2986a63f 846
57e69e5f
JH
847EXTENSION_NPM = \
848 $(ERRNO_PM_NW) \
849
2986a63f
JH
850POD2HTML = $(PODDIR)\pod2html
851POD2MAN = $(PODDIR)\pod2man
852POD2LATEX = $(PODDIR)\pod2latex
853POD2TEXT = $(PODDIR)\pod2text
854
855#
856# Top targets
857#
858
f355267c 859all : .cleanoldfiles .\nwconfig.h $(CONFIGPM) $(NLM_NAME) $(EXTENSION_NLM) $(EXTENSION_NPM) $(TEST_NLMS) $(NETWARE_EXTNS)
2986a63f
JH
860
861#------------------------------------------------------------
862
863..\config.sh : config.nw5 $(MINIPERL) config_sh.PL
864 $(MINIPERL) -I..\lib config_sh.PL $(NW_CFG_VARS) config.nw5 > ..\config.sh
865
866# this target is for when changes to the main config.sh happen
867# edit config.{b,v,g,w}c and make this target once for each supported
868# compiler (e.g. `dmake CCTYPE=BORLAND regen_config_h`)
869regen_config_h:
870 perl config_sh.PL $(NW_CFG_VARS) $(NW_CFGSH_TMPL) > ..\config.sh
871 cd ..
41504350 872 -del /f /q perl.exe
2986a63f
JH
873 perl configpm
874 cd netware
41504350 875 -del /f /q $(NW_CFGH_TMPL)
2986a63f
JH
876 -mkdir $(COREDIR)
877 -perl -I..\lib config_h.PL "INST_VER=$(INST_VER)"
878 rename config.h $(NW_CFGH_TMPL)
879
880$(CONFIGPM) : $(MINIPERL) ..\config.sh config_h.PL ..\minimod.pl
881 cd .. && miniperl configpm
882 if exist lib\* $(RCOPY) lib\*.* ..\lib\$(NULL)
883 $(XCOPY) ..\*.h $(COREDIR)\*.*
884 $(XCOPY) *.h $(COREDIR)\*.*
885 $(XCOPY) ..\ext\re\re.pm $(LIBDIR)\*.*
886 if exist include\* $(RCOPY) include $(COREDIR)\*.*
887 $(MINIPERL) -I..\lib config_h.PL "INST_VER=$(INST_VER)" \
888 || $(MAKE) /$(MAKEFLAGS) $(CONFIGPM)
f355267c 889 @echo CONFIGPM Done
2986a63f
JH
890
891$(MINIPERL) :
892 $(error)Please build $(MINIPERL) before continuing
893
894$(MINIMOD) : $(MINIPERL) ..\minimod.pl
895 cd .. && miniperl minimod.pl > lib\ExtUtils\Miniperl.pm
896
897..\x2p\a2p$(o) : ..\x2p\a2p.c
898 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
011f1a1a
JH
899 $(C_COMPILER) $(COMPLER_FLAGS) $(NLM_INCLUDES) -I..\x2p $(ADD_LOCDEFS) $(ERROR_FLAG) $*.c -o $@
900 @echo Built $(@)
cf267c36 901
2986a63f
JH
902..\x2p\hash$(o) : ..\x2p\hash.c
903 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
011f1a1a
JH
904 $(C_COMPILER) $(COMPLER_FLAGS) $(NLM_INCLUDES) -I..\x2p $(ADD_LOCDEFS) $(ERROR_FLAG) $*.c -o $@
905 @echo Built $(@)
906
2986a63f
JH
907..\x2p\str$(o) : ..\x2p\str.c
908 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
011f1a1a
JH
909 $(C_COMPILER) $(COMPLER_FLAGS) $(NLM_INCLUDES) -I..\x2p $(ADD_LOCDEFS) $(ERROR_FLAG) $*.c -o $@
910 @echo Built $(@)
2986a63f
JH
911
912..\x2p\util$(o) : ..\x2p\util.c
913 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
011f1a1a
JH
914 $(C_COMPILER) $(COMPLER_FLAGS) $(NLM_INCLUDES) -I..\x2p $(ADD_LOCDEFS) $(ERROR_FLAG) $*.c -o $@
915 @echo Built $(@)
2986a63f
JH
916
917..\x2p\walk$(o) : ..\x2p\walk.c
918 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
011f1a1a
JH
919 $(C_COMPILER) $(COMPLER_FLAGS) $(NLM_INCLUDES) -I..\x2p $(ADD_LOCDEFS) $(ERROR_FLAG) $*.c -o $@
920 @echo Built $(@)
921
2986a63f 922$(X2P) : $(MINIPERL) $(X2P_OBJ)
011f1a1a 923 @echo Building $@..........
2986a63f
JH
924 $(MINIPERL) ..\x2p\find2perl.PL
925 $(MINIPERL) ..\x2p\s2p.PL
011f1a1a
JH
926# Linker definitions and lining come here for CODEWARRIOR
927 @echo $(BASE_IMPORT_FILES) > $*.def
928 @echo MODULE clib >> $*.def
929 @echo Import @perl.imp >> $*.def
2986a63f
JH
930!ifdef USE_XDC
931 $(MPKTOOL) $(XDCFLAGS) $*.xdc
011f1a1a
JH
932 @echo Import Mp.imp >> $*.def
933 @echo xdcdata $*.xdc >> $*.def
2986a63f 934!endif
011f1a1a
JH
935## $(LINK) $(LDFLAGS) $(BS_CFLAGS) -desc "Awk to Perl Translator" $(X2P_OBJ) $(BLDDIR)\clibstuf.obj -commandfile $*.def -o $@
936 $(LINK) $(LDFLAGS) -desc "Awk to Perl Translator" $(X2P_OBJ) $(BLDDIR)\clibstuf.obj -commandfile $*.def -o $@
2986a63f
JH
937
938$(EXTDIR)\DynaLoader\dl_netware.xs: dl_netware.xs
939 copy dl_netware.xs $(EXTDIR)\DynaLoader\dl_netware.xs
940
941HEADERS :
942 @echo . . . . making stdio.h and string.h
cd340a5d 943 @copy << stdio.h >\nul
2986a63f
JH
944
945/*
f355267c 946 * Copyright (C) 2000-01 Novell, Inc. All Rights Reserved.
2986a63f
JH
947 *
948 * You may distribute under the terms of either the GNU General Public
949 * License or the Artistic License, as specified in the README file.
950 *
951 */
952
953/*
954 * FILENAME : stdio.h
955 * DESCRIPTION : Generated header file, do not edit. See makefile.
956 * This header file causes the includer to use clibstuf.h
957 * The purpose of clibstuf is to make sure that Perl, cgi2perl and
011f1a1a 958 * all the perl extension nlm's (*.NLM) use the Novell Netware CLIB versions
2986a63f
JH
959 * of standard functions. This code loads up a whole bunch of function pointers
960 * to point at the standard CLIB functions.
961 * Author : HYAK
962 * Date : January 2001.
963 *
964 */
965
966
967#ifndef __Stdio_H__
968#define __Stdio_H__
969
970
971#include "$(NLMSDKBASE)\INCLUDE\NLM\stdio.h"
972#include "clibsdio.h"
973
974
975#endif // __Stdio_H__
976
977<<
978 @copy stdio.h $(COREDIR)
979
cd340a5d 980 @copy << string.h >\nul
2986a63f
JH
981
982/*
f355267c 983 * Copyright (C) 2000-01 Novell, Inc. All Rights Reserved.
2986a63f
JH
984 *
985 * You may distribute under the terms of either the GNU General Public
986 * License or the Artistic License, as specified in the README file.
987 *
988 */
989
990/*
991 * FILENAME : string.h
992 * DESCRIPTION : Generated header file, do not edit. See makefile.
993 * This header file causes the includer to use clibstuf.h
994 * The purpose of clibstuf is to make sure that Perl, cgi2perl and
011f1a1a 995 * all the perl extension nlm's (*.NLM) use the Novell Netware CLIB versions
2986a63f
JH
996 * of standard functions. This code loads up a whole bunch of function pointers
997 * to point at the standard CLIB functions.
998 * Author : HYAK
999 * Date : January 2001.
1000 *
1001 */
1002
1003
1004#ifndef __String_H__
1005#define __String_H__
1006
1007
1008#include "$(NLMSDKBASE)\INCLUDE\NLM\string.h"
1009#include "clibstr.h"
1010
1011
1012#endif // __String_H__
1013
1014<<
1015 @copy string.h $(COREDIR)
1016
1017
011f1a1a
JH
1018$(NLM_NAME): MESSAGE HEADERS $(BLDDIR)\nul $(NLM_OBJ) $(NEWTARE_OBJ_DEP) $(NEWTARE_CPP_OBJ_DEP) $(PERL_IO_OBJ_DEP) $(DLL_OBJ) \
1019 $(PERLIMPLIB) $(EXT_MAIN_OBJ) $(PERL_TEMP_OBJ) #$(PERL_LIB_OBJ)
2986a63f 1020 @echo======= Linking $@ at $(MAKEDIR)\$(BLDDIR) =======
2986a63f 1021# Linker definitions and lining come here for CODEWARRIOR
011f1a1a
JH
1022 @echo $(BASE_IMPORT_FILES) > $*.def
1023 @echo MODULE clib >> $*.def
1024 @echo MODULE netdb >> $*.def
f355267c
JH
1025!ifdef SECURITYBASE
1026 @echo MODULE nwsec >> $*.def
1027!endif #!ifdef SECURITYBASE
011f1a1a
JH
1028 @echo $(EXPORTS) >> $*.def
1029!ifdef USE_XDC
1030 @echo======= Creating XDC file
1031 @echo Import Mp.imp >> $*.def
2986a63f 1032!ifdef NLM_NAME8
011f1a1a
JH
1033 $(MPKTOOL) $(XDCFLAGS) $(BLDDIR)\$(NLM_NAME8).xdc
1034 @echo xdcdata $(BLDDIR)\$(NLM_NAME8).xdc >> $*.def
2986a63f 1035!else
011f1a1a
JH
1036 $(MPKTOOL) $(XDCFLAGS) $(BLDDIR)\$(NLM_NAME).xdc
1037 @echo xdcdata $(BLDDIR)\$(NLM_NAME).xdc >> $*.def
2986a63f
JH
1038!endif
1039!endif
011f1a1a
JH
1040## $(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)\$@
1041 $(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)\$@
9139c723
NC
1042 copy splittree.pl ..
1043 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR)
011f1a1a 1044 @echo ========Linked $@ ==========
f355267c 1045
2986a63f 1046 @echo======= Finished building $(BUILT).
011f1a1a
JH
1047
1048# Create the debug or release directory if not existing
1049$(BLDDIR)\nul:
1050 @echo . . . . mkdir $(BLDDIR)
1051 @mkdir $(BLDDIR)
1052 @echo '$(BLDDIR)' directory created.
2986a63f
JH
1053
1054MESSAGE:
1055 @echo======= $(MAKE_ACTION)ing $(NLM_NAME) at $(MAKEDIR)\$(BLDDIR) =======
011f1a1a
JH
1056
1057$(PERLIMPLIB): perllib.imp
f355267c
JH
1058# @echo Building $(PERLIMPLIB)...
1059# $(LD) -type library $(NLM_OBJ) $(BLDDIR)\nw5.obj $(BLDDIR)\nwmain.obj $(BLDDIR)\nw5thread.obj $(BLDDIR)\nwtinfo.obj \
1060# $(BLDDIR)\nwutil.obj $(BLDDIR)\interface.obj $(BLDDIR)\perllib.obj $(PERL_IO_OBJ_DEP) $(DLL_OBJ) -o $@
1061# $(XCOPY) $(PERLIMPLIB) $(COREDIR)
1062# @echo $(PERLIMPLIB) Done
011f1a1a 1063
897d3989 1064perllib.imp : $(MINIPERL) $(CONFIGPM) ..\global.sym ..\makedef.pl
011f1a1a
JH
1065# $(MINIPERL) -w ..\makedef.pl PLATFORM=netware FILETYPE=def $(ADD_BUILDOPT) \
1066# CCTYPE=$(CCTYPE) > perllib.def
1067 @echo (Perl) > perl.imp
1068 $(MINIPERL) -w ..\makedef.pl PLATFORM=netware FILETYPE=imp $(BS_CFLAGS) $(DEFINES) $(ADD_BUILDOPT) \
1069 CCTYPE=$(CCTYPE) >> perl.imp
1070 copy perl.imp $(COREDIR)
1071
2986a63f 1072$(DLL_OBJ) : $(DYNALOADER).c $(CORE_H) $(EXTDIR)\DynaLoader\dlutils.c
011f1a1a
JH
1073 @echo $(MPKMESSAGE)...$(BLDMESG)...$@
1074 @$(C_COMPILER) $(NLM_INCLUDES) $(COMPLER_FLAGS) $(NLM_INCLUDES) $(ADD_LOCDEFS) $(ERROR_FLAG) -I$(EXTDIR)\DynaLoader \
1075 $(EXTDIR)\DynaLoader\$(*F).c -o $@
1076 @echo $(@) Done.
2986a63f
JH
1077
1078$(DYNALOADER).c : $(MINIPERL) $(EXTDIR)\DynaLoader\dl_netware.xs $(CONFIGPM)
1079 if not exist $(AUTODIR) mkdir $(AUTODIR)
1080 cd $(EXTDIR)\$(*B)
1081 ..\$(MINIPERL) -I..\..\lib $(*B)_pm.PL
1082 ..\$(MINIPERL) -I..\..\lib XSLoader_pm.PL
1083 cd ..\..\netware
1084 $(XCOPY) $(EXTDIR)\$(*B)\$(*B).pm $(LIBDIR)\$(NULL)
1085 $(XCOPY) $(EXTDIR)\$(*B)\XSLoader.pm $(LIBDIR)\$(NULL)
1086 cd $(EXTDIR)\$(*B)
1087 $(XSUBPP) dl_netware.xs > $(*B).c
1088 cd ..\..\netware
011f1a1a 1089 @echo Dynaloader Done
2986a63f 1090
2986a63f
JH
1091
1092$(PERL_IO_OBJ_DEP) : ..\$(*F).c
1093 @echo $(MPKMESSAGE) $(BLDMESG) $@
011f1a1a
JH
1094 $(C_COMPILER) $(COMPLER_FLAGS) $(NLM_INCLUDES) $(ADD_LOCDEFS) $(ERROR_FLAG) ..\$(*F).c -o $@
1095 @echo Built $(@)
2986a63f
JH
1096
1097$(NLM_OBJ) : ..\$(*F).c
1098 @echo $(MPKMESSAGE) $(BLDMESG) $@
011f1a1a
JH
1099 $(C_COMPILER) $(COMPLER_FLAGS) $(NLM_INCLUDES) $(ADD_LOCDEFS) $(ERROR_FLAG) ..\$(*F).c -o $@
1100 @echo Built $(@)
1101
1102
2986a63f
JH
1103$(NEWTARE_OBJ_DEP) : $(NW_H_FILES) $(NW_HOST_H_FILES) $(*F).c
1104 @echo $(MPKMESSAGE) $(BLDMESG) $@
011f1a1a
JH
1105 $(C_COMPILER) $(COMPLER_FLAGS) $(NLM_INCLUDES) $(ADD_LOCDEFS) $(ERROR_FLAG) $(*F).c -o $@
1106 @echo Built $(@)
2986a63f 1107
011f1a1a 1108$(NEWTARE_CPP_OBJ_DEP) : $(NW_H_FILES) $(NW_HOST_H_FILES) $(*F).cpp
2986a63f 1109 @echo $(MPKMESSAGE) $(BLDMESG) $@
011f1a1a
JH
1110 $(C_COMPILER) $(CWCPPFLAGS) $(COMPLER_FLAGS) $(NLM_INCLUDES) $(ADD_LOCDEFS) $(ERROR_FLAG) $(*F).cpp -o $@
1111 @echo Built $(@)
1112
1113$(EXT_MAIN_OBJ) : $(CLIB_H_FILES)
1114 @echo $(MPKMESSAGE) $(BLDMESG) $@
1115 $(C_COMPILER) $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(ERROR_FLAG) $(*F).c -o $@
1116 $(LD) -type library $@ -o $*.lib
1117 @copy $*.lib $(COREDIR)
2986a63f
JH
1118
1119# Delete any files that might have got created during building miniperl.exe
1120# config.sh will definitely be created
1121# COREDIR might have got created
1122.cleanoldfiles :
41504350
JH
1123 -del /f /q $(PERLIMPLIB)
1124 -del /f /q ..\lib\config.pm
1125 -del /f /q ..\config.sh
1126 -del /f /q .\Main.obj
1127 -del /f /q .\Main.lib
2986a63f
JH
1128 -rmdir /s /q $(AUTODIR)
1129 -rmdir /s /q $(COREDIR)
41504350 1130 -del /f /q ..\lib\core
2986a63f
JH
1131
1132.\nwconfig.h : $(NW_CFGH_TMPL)
f355267c 1133 @if exist .\config.h del /f /q .\config.h
2986a63f
JH
1134 copy $(NW_CFGH_TMPL) config.h
1135
1136# REQUIRED WHEN WE INCLUDE CONFIGPM OR REGEN_CONFIG - sgp
1137#..\nwconfig.sh : config.nw5 $(MINIPERL) config_sh.PL
1138# $(MINIPERL) -I..\lib config_sh.PL $(NW_CFG_VARS) config.nw5 > ..\config.sh
1139# @pause
1140# cd ..
4d76e4b4 1141# del /f /q config.sh
2986a63f
JH
1142# rename nwconfig.sh config.sh
1143# cd netware
1144
1145config.nw5 : $(NW_CFGSH_TMPL)
1146 copy $(NW_CFGSH_TMPL) config.nw5
1147
011f1a1a 1148$(SOCKET_NLM): $(NLM_NAME) $(SOCKET).xs
2986a63f 1149 cd $(EXTDIR)\$(*B)
c5635c9e 1150 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1151 $(MAKE)
1152 cd ..\..\netware
1153
011f1a1a 1154$(HOSTNAME_NLM): $(NLM_NAME) $(HOSTNAME).xs
57e69e5f 1155 cd $(EXTDIR)\Sys\$(*B)
c5635c9e 1156 ..\..\..\miniperl -I..\..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
57e69e5f
JH
1157 $(MAKE)
1158 cd ..\..\..\netware
1159
011f1a1a 1160$(FCNTL_NLM):
2986a63f 1161 cd $(EXTDIR)\$(*B)
c5635c9e 1162 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1163 $(MAKE)
1164 cd ..\..\netware
1165
011f1a1a 1166$(IO_NLM):
2986a63f 1167 cd $(EXTDIR)\$(*B)
c5635c9e 1168 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1169 $(MAKE)
1170 cd ..\..\netware
1171
011f1a1a 1172$(OPCODE_NLM):
2986a63f 1173 cd $(EXTDIR)\$(*B)
c5635c9e 1174 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1175 $(MAKE)
1176 cd ..\..\netware
1177
011f1a1a 1178$(B_NLM):
2986a63f 1179 cd $(EXTDIR)\$(*B)
c5635c9e 1180 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1181 $(MAKE)
1182 cd ..\..\netware
1183
011f1a1a 1184$(DUMPER_NLM):
2986a63f 1185 cd $(EXTDIR)\Data\$(*B)
c5635c9e 1186 ..\..\..\miniperl -I..\..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1187 $(MAKE)
1188 cd ..\..\..\netware
1189
011f1a1a 1190$(PEEK_NLM):
2986a63f 1191 cd $(EXTDIR)\Devel\$(*B)
c5635c9e 1192 ..\..\..\miniperl -I..\..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1193 $(MAKE)
1194 cd ..\..\..\netware
1195
011f1a1a 1196$(RE_NLM):
2986a63f 1197 cd $(EXTDIR)\$(*B)
c5635c9e 1198 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1199 $(MAKE)
1200 cd ..\..\netware
1201
011f1a1a 1202$(BYTELOADER_NLM):
2986a63f 1203 cd $(EXTDIR)\$(*B)
c5635c9e 1204 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1205 $(MAKE)
1206 cd ..\..\netware
1207
011f1a1a 1208$(GLOB_NLM):
2986a63f 1209 cd $(EXTDIR)\File\$(*B)
c5635c9e 1210 ..\..\..\miniperl -I..\..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1211 $(MAKE)
1212 cd ..\..\..\netware
1213
011f1a1a 1214$(POSIX_NLM):
2986a63f 1215 cd $(EXTDIR)\$(*B)
c5635c9e 1216 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1217 $(MAKE)
1218 cd ..\..\netware
1219
48462a74
NC
1220$(ATTRIBUTES_NLM):
1221 cd $(EXTDIR)\$(*B)
1222 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
1223 $(MAKE)
1224 cd ..\..\netware
1225
011f1a1a 1226$(SDBM_FILE_NLM):
2986a63f 1227 cd $(EXTDIR)\$(*B)
c5635c9e 1228 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1229 $(MAKE)
1230 cd ..\..\netware
1231
011f1a1a 1232$(CWD_NLM):
225a5dca 1233 cd $(EXTDIR)\$(*B)
c5635c9e 1234 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
225a5dca
JH
1235 $(MAKE)
1236 cd ..\..\netware
1237
011f1a1a 1238$(STORABLE_NLM):
225a5dca 1239 cd $(EXTDIR)\$(*B)
c5635c9e 1240 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
225a5dca
JH
1241 $(MAKE)
1242 cd ..\..\netware
1243
011f1a1a 1244$(LISTUTIL_NLM):
225a5dca 1245 cd $(EXTDIR)\List\$(*B)
c5635c9e 1246 ..\..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
225a5dca
JH
1247 $(MAKE)
1248 cd ..\..\..\netware
1249
011f1a1a 1250$(MIMEBASE64_NLM):
225a5dca 1251 cd $(EXTDIR)\Mime\$(*B)
c5635c9e 1252 ..\..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
225a5dca
JH
1253 $(MAKE)
1254 cd ..\..\..\netware
1255
83e2e978
JH
1256$(XSAPITEST_NLM):
1257 cd $(EXTDIR)\XS\$(*B)
1258 ..\..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
1259 $(MAKE)
1260 cd ..\..\..\netware
1261
011f1a1a 1262$(XSTYPEMAP_NLM):
225a5dca 1263 cd $(EXTDIR)\XS\$(*B)
c5635c9e 1264 ..\..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
225a5dca
JH
1265 $(MAKE)
1266 cd ..\..\..\netware
1267
011f1a1a 1268$(UNICODENORMALIZE_NLM):
ac5ea531 1269 cd $(EXTDIR)\Unicode\$(*B)
c5635c9e 1270 ..\..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
ac5ea531
JH
1271 $(MAKE)
1272 cd ..\..\..\netware
1273
011f1a1a 1274
2986a63f 1275$(ERRNO_PM_NW):
011f1a1a 1276# @echo Building $@
2986a63f 1277 cd $(EXTDIR)\$(*B)
c5635c9e 1278 ..\..\miniperl -I..\..\lib Makefile.PL PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1279 $(MAKE)
1280 cd ..\..\netware
1281
1282$(ECHO_SRC_OBJ): $*.c
1283 @echo $(MPKMESSAGE) $(BLDMESG) $@
011f1a1a
JH
1284 $(C_COMPILER) $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(ERROR_FLAG) $*.c -o $@
1285 @echo Built $(@)
2986a63f
JH
1286
1287$(ECHO_NLM): $(ECHO_SRC_OBJ)
1288 @echo======= Linking $@ =======
011f1a1a
JH
1289# Linker definitions and lining come here for CODEWARRIOR
1290 @echo $(BASE_IMPORT_FILES) > $*.def
1291 @echo MODULE clib >> $*.def
1292 @echo Import @perl.imp >> $*.def
2986a63f
JH
1293!ifdef USE_XDC
1294 $(MPKTOOL) $(XDCFLAGS) $*.xdc
011f1a1a
JH
1295 @echo Import @MP.imp >> $*.def
1296 @echo xdcdata $*.xdc >> $*.def
2986a63f 1297!endif
011f1a1a
JH
1298## $(LINK) $(LDFLAGS) $(BS_CFLAGS) -desc "DOS Echo emulation for Perl testing" $(ECHO_SRC_OBJ) $(BLDDIR)\clibstuf.obj -commandfile $*.def -o $@
1299 $(LINK) $(LDFLAGS) -desc "DOS Echo emulation for Perl testing" $(ECHO_SRC_OBJ) $(BLDDIR)\clibstuf.obj -commandfile $*.def -o $@
2986a63f
JH
1300 @echo======= Linking Complete =======
1301
1302$(TYPE_SRC_OBJ): $*.c
1303 @echo $(MPKMESSAGE) $(BLDMESG) $@
011f1a1a
JH
1304 $(C_COMPILER) $(NLM_INCLUDES) $(COMPLER_FLAGS) $(ADD_LOCDEFS) $(ERROR_FLAG) $*.c -o $@
1305 @echo Built $(@)
1306
2986a63f
JH
1307$(TYPE_NLM): $(TYPE_SRC_OBJ)
1308 @echo======= Linking $@ =======
011f1a1a
JH
1309# Linker definitions and lining come here for CODEWARRIOR
1310 @echo $(BASE_IMPORT_FILES) > $*.def
1311 @echo MODULE clib >> $*.def
1312 @echo Import @perl.imp >> $*.def
2986a63f
JH
1313!ifdef USE_XDC
1314 $(MPKTOOL) $(XDCFLAGS) $*.xdc
011f1a1a
JH
1315 @echo Import @MP.imp >> $*.def
1316 @echo xdcdata $*.xdc >> $*.def
2986a63f 1317!endif
011f1a1a
JH
1318## $(LINK) $(LDFLAGS) $(BS_CFLAGS) -desc "DOS Type emulation for Perl testing" $(TYPE_SRC_OBJ) $(BLDDIR)\clibstuf.obj -commandfile $*.def -o $@
1319 $(LINK) $(LDFLAGS) -desc "DOS Type emulation for Perl testing" $(TYPE_SRC_OBJ) $(BLDDIR)\clibstuf.obj -commandfile $*.def -o $@
2986a63f
JH
1320 @echo======= Linking Complete =======
1321
011f1a1a 1322
2986a63f 1323# Build NetWare specific extensions
011f1a1a 1324$(CGI2PERL_NLM):
2986a63f
JH
1325!if "$(NW_EXTNS)"=="yes"
1326 cd $(*B)
011f1a1a 1327 ..\..\miniperl -I..\..\lib Makefile.PL "CCCDLFLAGS=-bool on -lang c++" PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1328 $(MAKE)
1329 cd ..\..\netware
1330!endif
1331
011f1a1a 1332$(PERL2UCS_NLM):
2986a63f 1333!if "$(NW_EXTNS)"=="yes"
1a95e36d 1334 cd $(*B)
011f1a1a 1335 ..\..\miniperl -I..\..\lib Makefile.PL "CCCDLFLAGS=-bool on -lang c++" PERL_CORE=1 INSTALLDIRS=perl
2986a63f
JH
1336 $(MAKE)
1337 cd ..\..\netware
1338!endif
1339
011f1a1a 1340$(UCSExt_NLM):
4d76e4b4 1341!if "$(NW_EXTNS)"=="yes"
1a95e36d 1342 cd $(*B)
011f1a1a 1343 ..\..\miniperl -I..\..\lib Makefile.PL "CCCDLFLAGS=-bool on -lang c++" PERL_CORE=1 INSTALLDIRS=perl
4d76e4b4
JH
1344 $(MAKE)
1345 cd ..\..\netware
1346!endif
1347
2986a63f 1348nwclean:
41504350
JH
1349 -rmdir /s /q $(REL_DIR)
1350 -rmdir /s /q $(DEB_DIR)
1351 @if exist .\stdio.h del /f /q .\stdio.h
1352 @if exist .\string.h del /f /q .\string.h
f355267c 1353 @if exist .\config.h del /f /q .\config.h
41504350
JH
1354 @if exist .\config.nw5 del /f /q .\config.nw5
1355 @if exist .\perl.imp del /f /q .\perl.imp
cf267c36 1356 -del /f /q *.obj *.lib *.def *.sym *.map *.xdc *.err *.nlm
2986a63f 1357 cd testnlm\echo
cf267c36 1358 -del /f /q *.obj *.map *.link *.options *.nlm *.sym *.xdc *.err *.lib *.def *.pdb *.bs
2986a63f 1359 cd ..\type
cf267c36 1360 -del /f /q *.obj *.map *.link *.options *.nlm *.sym *.xdc *.err *.lib *.def *.pdb *.bs
2986a63f
JH
1361 cd ..\..\
1362
1363utils: $(BLDDIR)\$(NLM_NAME8).$(NLM_EXT) $(X2P)
1364 cd ..\utils
1365 $(MAKE) PERL=$(MINIPERL)
1366 cd ..\pod
1367 copy ..\README.amiga .\perlamiga.pod
1368 copy ..\README.cygwin .\perlcygwin.pod
1369 copy ..\README.dos .\perldos.pod
1370 copy ..\README.hpux .\perlhpux.pod
2986a63f
JH
1371 copy ..\README.os2 .\perlos2.pod
1372 copy ..\vms\perlvms.pod .\perlvms.pod
1373 copy ..\README.win32 .\perlwin32.pod
1374 copy ..\README.netware .\perlnw5.pod
1375 $(MAKE) -f ..\win32\pod.mak converters
3e7b198a 1376
2986a63f
JH
1377 cd ..\netware
1378 $(MINIPERL) $(PL2BAT) $(UTILS)
1379
1380distclean: clean nwclean
41504350 1381 -del /f /q $(PERLIMPLIB) ..\miniperl.lib $(MINIMOD)
41504350
JH
1382 -del /f /q $(EXTENSION_NPM)
1383 -del /f /q $(EXTENSION_C) $(DYNALOADER).c $(ERRNO).pm
1384 -del /f /q $(EXTDIR)\DynaLoader\dl_netware.xs
f355267c
JH
1385 -del /f /q $(EXTDIR)\DynaLoader\dl_win32.xs
1386 -del /f /q $(EXTDIR)\DynaLoader\DynaLoader.pm
1387 -del /f /q $(EXTDIR)\DynaLoader\XSLoader.pm
48462a74 1388 -del /f /q $(LIBDIR)\.exists $(LIBDIR)\attributes.pm $(LIBDIR)\DynaLoader.pm
41504350
JH
1389 -del /f /q $(LIBDIR)\XSLoader.pm
1390 -del /f /q $(LIBDIR)\Fcntl.pm $(LIBDIR)\IO.pm $(LIBDIR)\Opcode.pm
1391 -del /f /q $(LIBDIR)\ops.pm $(LIBDIR)\Safe.pm
1392 -del /f /q $(LIBDIR)\SDBM_File.pm $(LIBDIR)\Socket.pm $(LIBDIR)\POSIX.pm
1393 -del /f /q $(LIBDIR)\B.pm $(LIBDIR)\O.pm $(LIBDIR)\re.pm
1394 -del /f /q $(LIBDIR)\Data\Dumper.pm $(LIBDIR)\ByteLoader.pm
c9dab4e9 1395 -del /f /q $(LIBDIR)\Devel\Peek.pm
41504350
JH
1396 -del /f /q $(LIBDIR)\File\Glob.pm
1397 -del /f /q $(LIBDIR)\Unicode\Normalize.pm
0a2b78c5 1398 -del /f /q $(LIBDIR)\Unicode\Collate.pm
41504350 1399 -rmdir /s /q $(LIBDIR)\IO
41504350
JH
1400 -rmdir /s /q $(LIBDIR)\B
1401 -rmdir /s /q $(LIBDIR)\Data
1402 -del /f /q $(PODDIR)\*.html
1403 -del /f /q $(PODDIR)\*.bat
2986a63f 1404 cd ..\utils
c9dab4e9 1405 -del /f /q h2ph splain perlbug pl2pm c2ph h2xs perldoc
41504350 1406 -del /f /q *.bat
2986a63f
JH
1407 cd ..\netware
1408 cd ..\x2p
41504350 1409 -del /f /q find2perl s2p
f355267c 1410 -del /f /q *.bat *.exe
41504350 1411 -del /f /q *.obj *.map *.link *.xdc *.err
2986a63f 1412 cd ..\netware
9139c723 1413 -del /f /q ..\config.sh ..\splittree.pl dlutils.c config.h.new
41504350
JH
1414 -del /f /q $(CONFIGPM)
1415 -del /f /q bin\*.bat
2986a63f 1416 cd $(EXTDIR)
cf267c36 1417 -del /s /q /f *.lib *.def *.map *.pdb *.bs Makefile *$(o) pm_to_blib *.xdc *.err *.obj *.sym
2986a63f
JH
1418 cd ..\netware
1419!if "$(NW_EXTNS)"=="yes"
1420 cd cgi2perl
cf267c36 1421 -del /f /q *.obj *.bs Makefile *$(o) *.c pm_to_blib *.xdc *.err *.sym *.map *.def *.lib *.pdb
2986a63f 1422 cd ..
1a95e36d 1423 cd Perl2UCS
cf267c36 1424 -del /f /q *.obj *.bs Makefile *$(o) *.c pm_to_blib *.xdc *.err *.sym *.map *.def *.lib *.pdb
9219c8de 1425 cd ..\..\netware
1a95e36d 1426 cd UCSExt
4d76e4b4
JH
1427 -del /f /q *.obj *.bs Makefile *$(o) *.c pm_to_blib *.xdc *.err *.sym *.map *.c
1428 cd ..\..\netware
2986a63f 1429!endif
41504350
JH
1430 -rmdir /s /q $(AUTODIR)
1431 -rmdir /s /q $(COREDIR)
1432 -del /f /q ..\config.sh
2986a63f
JH
1433
1434installwin:
1435 $(MINIPERL) -I..\lib ..\installperl
1436
f355267c
JH
1437install : utils installwin perlimp
1438
1439perlimp :
1440 copy perl.imp $(INST_COREDIR)
2986a63f
JH
1441
1442installnw:
1443 $(MINIPERL) -I..\lib ..\installperl -netware
1444
225a5dca
JH
1445install_tests :
1446 cd ..\t
1447 xcopy /f /r /i /s /d *.* $(INST_NW_TOP2)\scripts\t
1448 cd ..\lib
1449 xcopy /f /r /i /s /d *.t $(INST_NW_TOP2)\scripts\t\lib
1450 cd ..\ext
1451 xcopy /f /r /i /s /d *.t $(INST_NW_TOP2)\scripts\t\ext
32ce01bc
JH
1452 cd ..\netware\t
1453 xcopy /f /r /i /s /d *.pl $(INST_NW_TOP2)\scripts\t
1454 cd ..
225a5dca
JH
1455
1456nwinstall: utils installnw install_tests
2986a63f
JH
1457
1458inst_lib : $(CONFIGPM)
9139c723
NC
1459 copy ..\win32\splittree.pl ..
1460 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR)
2986a63f
JH
1461 $(RCOPY) ..\lib $(INST_LIB)\*.*
1462
1463clean :
1464 -@erase miniperlmain$(o)
1465 -@erase /f config.h
1466 -@erase $(DLL_OBJ)
1467 -@erase ..\*$(o) ..\*.lib ..\*.exp *$(o) *.lib *.exp *.res
1468 -@erase ..\t\*.exe ..\t\*.dll ..\t\*.bat
1469 -@erase ..\x2p\*.nlm ..\x2p\*.bat