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