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