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