Commit | Line | Data |
e4451f11 |
1 | # perl makefile for wince |
2 | # |
ca6c63e1 |
3 | # Time-stamp: <26/10/01 15:10:06 keuchel@keuchelnt> |
e4451f11 |
4 | |
5 | SRCDIR = .. |
78a7c709 |
6 | PV = 59 |
69df4abc |
7 | INST_VER = 5.9.3 |
42165d27 |
8 | |
18f68570 |
9 | # INSTALL_ROOT specifies a path where this perl will be installed on CE device |
42165d27 |
10 | INSTALL_ROOT=/netzwerk/sprache/perl |
18f68570 |
11 | INST_TOP=$(INSTALL_ROOT) |
12 | INST_VER= |
42165d27 |
13 | |
14 | # PERLCEDIR shoud be set to current directory |
e4451f11 |
15 | PERLCEDIR = H:\src\wince\perl\wince |
42165d27 |
16 | |
18f68570 |
17 | # WCEROOT is a directory where Windows CE Tools was installed |
ca6c63e1 |
18 | WCEROOT = D:\Windows CE Tools |
18f68570 |
19 | |
20 | # HPERL stands for host perl, which is perl on local desktop machine |
21 | # which is usually ..\miniperl.exe |
22 | #HPERL = N:\Programme\perl\bin\perl.exe |
23 | HPERL = $(MAKEDIR)\..\miniperl.exe |
24 | |
ca6c63e1 |
25 | CEPATH = D:\Programme\Microsoft eMbedded Tools\EVC\WCE211\BIN |
26 | CELIBDLLDIR = h:\src\wince\celib-palm-3.0 |
e4451f11 |
27 | CECONSOLEDIR = h:\src\wince\w32console |
18f68570 |
28 | |
29 | # specify following options to build perl on local machine, by MSVC |
30 | MSVCDIR = D:\MSVStudio\VC98 |
31 | CCHOME = $(MSVCDIR) |
32 | CCINCDIR = $(CCHOME)\include |
33 | CCLIBDIR = $(CCHOME)\lib |
34 | |
e4451f11 |
35 | # Only for WIN2000 |
ca6c63e1 |
36 | #YES = /y |
e4451f11 |
37 | COPY = copy $(YES) |
38 | XCOPY = xcopy $(YES) /f /r /i /d |
39 | RCOPY = xcopy $(YES) /f /r /i /e /d |
42165d27 |
40 | |
41 | # cecopy program. Make shure it is in your path, as well as cemkdir, cedel |
42 | CECOPY = cecopy |
43 | |
18f68570 |
44 | # |
45 | # Comment out next assign to disable perl's I/O subsystem and use compiler's |
46 | # stdio for IO - depending on your compiler vendor and run time library you may |
47 | # then get a number of fails from make test i.e. bugs - complain to them not us ;-). |
48 | # You will also be unable to take full advantage of perl5.8's support for multiple |
49 | # encodings and may see lower IO performance. You have been warned. |
50 | USE_PERLIO = define |
51 | |
2e64bfdb |
52 | # |
53 | # set this if you wish to use perl's malloc |
54 | # This will make perl run few times faster |
55 | # WARNING: Turning this on/off WILL break binary compatibility with extensions |
56 | # you may have compiled with/without it. |
57 | # |
58 | PERL_MALLOC = define |
59 | |
18f68570 |
60 | |
e4451f11 |
61 | NOOP = @echo |
62 | # keep this untouched! |
63 | NULL = |
64 | |
42165d27 |
65 | |
aebd5ec7 |
66 | #CFG=DEBUG |
67 | CFG=RELEASE |
e4451f11 |
68 | |
69 | !if "$(MACHINE)" == "" |
70 | MACHINE=wince-arm-hpc-wce300 |
71 | #MACHINE=wince-arm-hpc-wce211 |
72 | #MACHINE=wince-sh3-hpc-wce211 |
73 | #MACHINE=wince-mips-hpc-wce211 |
74 | #MACHINE=wince-sh3-hpc-wce200 |
75 | #MACHINE=wince-mips-hpc-wce200 |
76 | #MACHINE=wince-arm-pocket-wce300 |
77 | #MACHINE=wince-mips-pocket-wce300 |
78 | #MACHINE=wince-sh3-pocket-wce300 |
79 | #MACHINE=wince-x86em-pocket-wce300 |
80 | #MACHINE=wince-mips-palm-wce211 |
81 | #MACHINE=wince-sh3-palm-wce211 |
82 | #MACHINE=wince-x86em-palm-wce211 |
83 | !endif |
84 | |
2e64bfdb |
85 | # set this to your email address |
86 | # |
87 | #EMAIL = |
88 | |
89 | ##################### CHANGE THESE ONLY IF YOU MUST ##################### |
90 | |
e4451f11 |
91 | ###################################################################### |
92 | # machines |
93 | |
94 | !if "$(MACHINE)" == "wince-sh3-hpc-wce211" |
95 | CC = shcl.exe |
96 | ARCH = SH3 |
97 | CPU = SH3 |
98 | TARGETCPU = SH3 |
99 | CEVersion = 211 |
100 | OSVERSION = WCE211 |
101 | PLATFORM = MS HPC Pro |
102 | MCFLAGS = -MDd -DSH3 -D_SH3_ -DSHx -DPROCESSOR_SH3 -DPALM_SIZE \ |
103 | -I $(CELIBDLLDIR)\inc |
104 | SUBSYS = -subsystem:windowsce,2.11 |
105 | CELIBPATH = $(CELIBDLLDIR)\$(MACHINE)-release |
106 | LDLIBPATH = -libpath:$(CELIBPATH) |
107 | STARTOBJS = $(CECONSOLEDIR)/$(MACHINE)/wmain.obj \ |
108 | $(CECONSOLEDIR)/$(MACHINE)/w32console.obj |
109 | !endif |
110 | |
111 | !if "$(MACHINE)" == "wince-mips-hpc-wce211" |
112 | CC = clmips.exe |
113 | ARCH = MIPS |
114 | CPU = MIPS |
115 | TARGETCPU = MIPS |
116 | CEVersion = 211 |
117 | OSVERSION = WCE211 |
118 | PLATFORM = MS HPC Pro |
119 | MCFLAGS = -D _MT -D _DLL \ |
120 | -D MIPS -D mips -D _MIPS_ -D _mips_ -DPROCESSOR_MIPS \ |
121 | -D PALM_SIZE \ |
122 | -I $(CELIBDLLDIR)\inc |
123 | SUBSYS = -subsystem:windowsce,2.11 |
124 | CELIBPATH = $(CELIBDLLDIR)\$(MACHINE)-release |
125 | LDLIBPATH = -libpath:$(CELIBPATH) |
126 | STARTOBJS = $(CECONSOLEDIR)/$(MACHINE)/wmain.obj \ |
127 | $(CECONSOLEDIR)/$(MACHINE)/w32console.obj |
128 | !endif |
129 | |
130 | !if "$(MACHINE)" == "wince-mips-hpc-wce200" |
131 | CC = clmips.exe |
132 | ARCH = MIPS |
133 | CPU = MIPS |
134 | TARGETCPU = MIPS |
135 | CEVersion = 200 |
136 | OSVERSION = WCE200 |
137 | PLATFORM = MS HPC |
138 | # MUST USE -MD to get the right FPE stuff... |
139 | MCFLAGS = -D _MT -D _DLL -MD \ |
140 | -D MIPS -D mips -D _MIPS_ -D _mips_ -DPROCESSOR_MIPS \ |
141 | -D PALM_SIZE \ |
142 | -I $(CELIBDLLDIR)\inc |
143 | SUBSYS = -subsystem:windowsce,2.00 |
144 | CELIBPATH = $(CELIBDLLDIR)\$(MACHINE)-release |
145 | LDLIBPATH = -libpath:$(CELIBPATH) |
146 | STARTOBJS = $(CECONSOLEDIR)/$(MACHINE)/wmain.obj \ |
147 | $(CECONSOLEDIR)/$(MACHINE)/w32console.obj |
148 | !endif |
149 | |
150 | !if "$(MACHINE)" == "wince-sh3-hpc-wce200" |
151 | CC = shcl.exe |
152 | ARCH = SH3 |
153 | CPU = SH3 |
154 | TARGETCPU = SH3 |
155 | CEVersion = 200 |
156 | OSVERSION = WCE200 |
157 | PLATFORM = MS HPC |
158 | # MUST USE -MD to get the right FPE stuff... |
159 | MCFLAGS = -D _MT -D _DLL -MD \ |
160 | -D SH3 -D sh3 -D _SH3_ -D _sh3_ -D SHx -DPROCESSOR_SH3 \ |
161 | -D PALM_SIZE \ |
162 | -I $(CELIBDLLDIR)\inc |
163 | SUBSYS = -subsystem:windowsce,2.00 |
164 | CELIBPATH = $(CELIBDLLDIR)\$(MACHINE)-release |
165 | LDLIBPATH = -libpath:$(CELIBPATH) |
166 | STARTOBJS = $(CECONSOLEDIR)/$(MACHINE)/wmain.obj \ |
167 | $(CECONSOLEDIR)/$(MACHINE)/w32console.obj |
168 | !endif |
169 | |
170 | !if "$(MACHINE)" == "wince-arm-hpc-wce211" |
171 | CC = clarm.exe |
172 | ARCH = ARM |
173 | CPU = ARM |
174 | TARGETCPU = ARM |
175 | CEVersion = 211 |
176 | OSVERSION = WCE211 |
177 | PLATFORM = MS HPC Pro |
178 | MCFLAGS = -D _MT -D _DLL -D ARM -D arm -D _arm_ -D _ARM_ \ |
179 | -DPROCESSOR_ARM -DPALM_SIZE \ |
180 | -I $(CELIBDLLDIR)\inc |
181 | SUBSYS = -subsystem:windowsce,2.11 |
182 | CELIBPATH = $(CELIBDLLDIR)\$(MACHINE)-release |
183 | LDLIBPATH = -libpath:$(CELIBPATH) |
184 | STARTOBJS = $(CECONSOLEDIR)/$(MACHINE)/wmain.obj \ |
185 | $(CECONSOLEDIR)/$(MACHINE)/w32console.obj |
186 | !endif |
187 | |
188 | !if "$(MACHINE)" == "wince-arm-hpc-wce300" |
189 | CC = clarm.exe |
190 | ARCH = ARM |
191 | CPU = ARM |
192 | TARGETCPU = ARM |
193 | CEVersion = 300 |
194 | OSVERSION = WCE300 |
c96f74ce |
195 | #PLATFORM = HPC2000 |
e4451f11 |
196 | MCFLAGS = -D _MT -D _DLL -D ARM -D arm -D _arm_ -D _ARM_ \ |
197 | -DPROCESSOR_ARM -DPALM_SIZE \ |
198 | -I $(CELIBDLLDIR)\inc |
199 | SUBSYS = -subsystem:windowsce,3.00 |
200 | CELIBPATH = $(CELIBDLLDIR)\$(MACHINE)-release |
201 | LDLIBPATH = -libpath:$(CELIBPATH) |
202 | STARTOBJS = $(CECONSOLEDIR)/$(MACHINE)/wmain.obj \ |
203 | $(CECONSOLEDIR)/$(MACHINE)/w32console.obj |
204 | !endif |
205 | |
206 | !if "$(MACHINE)" == "wince-mips-palm-wce211" |
207 | CC = clmips.exe |
208 | ARCH = MIPS |
209 | CPU = MIPS |
210 | TARGETCPU = MIPS |
211 | CEVersion = 211 |
212 | OSVERSION = WCE211 |
213 | PLATFORM = MS Palm Size PC |
214 | MCFLAGS = -DMIPS -D_MIPS_ -DPROCESSOR_MIPS -D PALM_SIZE -D _DLL -D _MT \ |
215 | -I $(CELIBDLLDIR)\inc |
216 | SUBSYS = -subsystem:windowsce,2.11 |
217 | CELIBPATH = $(CELIBDLLDIR)\$(MACHINE)-release |
218 | LDLIBPATH = -libpath:$(CELIBPATH) |
219 | STARTOBJS = $(CECONSOLEDIR)/$(MACHINE)/wmain.obj \ |
220 | $(CECONSOLEDIR)/$(MACHINE)/w32console.obj |
221 | !endif |
222 | |
223 | !if "$(MACHINE)" == "wince-sh3-palm-wce211" |
224 | CC = shcl.exe |
225 | ARCH = SH3 |
226 | CPU = SH3 |
227 | TARGETCPU = SH3 |
228 | CEVersion = 211 |
229 | OSVERSION = WCE211 |
230 | PLATFORM = MS Palm Size PC |
231 | MCFLAGS = -D _MT -D _DLL -DSH3 -D_SH3_ -DSHx -DPROCESSOR_SH3 -DPALM_SIZE \ |
232 | -I $(CELIBDLLDIR)\inc |
233 | SUBSYS = -subsystem:windowsce,2.11 |
234 | CELIBPATH = $(CELIBDLLDIR)\$(MACHINE)-release |
235 | LDLIBPATH = -libpath:$(CELIBPATH) |
236 | STARTOBJS = $(CECONSOLEDIR)/$(MACHINE)/wmain.obj \ |
237 | $(CECONSOLEDIR)/$(MACHINE)/w32console.obj |
238 | !endif |
239 | |
240 | !if "$(MACHINE)" == "wince-x86em-palm-wce211" |
241 | CC = cl.exe |
242 | ARCH = X86EM |
243 | CPU = X86 |
244 | TARGETCPU = X86 |
245 | CEVersion = 211 |
246 | OSVERSION = WCE211 |
247 | PLATFORM = MS Palm Size PC |
248 | MCFLAGS = -MDd -DX86 -D_X86_ -DPROCESSOR_X86 \ |
249 | -D_WIN32_WCE_EMULATION -DPALM_SIZE \ |
250 | -I $(CELIBDLLDIR)\inc |
251 | MACH = -machine:x86 |
252 | SUBSYS = -subsystem:windows |
253 | CELIBPATH = $(CELIBDLLDIR)\$(MACHINE)-release |
254 | LDLIBPATH = -libpath:$(CELIBPATH) |
255 | STARTOBJS = $(CECONSOLEDIR)/$(MACHINE)/wmain.obj \ |
256 | $(CECONSOLEDIR)/$(MACHINE)/w32console.obj |
257 | !endif |
258 | |
259 | !if "$(MACHINE)" == "wince-x86em-pocket-wce300" |
260 | CC = cl.exe |
261 | ARCH = X86EM |
262 | CPU = X86 |
263 | TARGETCPU = X86 |
264 | CEVersion = 300 |
265 | OSVERSION = WCE300 |
266 | PLATFORM = MS Pocket PC |
267 | MCFLAGS = -DX86 -D_X86_ -DPROCESSOR_X86 -D _MT -D _DLL \ |
268 | -D_WIN32_WCE_EMULATION -DPALM_SIZE -DPOCKET_SIZE \ |
269 | -I $(CELIBDLLDIR)\inc |
270 | MACH = -machine:x86 |
271 | SUBSYS = -subsystem:windows |
272 | CELIBPATH = $(CELIBDLLDIR)\$(MACHINE)-release |
273 | LDLIBPATH = -libpath:$(CELIBPATH) |
274 | STARTOBJS = $(CECONSOLEDIR)/$(MACHINE)/wmain.obj \ |
275 | $(CECONSOLEDIR)/$(MACHINE)/w32console.obj |
276 | !endif |
277 | |
278 | !if "$(MACHINE)" == "wince-mips-pocket-wce300" |
279 | CC = clmips.exe |
280 | ARCH = MIPS |
281 | CPU = MIPS |
282 | TARGETCPU = MIPS |
283 | CEVersion = 300 |
284 | OSVERSION = WCE300 |
285 | PLATFORM = MS Pocket PC |
286 | MCFLAGS = -D MIPS -D mips -D _MIPS_ -D _mips_ -DPROCESSOR_MIPS \ |
287 | -D _MT -D _DLL -DPALM_SIZE -DPOCKET_SIZE \ |
288 | -I $(CELIBDLLDIR)\inc |
289 | MACH = -machine:mips |
290 | SUBSYS = -subsystem:windowsce,3.00 |
291 | CELIBPATH = $(CELIBDLLDIR)\$(MACHINE)-release |
216db7ee |
292 | #STDLIBPATH = $(WCEROOT)\$(OSVERSION)\$(PLATFORM)\lib\$(CPU) |
e4451f11 |
293 | LDLIBPATH = -libpath:$(CELIBPATH) |
216db7ee |
294 | #"-libpath:$(STDLIBPATH)" |
e4451f11 |
295 | STARTOBJS = $(CECONSOLEDIR)/$(MACHINE)/wmain.obj \ |
296 | $(CECONSOLEDIR)/$(MACHINE)/w32console.obj |
297 | !endif |
298 | |
299 | !if "$(MACHINE)" == "wince-sh3-pocket-wce300" |
300 | CC = shcl.exe |
301 | ARCH = SH3 |
302 | CPU = SH3 |
303 | TARGETCPU = SH3 |
304 | CEVersion = 300 |
305 | OSVERSION = WCE300 |
306 | PLATFORM = MS Pocket PC |
307 | MCFLAGS = -D _MT -D _DLL -DSH3 -D_SH3_ -DSHx -DPROCESSOR_SH3 \ |
308 | -DPALM_SIZE -DPOCKET_SIZE \ |
309 | -I $(CELIBDLLDIR)\inc |
2e64bfdb |
310 | MACH = -machine:sh3 |
e4451f11 |
311 | SUBSYS = -subsystem:windowsce,3.00 |
312 | CELIBPATH = $(CELIBDLLDIR)\$(MACHINE)-release |
313 | LDLIBPATH = -libpath:$(CELIBPATH) |
314 | STARTOBJS = $(CECONSOLEDIR)/$(MACHINE)/wmain.obj \ |
315 | $(CECONSOLEDIR)/$(MACHINE)/w32console.obj |
316 | !endif |
317 | |
318 | !if "$(MACHINE)" == "wince-arm-pocket-wce300" |
319 | CC = clarm.exe |
320 | ARCH = ARM |
321 | CPU = ARM |
322 | TARGETCPU = ARM |
323 | CEVersion = 300 |
324 | OSVERSION = WCE300 |
325 | PLATFORM = MS Pocket PC |
326 | MCFLAGS = -D ARM -D arm -D _ARM_ -D _arm_ -DPROCESSOR_ARM \ |
327 | -D _MT -D _DLL -DPALM_SIZE -DPOCKET_SIZE \ |
328 | -I $(CELIBDLLDIR)\inc |
329 | MACH = -machine:arm |
330 | SUBSYS = -subsystem:windowsce,3.00 |
331 | CELIBPATH = $(CELIBDLLDIR)\$(MACHINE)-release |
332 | LDLIBPATH = -libpath:$(CELIBPATH) |
333 | STARTOBJS = $(CECONSOLEDIR)/$(MACHINE)/wmain.obj \ |
334 | $(CECONSOLEDIR)/$(MACHINE)/w32console.obj |
335 | !endif |
336 | |
337 | ###################################################################### |
338 | # common section |
339 | |
340 | CEDEFS = -D_WINDOWS -D_WIN32_WCE=$(CEVersion) -DUNDER_CE=$(CEVersion) \ |
ca6c63e1 |
341 | $(MCFLAGS) -D PERL |
342 | |
e4451f11 |
343 | #CEDEFS = $(CEDEFS) -DDEBUGGING_OPS |
344 | |
345 | CECFLAGS = $(CEDEFS) |
346 | |
347 | !if "$(CFG)" == "DEBUG" |
348 | CECFLAGS = $(CECFLAGS) -Zi -Od |
349 | !endif |
350 | |
351 | !if "$(CFG)" == "RELEASE" |
352 | # -O2 and -Ot give internal compiler error in perl.c and lexer. |
353 | # Also the dll cannot be loaded by perl.exe... |
c96f74ce |
354 | !if "$(CPU)" == "SH3" |
355 | !else |
2e64bfdb |
356 | CECFLAGS = $(CECFLAGS) -O2 -Ot |
e4451f11 |
357 | !endif |
358 | |
c96f74ce |
359 | !endif |
360 | |
e4451f11 |
361 | RCDEFS = /l 0x407 /r /d "UNICODE" /d UNDER_CE=$(CEVersion) \ |
362 | /d _WIN32_WCE=$(CEVersion) |
363 | |
364 | PATH=$(CEPATH);$(PATH) |
365 | |
366 | INCLUDE=$(WCEROOT)\$(OSVERSION)\$(PLATFORM)\include |
367 | LIB=$(WCEROOT)\$(OSVERSION)\$(PLATFORM)\lib\$(ARCH) |
368 | |
369 | ###################################################################### |
370 | |
371 | !message |
372 | !message Compiling for $(MACHINE) |
373 | !message LIB=$(LIB) |
374 | !message INCLUDE=$(INCLUDE) |
375 | !message PATH=$(CEPATH) |
376 | !message |
377 | |
378 | ###################################################################### |
379 | # |
380 | # Additional compiler flags can be specified here. |
381 | # |
382 | |
383 | BUILDOPT = $(BUILDOPT) $(CECFLAGS) |
384 | |
e4451f11 |
385 | |
386 | !IF "$(CRYPT_SRC)$(CRYPT_LIB)" == "" |
387 | D_CRYPT = undef |
388 | !ELSE |
389 | D_CRYPT = define |
390 | CRYPT_FLAG = -DHAVE_DES_FCRYPT |
391 | !ENDIF |
392 | |
e4451f11 |
393 | !IF "$(PERL_MALLOC)" == "" |
394 | PERL_MALLOC = undef |
395 | !ENDIF |
396 | |
e4451f11 |
397 | !IF "$(USE_MULTI)" == "" |
398 | USE_MULTI = undef |
399 | !ENDIF |
400 | |
e4451f11 |
401 | !IF "$(USE_ITHREADS)" == "" |
402 | USE_ITHREADS = undef |
403 | !ENDIF |
404 | |
405 | !IF "$(USE_IMP_SYS)" == "" |
406 | USE_IMP_SYS = undef |
407 | !ENDIF |
408 | |
18f68570 |
409 | !IF "$(USE_PERLIO)" == "" |
410 | USE_PERLIO = undef |
411 | !ENDIF |
412 | |
e4451f11 |
413 | !IF "$(USE_PERLCRT)" == "" |
414 | USE_PERLCRT = undef |
415 | !ENDIF |
416 | |
3db8f154 |
417 | !IF "$(USE_IMP_SYS)$(USE_MULTI)" == "defineundef" |
e4451f11 |
418 | USE_MULTI = define |
419 | !ENDIF |
420 | |
acfe0abc |
421 | !IF "$(USE_ITHREADS)$(USE_MULTI)" == "defineundef" |
e4451f11 |
422 | USE_MULTI = define |
e4451f11 |
423 | !ENDIF |
424 | |
3db8f154 |
425 | !IF "$(USE_MULTI)" != "undef" |
e4451f11 |
426 | BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_CONTEXT |
427 | !ENDIF |
428 | |
429 | !IF "$(USE_IMP_SYS)" != "undef" |
430 | BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_SYS |
431 | !ENDIF |
432 | |
18f68570 |
433 | !IF "$(USE_PERLIO)" == "define" |
434 | BUILDOPT = $(BUILDOPT) -DUSE_PERLIO |
435 | !ENDIF |
436 | |
47bcb90d |
437 | !IF "$(CROSS_NAME)" == "" |
2e64bfdb |
438 | CROSS_NAME = $(MACHINE) |
47bcb90d |
439 | !ENDIF |
440 | |
e4451f11 |
441 | # new option - automatically defined in perl.h... |
442 | #BUILDOPT = $(BUILDOPT) -DUSE_ENVIRON_ARRAY |
443 | |
444 | PROCESSOR_ARCHITECTURE = $(TARGETCPU) |
445 | ARCHNAME = $(PLATFORM)-$(OSVERSION)-$(PROCESSOR_ARCHITECTURE) |
e4451f11 |
446 | ARCHDIR = ..\lib\$(ARCHNAME) |
447 | COREDIR = ..\lib\CORE |
e2a02c1e |
448 | XCOREDIR = ..\xlib\$(CROSS_NAME)\CORE |
e4451f11 |
449 | AUTODIR = ..\lib\auto |
450 | LIBDIR = ..\lib |
451 | EXTDIR = ..\ext |
452 | PODDIR = ..\pod |
453 | EXTUTILSDIR = $(LIBDIR)\ExtUtils |
454 | |
455 | LINK32 = link |
456 | LIB32 = $(LINK32) -lib |
457 | RSC = rc |
458 | |
814ffeea |
459 | INCLUDES = -I.\include -I..\win32\include -I. -I.. |
e4451f11 |
460 | DEFINES = -DWIN32 -D_CONSOLE -DNO_STRICT $(CRYPT_FLAG) $(CECFLAGS) |
461 | LOCDEFS = -DPERLDLL -DPERL_CORE |
216db7ee |
462 | CXX_FLAG = -TP |
e4451f11 |
463 | |
464 | PERLEXE_RES = perl.res |
465 | PERLDLL_RES = |
466 | |
e4451f11 |
467 | !if "$(CFG)" == "RELEASE" |
468 | CELIB = celib.lib |
469 | !endif |
470 | |
471 | !if "$(CFG)" == "DEBUG" |
472 | CELIB = celib.lib |
473 | !endif |
474 | |
475 | CELIBS = -nodefaultlib \ |
476 | winsock.lib $(CELIB) coredll.lib |
477 | |
478 | !if $(CEVersion) > 200 |
479 | CELIBS = $(CELIBS) corelibc.lib |
480 | !else |
481 | CELIBS = $(CELIBS) msvcrt.lib |
482 | !endif |
483 | |
484 | LIBBASEFILES = $(CRYPT_LIB) $(CELIBS) |
485 | |
486 | LIBFILES = $(LIBBASEFILES) $(LIBC) |
487 | |
488 | CFLAGS = -nologo -Gf -W3 $(INCLUDES) $(DEFINES) $(LOCDEFS) \ |
489 | $(PCHFLAGS) $(OPTIMIZE) |
490 | |
491 | LINK_FLAGS = -nologo -machine:$(PROCESSOR_ARCHITECTURE) |
492 | |
493 | !if "$(CFG)" == "DEBUG" |
494 | LINK_FLAGS = $(LINK_FLAGS) -debug:full -pdb:none |
2e64bfdb |
495 | !else |
496 | LINK_FLAGS = $(LINK_FLAGS) -release |
e4451f11 |
497 | !endif |
498 | |
499 | OBJOUT_FLAG = -Fo |
500 | EXEOUT_FLAG = -Fe |
501 | |
502 | CFLAGS_O = $(CFLAGS) $(BUILDOPT) |
503 | |
504 | o = .obj |
505 | |
506 | # |
507 | # Rules |
508 | # |
509 | |
510 | .SUFFIXES : .c $(o) .dll .lib .exe .rc .res |
511 | |
512 | .c$(o): |
513 | $(CC) -c -I$(<D) $(CFLAGS_O) $(OBJOUT_FLAG)$@ $< |
514 | |
515 | .y.c: |
516 | $(NOOP) |
517 | |
518 | $(o).dll: |
519 | $(LINK32) -dll $(SUBSYS) $(LDLIBPATH) \ |
520 | -implib:$(*B).lib -def:$(*B).def \ |
521 | -out:$@ $(LINK_FLAGS) $(LIBFILES) $< $(LIBPERL) |
522 | |
523 | .rc.res: |
524 | $(RSC) -i.. $< |
525 | |
526 | # This must be relative to ../lib/CORE, else the ext dll build fails... |
e2a02c1e |
527 | PERLIMPLIB_EXP = ..\..\..\xlib\$(CROSS_NAME)\CORE\perl$(PV).lib |
e4451f11 |
528 | PERLIMPLIB = $(PERLCEDIR)\$(MACHINE)\perl$(PV).lib |
529 | PERLDLL = $(MACHINE)\perl$(PV).dll |
530 | |
531 | DLLDIR = $(MACHINE)\dll |
532 | PERLEXE = $(MACHINE)\perl.exe |
533 | |
e2a02c1e |
534 | CONFIGPM = ..\xlib\$(CROSS_NAME)\Config.pm |
e4451f11 |
535 | MINIMOD = ..\lib\ExtUtils\Miniperl.pm |
536 | |
fefd7080 |
537 | # Nominate a target which causes extensions to be re-built |
538 | # This used to be $(PERLEXE), but at worst it is the .dll that they depend |
539 | # on and really only the interface - i.e. the .def file used to export symbols |
540 | # from the .dll |
541 | PERLDEP = perldll.def |
542 | |
e4451f11 |
543 | MAKE = nmake -nologo |
544 | |
545 | CFGSH_TMPL = config.ce |
546 | CFGH_TMPL = config_H.ce |
547 | |
548 | # |
549 | # filenames given to xsubpp must have forward slashes (since it puts |
550 | # full pathnames in #line strings) |
fefd7080 |
551 | XSUBPP = $(HPERL) -I..\..\lib -MCross=$(CROSS_NAME) ..\$(EXTUTILSDIR)\xsubpp \ |
e4451f11 |
552 | -C++ -prototypes |
553 | |
554 | MICROCORE_SRC = \ |
555 | ..\av.c \ |
556 | ..\deb.c \ |
557 | ..\doio.c \ |
558 | ..\doop.c \ |
559 | ..\dump.c \ |
560 | ..\globals.c \ |
561 | ..\gv.c \ |
562 | ..\hv.c \ |
563 | ..\mg.c \ |
564 | ..\op.c \ |
b475b3e6 |
565 | ..\pad.c \ |
e4451f11 |
566 | ..\perl.c \ |
567 | ..\perlapi.c \ |
568 | ..\perly.c \ |
569 | ..\pp.c \ |
570 | ..\pp_ctl.c \ |
571 | ..\pp_hot.c \ |
84d4ea48 |
572 | ..\pp_pack.c \ |
573 | ..\pp_sort.c \ |
e4451f11 |
574 | ..\pp_sys.c \ |
10bc17b6 |
575 | ..\reentr.c \ |
e4451f11 |
576 | ..\regcomp.c \ |
577 | ..\regexec.c \ |
578 | ..\run.c \ |
579 | ..\scope.c \ |
580 | ..\sv.c \ |
581 | ..\taint.c \ |
582 | ..\toke.c \ |
583 | ..\universal.c \ |
584 | ..\utf8.c \ |
585 | ..\util.c \ |
586 | ..\xsutils.c |
587 | |
588 | EXTRACORE_SRC = $(EXTRACORE_SRC) perllib.c |
589 | |
590 | !IF "$(PERL_MALLOC)" == "define" |
591 | EXTRACORE_SRC = $(EXTRACORE_SRC) ..\malloc.c |
592 | !ENDIF |
593 | |
42165d27 |
594 | EXTRACORE_SRC = $(EXTRACORE_SRC) ..\perlio.c .\win32io.c |
e4451f11 |
595 | |
596 | WIN32_SRC = \ |
597 | .\wince.c \ |
598 | .\wincesck.c \ |
599 | .\win32thread.c |
600 | |
601 | !IF "$(CRYPT_SRC)" != "" |
602 | WIN32_SRC = $(WIN32_SRC) .\$(CRYPT_SRC) |
603 | !ENDIF |
604 | |
605 | DLL_SRC = $(DYNALOADER).c |
606 | |
607 | CORE_NOCFG_H = \ |
608 | ..\av.h \ |
609 | ..\cop.h \ |
610 | ..\cv.h \ |
611 | ..\dosish.h \ |
612 | ..\embed.h \ |
613 | ..\form.h \ |
614 | ..\gv.h \ |
615 | ..\handy.h \ |
616 | ..\hv.h \ |
617 | ..\iperlsys.h \ |
618 | ..\mg.h \ |
619 | ..\nostdio.h \ |
620 | ..\op.h \ |
621 | ..\opcode.h \ |
622 | ..\perl.h \ |
623 | ..\perlapi.h \ |
624 | ..\perlsdio.h \ |
625 | ..\perlsfio.h \ |
626 | ..\perly.h \ |
627 | ..\pp.h \ |
628 | ..\proto.h \ |
629 | ..\regexp.h \ |
630 | ..\scope.h \ |
631 | ..\sv.h \ |
632 | ..\thread.h \ |
633 | ..\unixish.h \ |
634 | ..\utf8.h \ |
635 | ..\util.h \ |
636 | ..\warnings.h \ |
637 | ..\XSUB.h \ |
638 | ..\EXTERN.h \ |
639 | ..\perlvars.h \ |
640 | ..\intrpvar.h \ |
641 | ..\thrdvar.h \ |
642 | .\include\dirent.h \ |
643 | .\include\netdb.h \ |
644 | .\include\sys\socket.h \ |
645 | .\win32.h |
646 | |
2e64bfdb |
647 | CORE_H = $(CORE_NOCFG_H) .\config.h |
648 | |
649 | MICROCORE_OBJ = $(MICROCORE_SRC:.c=.obj) |
650 | CORE_OBJ = $(MICROCORE_OBJ) $(EXTRACORE_SRC:.c=.obj) |
651 | WIN32_OBJ = $(WIN32_SRC:.c=.obj) |
652 | #WIN32_OBJ = $(WIN32_OBJ:.\=.\$(DLLDIR)\) |
653 | MINICORE_OBJ = $(MICROCORE_OBJ:..\=.\$(DLLDIR)\) \ |
654 | $(MINIDIR)\miniperlmain$(o) \ |
655 | $(MINIDIR)\perlio$(o) |
656 | MINIWIN32_OBJ = $(WIN32_OBJ:.\=.\$(DLLDIR)\) |
657 | MINI_OBJ = $(MINICORE_OBJ) $(MINIWIN32_OBJ) |
658 | DLL_OBJ = $(DLL_SRC:.c=.obj) |
659 | X2P_OBJ = $(X2P_SRC:.c=.obj) |
660 | |
661 | PERLDLL_OBJ = $(CORE_OBJ) |
662 | PERLEXE_OBJ = perlmain$(o) |
663 | |
664 | PERLDLL_OBJ = $(PERLDLL_OBJ) $(WIN32_OBJ) $(DLL_OBJ) |
665 | #PERLEXE_OBJ = $(PERLEXE_OBJ) $(WIN32_OBJ) $(DLL_OBJ) |
666 | |
e4451f11 |
667 | !IF "$(USE_SETARGV)" != "" |
668 | SETARGV_OBJ = setargv$(o) |
669 | !ENDIF |
670 | |
671 | DYNAMIC_EXT = Socket IO Fcntl Opcode SDBM_File POSIX attrs Thread B re \ |
672 | Data/Dumper Devel/Peek ByteLoader Devel/DProf File/Glob \ |
673 | Sys/Hostname |
674 | |
675 | STATIC_EXT = DynaLoader |
e4451f11 |
676 | |
677 | DYNALOADER = $(EXTDIR)\DynaLoader\DynaLoader |
e4451f11 |
678 | |
679 | ERRNO_PM = $(LIBDIR)\Errno.pm |
680 | |
e4451f11 |
681 | |
682 | EXTENSION_PM = \ |
683 | $(ERRNO_PM) |
684 | |
685 | POD2HTML = $(PODDIR)\pod2html |
686 | POD2MAN = $(PODDIR)\pod2man |
687 | POD2LATEX = $(PODDIR)\pod2latex |
688 | POD2TEXT = $(PODDIR)\pod2text |
689 | |
690 | CFG_VARS = \ |
691 | "INST_DRV=$(INST_DRV)" \ |
692 | "INST_TOP=$(INST_TOP)" \ |
693 | "INST_VER=$(INST_VER)" \ |
694 | "INST_ARCH=$(INST_ARCH)" \ |
695 | "archname=$(ARCHNAME)" \ |
74d57dc4 |
696 | "CC=$(CC)" \ |
e4451f11 |
697 | "ccflags=$(OPTIMIZE) $(DEFINES) $(BUILDOPT)" \ |
698 | "cf_by=Rainer Keuchel" \ |
2e64bfdb |
699 | "cf_email=$(EMAIL)" \ |
e4451f11 |
700 | "d_crypt=$(D_CRYPT)" \ |
701 | "d_mymalloc=$(PERL_MALLOC)" \ |
702 | "libs=$(LIBFILES)" \ |
703 | "incpath=$(CCINCDIR)" \ |
704 | "libperl=$(PERLIMPLIB_EXP)" \ |
705 | "libpth=$(LIBPATH)" \ |
706 | "libc=$(LIBC)" \ |
707 | "make=nmake" \ |
708 | "static_ext=$(STATIC_EXT)" \ |
709 | "dynamic_ext=$(DYNAMIC_EXT)" \ |
e4451f11 |
710 | "useithreads=$(USE_ITHREADS)" \ |
e4451f11 |
711 | "usemultiplicity=$(USE_MULTI)" \ |
18f68570 |
712 | "useperlio=$(USE_PERLIO)" \ |
e4451f11 |
713 | "LINK_FLAGS=$(LDLIBPATH) $(LINK_FLAGS) $(SUBSYS)" \ |
714 | "optimize=$(OPTIMIZE)" |
715 | |
716 | # |
717 | # Top targets |
718 | # |
719 | |
74a9a7e5 |
720 | all: hostminiperl $(MINIMOD) $(CONFIGPM) $(PERLEXE) Extensions |
e4451f11 |
721 | |
722 | $(DYNALOADER)$(o) : $(DYNALOADER).c $(CORE_H) $(EXTDIR)\DynaLoader\dlutils.c |
723 | |
e2a02c1e |
724 | $(CONFIGPM): .\config.h ..\config.sh ..\minimod.pl |
fefd7080 |
725 | cd .. && $(HPERL) configpm --cross=$(CROSS_NAME) --no-glossary |
e2a02c1e |
726 | -mkdir $(XCOREDIR) |
727 | $(XCOPY) ..\*.h $(XCOREDIR)\*.* |
0f133d1f |
728 | $(XCOPY) ..\*.inc $(XCOREDIR)\*.* |
e2a02c1e |
729 | $(XCOPY) *.h $(XCOREDIR)\*.* |
e4451f11 |
730 | $(XCOPY) ..\ext\re\re.pm $(LIBDIR)\*.* |
e2a02c1e |
731 | $(RCOPY) include $(XCOREDIR)\*.* |
814ffeea |
732 | $(XCOPY) ..\win32\include $(XCOREDIR)\*.* |
fefd7080 |
733 | -$(HPERL) -I..\lib -MCross=$(CROSS_NAME) config_h.PL "INST_VER=$(INST_VER)" "CORE_DIR=$(XCOREDIR)" |
734 | if errorlevel 1 $(MAKE) /$(MAKEFLAGS) $(CONFIGPM) |
e4451f11 |
735 | |
e2a02c1e |
736 | .\config.h: |
737 | -del /f config.h |
738 | copy config_H.ce config.h |
739 | |
740 | ..\config.sh: config.ce config_sh.PL |
fefd7080 |
741 | $(HPERL) -I..\lib -I..\win32 config_sh.PL $(CFG_VARS) config.ce > ..\config.sh |
e4451f11 |
742 | |
743 | $(MINIMOD) : ..\minimod.pl |
18f68570 |
744 | cd .. && $(HPERL) minimod.pl > lib\ExtUtils\Miniperl.pm |
e4451f11 |
745 | |
746 | perlmain.c : runperl.c |
747 | $(COPY) runperl.c perlmain.c |
748 | |
749 | $(DYNALOADER).c: $(EXTDIR)\DynaLoader\dl_win32.xs $(CONFIGPM) |
750 | if not exist $(AUTODIR) mkdir $(AUTODIR) |
751 | cd $(EXTDIR)\$(*B) |
3f2394f2 |
752 | $(HPERL) -I..\..\lib -MCross=$(CROSS_NAME) $(*B)_pm.PL |
753 | $(HPERL) -I..\..\lib -MCross=$(CROSS_NAME) XSLoader_pm.PL |
e4451f11 |
754 | cd ..\..\wince |
755 | $(XCOPY) $(EXTDIR)\$(*B)\$(*B).pm $(LIBDIR)\$(NULL) |
756 | $(XCOPY) $(EXTDIR)\$(*B)\XSLoader.pm $(LIBDIR)\$(NULL) |
757 | cd $(EXTDIR)\$(*B) |
758 | $(XSUBPP) dl_win32.xs > $(*B).c |
759 | cd ..\..\wince |
760 | |
761 | $(EXTDIR)\DynaLoader\dl_win32.xs: dl_win32.xs |
762 | $(COPY) dl_win32.xs $(EXTDIR)\DynaLoader\dl_win32.xs |
763 | |
fefd7080 |
764 | #---------------------------------------------------------------------------------- |
94081db1 |
765 | NOT_COMPILE_EXT = |
766 | !if "$(MACHINE)" == "wince-sh3-palm-wce211" |
767 | NOT_COMPILE_EXT = $(NOT_COMPILE_EXT) !XS/Typemap |
768 | !endif |
769 | !if "$(MACHINE)" == "wince-mips-palm-wce211" |
770 | NOT_COMPILE_EXT = $(NOT_COMPILE_EXT) !XS/Typemap |
771 | !endif |
772 | |
fefd7080 |
773 | Extensions: ..\win32\buildext.pl $(PERLDEP) $(CONFIGPM) |
774 | $(HPERL) -I..\lib -I..\win32 -MCross=$(CROSS_NAME) ..\win32\buildext.pl $(MAKE) $(PERLDEP) $(EXTDIR) \ |
94081db1 |
775 | !POSIX $(NOT_COMPILE_EXT) |
fefd7080 |
776 | |
777 | Extensions_clean: |
778 | -if exist $(MINIPERL) $(MINIPERL) -I..\lib buildext.pl $(MAKE) $(PERLDEP) $(EXTDIR) clean |
779 | |
780 | #---------------------------------------------------------------------------------- |
781 | |
476a6acb |
782 | $(PERLEXE_RES): perl.rc perl.ico |
e4451f11 |
783 | rc $(RCDEFS) perl.rc |
784 | |
785 | clean: |
786 | -rm -f $(MACHINE)/dll/* |
787 | -rm -f $(MACHINE)/*.obj |
788 | -rm -f $(MACHINE)/*.exe |
789 | -rm -f $(MACHINE)/*.dll |
790 | -rm -f $(MACHINE)/*.lib |
791 | -rm -f ../config.sh ../lib/Config.pm |
792 | -rm -f config.h perl.res |
793 | |
e4451f11 |
794 | XDLLOBJS = \ |
795 | $(DLLDIR)\av.obj \ |
796 | $(DLLDIR)\deb.obj \ |
797 | $(DLLDIR)\doio.obj \ |
798 | $(DLLDIR)\doop.obj \ |
799 | $(DLLDIR)\dump.obj \ |
800 | $(DLLDIR)\globals.obj \ |
801 | $(DLLDIR)\gv.obj \ |
802 | $(DLLDIR)\hv.obj \ |
803 | $(DLLDIR)\locale.obj \ |
7ee2227d |
804 | $(DLLDIR)\mathoms.obj \ |
e4451f11 |
805 | $(DLLDIR)\mg.obj \ |
806 | $(DLLDIR)\numeric.obj \ |
807 | $(DLLDIR)\op.obj \ |
b475b3e6 |
808 | $(DLLDIR)\pad.obj \ |
e4451f11 |
809 | $(DLLDIR)\perl.obj \ |
810 | $(DLLDIR)\perlapi.obj \ |
811 | $(DLLDIR)\perlio.obj \ |
812 | $(DLLDIR)\perly.obj \ |
813 | $(DLLDIR)\pp.obj \ |
814 | $(DLLDIR)\pp_ctl.obj \ |
815 | $(DLLDIR)\pp_hot.obj \ |
816 | $(DLLDIR)\pp_pack.obj \ |
84d4ea48 |
817 | $(DLLDIR)\pp_sort.obj \ |
e4451f11 |
818 | $(DLLDIR)\pp_sys.obj \ |
10bc17b6 |
819 | $(DLLDIR)\reentr.obj \ |
e4451f11 |
820 | $(DLLDIR)\regcomp.obj \ |
821 | $(DLLDIR)\regexec.obj \ |
822 | $(DLLDIR)\run.obj \ |
823 | $(DLLDIR)\scope.obj \ |
824 | $(DLLDIR)\sv.obj \ |
825 | $(DLLDIR)\taint.obj \ |
826 | $(DLLDIR)\toke.obj \ |
827 | $(DLLDIR)\universal.obj \ |
828 | $(DLLDIR)\utf8.obj \ |
829 | $(DLLDIR)\util.obj \ |
830 | $(DLLDIR)\win32thread.obj \ |
831 | $(DLLDIR)\wince.obj \ |
42165d27 |
832 | $(DLLDIR)\win32io.obj \ |
e4451f11 |
833 | $(DLLDIR)\wincesck.obj \ |
834 | $(DLLDIR)\xsutils.obj \ |
835 | $(DLLDIR)\perllib.obj \ |
836 | $(DLLDIR)\DynaLoader.obj |
2e64bfdb |
837 | !IF "$(PERL_MALLOC)" == "define" |
838 | XDLLOBJS = $(XDLLOBJS) $(DLLDIR)\malloc.obj |
839 | !ENDIF |
81003058 |
840 | !IF "$(CRYPT_SRC)" != "" |
841 | XDLLOBJS = $(XDLLOBJS) $(DLLDIR)\fcrypt.obj |
842 | !ENDIF |
e4451f11 |
843 | |
844 | {$(SRCDIR)}.c{$(DLLDIR)}.obj: |
216db7ee |
845 | $(CC) -c $(CFLAGS_O) -DPERL_EXTERNAL_GLOB -Fo$(DLLDIR)\ $< |
846 | |
847 | # compiler explains that it will optimize toke.c if we'll give it an |
848 | # option -QMOb<num> with num>=4178 |
849 | $(DLLDIR)\toke.obj: |
850 | $(CC) -c $(CFLAGS_O) -QMOb9000 -DPERL_EXTERNAL_GLOB -Fo$(DLLDIR)\ ..\toke.c |
e4451f11 |
851 | |
852 | {$(SRCDIR)/wince}.c{$(DLLDIR)}.obj: |
216db7ee |
853 | $(CC) -c $(CFLAGS_O) -DPERL_EXTERNAL_GLOB -Fo$(DLLDIR)\ $< |
854 | |
855 | # -DPERL_IMPLICIT_SYS needs C++ for perllib.c |
856 | # This is the only file that depends on perlhost.h, vmem.h, and vdir.h |
857 | !IF "$(USE_IMP_SYS)" == "define" |
8f33b42a |
858 | $(DLLDIR)\perllib$(o) : perllib.c .\perlhost.h .\vdir.h .\vmem.h |
216db7ee |
859 | $(CC) -c -I. $(CFLAGS_O) $(CXX_FLAG) $(OBJOUT_FLAG)$@ perllib.c |
860 | rem (frustrated) mv perllib.obj $(DLLDIR) |
861 | !ENDIF |
e4451f11 |
862 | |
47bcb90d |
863 | perldll.def : $(HPERL) $(CONFIGPM) ..\global.sym ..\pp.sym ..\makedef.pl |
18f68570 |
864 | $(HPERL) -w ..\makedef.pl PLATFORM=wince $(OPTIMIZE) $(DEFINES) $(BUILDOPT) \ |
865 | CCTYPE=$(CCTYPE) -DPERL_DLL=$(PERLDLL) > perldll.def |
866 | |
e4451f11 |
867 | $(PERLDLL) : $(DLLDIR) perldll.def $(XDLLOBJS) $(PERLDLL_RES) |
868 | $(LINK32) -dll -def:perldll.def -out:$@ \ |
869 | $(SUBSYS) $(LDLIBPATH) \ |
870 | $(LINK_FLAGS) $(LIBFILES) \ |
871 | $(XDLLOBJS) $(PERLDLL_RES) |
872 | |
873 | $(DLLDIR) : |
874 | if not exist "$(DLLDIR)" mkdir "$(DLLDIR)" |
875 | |
876 | $(DLLDIR)\DynaLoader.obj: $(EXTDIR)\DynaLoader\DynaLoader.c |
216db7ee |
877 | $(CC) -c $(CFLAGS_O) -DPERL_EXTERNAL_GLOB -Fo$(DLLDIR)\ \ |
e4451f11 |
878 | $(EXTDIR)\DynaLoader\DynaLoader.c |
879 | |
880 | XPERLEXEOBJS = \ |
881 | $(MACHINE)\perlmain.obj |
882 | |
883 | $(PERLEXE) : $(PERLDLL) $(CONFIGPM) $(XPERLEXEOBJS) $(PERLEXE_RES) $(STARTOBJS) |
e2a02c1e |
884 | $(XCOPY) $(MACHINE)\*.lib $(XCOREDIR) |
2e64bfdb |
885 | $(LINK32) $(SUBSYS) $(LDLIBPATH) \ |
e4451f11 |
886 | -entry:wWinMainCRTStartup \ |
887 | -out:$(MACHINE)\perl.exe \ |
888 | -stack:0x100000 $(LINK_FLAGS) $(STARTOBJS) $(XPERLEXEOBJS) \ |
889 | $(PERLIMPLIB) $(PERLEXE_RES) $(LIBFILES) |
890 | |
891 | $(MACHINE)\perlmain.obj : perlmain.c |
892 | $(CC) $(CFLAGS_O) -UPERLDLL -Fo$(MACHINE)\ -c perlmain.c |
893 | |
894 | iodll: $(IO_DLL) |
895 | socketdll: $(SOCKET_DLL) |
896 | dumperdll: $(DUMPER_DLL) |
897 | |
898 | dlls: socketdll iodll dumperdll |
899 | -xmkdir -p $(MACHINE)/lib/auto/IO |
900 | cp ../lib/auto/IO/IO.bs $(MACHINE)/lib/auto/IO |
901 | cp ../lib/auto/IO/IO.dll $(MACHINE)/lib/auto/IO |
902 | -xmkdir $(MACHINE)/lib/auto/Socket |
903 | cp ../lib/auto/Socket/Socket.bs $(MACHINE)/lib/auto/Socket |
904 | cp ../lib/auto/Socket/Socket.dll $(MACHINE)/lib/auto/Socket |
905 | -xmkdir -p $(MACHINE)/lib/auto/Data/Dumper |
906 | cp ../lib/auto/Data/Dumper/Dumper.bs $(MACHINE)/lib/auto/Data/Dumper |
907 | cp ../lib/auto/Data/Dumper/Dumper.dll $(MACHINE)/lib/auto/Data/Dumper |
908 | |
909 | makedist: all dlls |
910 | $(COPY) $(CELIBPATH)\celib.dll $(MACHINE) |
911 | cp perl.txt $(MACHINE) |
912 | cp registry.bat $(MACHINE) |
913 | cp ../lib/Config.pm $(MACHINE)/lib |
914 | cd $(MACHINE) |
915 | rm -f perl-$(MACHINE).tar.gz |
916 | sh -c "tar cf perl-$(MACHINE).tar *.exe *.dll *.txt *.bat lib" |
917 | gzip -9 perl-$(MACHINE).tar |
918 | mv perl-$(MACHINE).tar.gz h:/freenet/new |
919 | cd .. |
920 | |
921 | !if "$(MACHINE)" == "wince-arm-hpc-wce300" |
922 | install: all |
18f68570 |
923 | $(CECOPY) pc:$(MACHINE)/perl.exe ce:$(INSTALL_ROOT)/bin |
924 | $(CECOPY) pc:$(MACHINE)/perl$(PV).dll ce:$(INSTALL_ROOT)/bin |
e4451f11 |
925 | install_dlls: dlls |
18f68570 |
926 | $(CECOPY) pc:../lib/auto/IO/io.dll ce:$(INSTALL_ROOT)/lib/auto/IO/io.dll |
42165d27 |
927 | !else |
928 | install: all |
929 | -cemkdir "$(INSTALL_ROOT)" |
930 | -cemkdir "$(INSTALL_ROOT)\bin" |
931 | -cemkdir "$(INSTALL_ROOT)\lib" |
932 | $(CECOPY) "pc:$(MACHINE)/perl.exe" "ce:$(INSTALL_ROOT)/bin" |
18f68570 |
933 | $(CECOPY) "pc:$(MACHINE)/perl$(PV).dll" "ce:$(INSTALL_ROOT)/bin" |
e2a02c1e |
934 | $(CECOPY) "pc:../xlib/$(CROSS_NAME)/Config.pm" "ce:$(INSTALL_ROOT)/lib" |
e4451f11 |
935 | !endif |
936 | |
2e64bfdb |
937 | dist: all |
c96f74ce |
938 | $(HPERL) -I..\lib -MCross=$(CROSS_NAME) makedist.pl --distdir=dist-$(CROSS_NAME) --cross-name=$(CROSS_NAME) |
939 | |
940 | zipdist: all |
941 | $(HPERL) -I..\lib -MCross=$(CROSS_NAME) makedist.pl --distdir=dist-$(CROSS_NAME) --cross-name=$(CROSS_NAME) |
942 | $(HPERL) -I..\lib -MCross=$(CROSS_NAME) makedist.pl --distdir=dist-$(CROSS_NAME) --cross-name=$(CROSS_NAME) --zip |
943 | |
944 | zip: |
945 | $(HPERL) -I..\lib -MCross=$(CROSS_NAME) makedist.pl --distdir=dist-$(CROSS_NAME) --cross-name=$(CROSS_NAME) --zip |
2e64bfdb |
946 | |
18f68570 |
947 | perl.ico: |
948 | $(HPERL) makeico.pl |
e4451f11 |
949 | |
18f68570 |
950 | hostminiperl: ..\miniperl.exe |
e4451f11 |
951 | |
18f68570 |
952 | ..\miniperl.exe: |
953 | cd ../win32 |
954 | set PATH=$(CCHOME)\bin;$(PATH) |
47bcb90d |
955 | $(MAKE) -f Makefile "CCHOME=$(MSVCDIR)" "CCINCDIR=$(CCHOME)\include" "CCLIBDIR=$(CCHOME)\lib" "INCLUDE=$(CCHOME)\include" "LIB=$(CCHOME)\lib" "LINK_FLAGS=" .\config.h ..\miniperl.exe |
18f68570 |
956 | cd ../wince |
476a6acb |
957 | |
47bcb90d |
958 | host-install: |
959 | perl -MConfig -MExtUtils::Install -we "install({'../lib/CORE', qq#$$Config{installprefixexp}/xlib/$(CROSS_NAME)/CORE#},1)" |
960 | perl -MConfig -MExtUtils::Install -we "install({'../xlib/$(CROSS_NAME)', qq#$$Config{installprefixexp}/xlib/$(CROSS_NAME)#},1)" |
961 | perl -MConfig -MFile::Copy -we "copy qq#./$(MACHINE)/perl$(PV).lib#, qq#$$Config{installprefixexp}/xlib/$(CROSS_NAME)/CORE#" |
962 | perl -MConfig -MFile::Copy -we "copy qq#../lib/Cross.pm#, qq#$$Config{installprefixexp}/lib#" |
74a9a7e5 |
963 | perl -MConfig -we "system qq#perl -pi.bak -we \"s{((arch^|priv)libexp)='.*'}{\$$1='# . \ |
964 | quotemeta($$Config{installprefixexp}) . \ |
965 | qq#/xlib/$(CROSS_NAME)'}\" $$Config{installprefixexp}/xlib/$(CROSS_NAME)/Config.pm#" |