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