This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
40dff94f3dcb37dab1c7d112e19b2f297490c573
[perl5.git] / wince / Makefile.ce
1 # perl makefile for wince
2 #
3 # Time-stamp: <01/08/01 21:11:35 keuchel@w2k>
4
5 SRCDIR     = ..
6 PV         = 57
7 INST_VER   = 5.7.2
8 PERLCEDIR  = H:\src\wince\perl\wince
9 WCEROOT    = N:\Windows CE Tools
10 #WCEROOT    = D:\Windows CE Tools
11 NTPERL     = N:\Programme\perl\bin\perl.exe
12 #NTPERL     = D:\Programme\ActiveState\perl-5.6\bin\Perl.exe
13 CEPATH     = N:\Programme\Microsoft eMbedded Tools\EVC\WCE211\BIN
14 #CEPATH     = D:\Programme\Microsoft eMbedded Tools\EVC\WCE211\BIN
15 CELIBDLLDIR  = h:\src\wince\celib-palm
16 CECONSOLEDIR = h:\src\wince\w32console
17 # Only for WIN2000
18 YES        = /y
19 COPY       = copy $(YES)
20 XCOPY      = xcopy $(YES) /f /r /i /d
21 RCOPY      = xcopy $(YES) /f /r /i /e /d
22 NOOP       = @echo
23 # keep this untouched!
24 NULL       =
25
26 CFG=DEBUG
27 #CFG=RELEASE
28
29 !if "$(MACHINE)" == ""
30 MACHINE=wince-arm-hpc-wce300
31 #MACHINE=wince-arm-hpc-wce211
32 #MACHINE=wince-sh3-hpc-wce211
33 #MACHINE=wince-mips-hpc-wce211
34 #MACHINE=wince-sh3-hpc-wce200
35 #MACHINE=wince-mips-hpc-wce200
36 #MACHINE=wince-arm-pocket-wce300
37 #MACHINE=wince-mips-pocket-wce300
38 #MACHINE=wince-sh3-pocket-wce300
39 #MACHINE=wince-x86em-pocket-wce300
40 #MACHINE=wince-mips-palm-wce211
41 #MACHINE=wince-sh3-palm-wce211
42 #MACHINE=wince-x86em-palm-wce211
43 !endif
44
45 ######################################################################
46 # machines
47
48 !if "$(MACHINE)" == "wince-sh3-hpc-wce211"
49 CC         = shcl.exe
50 ARCH       = SH3
51 CPU        = SH3
52 TARGETCPU  = SH3
53 CEVersion  = 211
54 OSVERSION  = WCE211
55 PLATFORM   = MS HPC Pro
56 MCFLAGS    = -MDd -DSH3 -D_SH3_ -DSHx -DPROCESSOR_SH3 -DPALM_SIZE \
57              -I $(CELIBDLLDIR)\inc
58 SUBSYS     = -subsystem:windowsce,2.11
59 CELIBPATH  = $(CELIBDLLDIR)\$(MACHINE)-release
60 LDLIBPATH  = -libpath:$(CELIBPATH)
61 STARTOBJS  = $(CECONSOLEDIR)/$(MACHINE)/wmain.obj \
62              $(CECONSOLEDIR)/$(MACHINE)/w32console.obj
63 !endif
64
65 !if "$(MACHINE)" == "wince-mips-hpc-wce211"
66 CC         = clmips.exe
67 ARCH       = MIPS
68 CPU        = MIPS
69 TARGETCPU  = MIPS
70 CEVersion  = 211
71 OSVERSION  = WCE211
72 PLATFORM   = MS HPC Pro
73 MCFLAGS    = -D _MT -D _DLL \
74              -D MIPS -D mips -D _MIPS_ -D _mips_ -DPROCESSOR_MIPS \
75              -D PALM_SIZE \
76              -I $(CELIBDLLDIR)\inc
77 SUBSYS     = -subsystem:windowsce,2.11
78 CELIBPATH  = $(CELIBDLLDIR)\$(MACHINE)-release
79 LDLIBPATH  = -libpath:$(CELIBPATH)
80 STARTOBJS  = $(CECONSOLEDIR)/$(MACHINE)/wmain.obj \
81              $(CECONSOLEDIR)/$(MACHINE)/w32console.obj
82 !endif
83
84 !if "$(MACHINE)" == "wince-mips-hpc-wce200"
85 CC         = clmips.exe
86 ARCH       = MIPS
87 CPU        = MIPS
88 TARGETCPU  = MIPS
89 CEVersion  = 200
90 OSVERSION  = WCE200
91 PLATFORM   = MS HPC
92 # MUST USE -MD to get the right FPE stuff...
93 MCFLAGS    = -D _MT -D _DLL -MD \
94              -D MIPS -D mips -D _MIPS_ -D _mips_ -DPROCESSOR_MIPS \
95              -D PALM_SIZE \
96              -I $(CELIBDLLDIR)\inc
97 SUBSYS     = -subsystem:windowsce,2.00
98 CELIBPATH  = $(CELIBDLLDIR)\$(MACHINE)-release
99 LDLIBPATH  = -libpath:$(CELIBPATH)
100 STARTOBJS  = $(CECONSOLEDIR)/$(MACHINE)/wmain.obj \
101              $(CECONSOLEDIR)/$(MACHINE)/w32console.obj
102 !endif
103
104 !if "$(MACHINE)" == "wince-sh3-hpc-wce200"
105 CC         = shcl.exe
106 ARCH       = SH3
107 CPU        = SH3
108 TARGETCPU  = SH3
109 CEVersion  = 200
110 OSVERSION  = WCE200
111 PLATFORM   = MS HPC
112 # MUST USE -MD to get the right FPE stuff...
113 MCFLAGS    = -D _MT -D _DLL -MD \
114              -D SH3 -D sh3 -D _SH3_ -D _sh3_ -D SHx -DPROCESSOR_SH3 \
115              -D PALM_SIZE \
116              -I $(CELIBDLLDIR)\inc
117 SUBSYS     = -subsystem:windowsce,2.00
118 CELIBPATH  = $(CELIBDLLDIR)\$(MACHINE)-release
119 LDLIBPATH  = -libpath:$(CELIBPATH)
120 STARTOBJS  = $(CECONSOLEDIR)/$(MACHINE)/wmain.obj \
121              $(CECONSOLEDIR)/$(MACHINE)/w32console.obj
122 !endif
123
124 !if "$(MACHINE)" == "wince-arm-hpc-wce211"
125 CC         = clarm.exe
126 ARCH       = ARM
127 CPU        = ARM
128 TARGETCPU  = ARM
129 CEVersion  = 211
130 OSVERSION  = WCE211
131 PLATFORM   = MS HPC Pro
132 MCFLAGS    = -D _MT -D _DLL -D ARM -D arm -D _arm_ -D _ARM_ \
133              -DPROCESSOR_ARM -DPALM_SIZE \
134              -I $(CELIBDLLDIR)\inc
135 SUBSYS     = -subsystem:windowsce,2.11
136 CELIBPATH  = $(CELIBDLLDIR)\$(MACHINE)-release
137 LDLIBPATH  = -libpath:$(CELIBPATH)
138 STARTOBJS  = $(CECONSOLEDIR)/$(MACHINE)/wmain.obj \
139              $(CECONSOLEDIR)/$(MACHINE)/w32console.obj
140 !endif
141
142 !if "$(MACHINE)" == "wince-arm-hpc-wce300"
143 CC         = clarm.exe
144 ARCH       = ARM
145 CPU        = ARM
146 TARGETCPU  = ARM
147 CEVersion  = 300
148 OSVERSION  = WCE300
149 PLATFORM   = HPC2000
150 MCFLAGS    = -D _MT -D _DLL -D ARM -D arm -D _arm_ -D _ARM_ \
151              -DPROCESSOR_ARM -DPALM_SIZE \
152              -I $(CELIBDLLDIR)\inc
153 SUBSYS     = -subsystem:windowsce,3.00
154 CELIBPATH  = $(CELIBDLLDIR)\$(MACHINE)-release
155 LDLIBPATH  = -libpath:$(CELIBPATH)
156 STARTOBJS  = $(CECONSOLEDIR)/$(MACHINE)/wmain.obj \
157              $(CECONSOLEDIR)/$(MACHINE)/w32console.obj
158 !endif
159
160 !if "$(MACHINE)" == "wince-mips-palm-wce211"
161 CC         = clmips.exe
162 ARCH       = MIPS
163 CPU        = MIPS
164 TARGETCPU  = MIPS
165 CEVersion  = 211
166 OSVERSION  = WCE211
167 PLATFORM   = MS Palm Size PC
168 MCFLAGS    = -DMIPS -D_MIPS_ -DPROCESSOR_MIPS -D PALM_SIZE -D _DLL -D _MT \
169              -I $(CELIBDLLDIR)\inc
170 SUBSYS     = -subsystem:windowsce,2.11
171 CELIBPATH  = $(CELIBDLLDIR)\$(MACHINE)-release
172 LDLIBPATH  = -libpath:$(CELIBPATH)
173 STARTOBJS  = $(CECONSOLEDIR)/$(MACHINE)/wmain.obj \
174              $(CECONSOLEDIR)/$(MACHINE)/w32console.obj
175 !endif
176
177 !if "$(MACHINE)" == "wince-sh3-palm-wce211"
178 CC         = shcl.exe
179 ARCH       = SH3
180 CPU        = SH3
181 TARGETCPU  = SH3
182 CEVersion  = 211
183 OSVERSION  = WCE211
184 PLATFORM   = MS Palm Size PC
185 MCFLAGS    = -D _MT -D _DLL -DSH3 -D_SH3_ -DSHx -DPROCESSOR_SH3 -DPALM_SIZE \
186              -I $(CELIBDLLDIR)\inc
187 SUBSYS     = -subsystem:windowsce,2.11
188 CELIBPATH  = $(CELIBDLLDIR)\$(MACHINE)-release
189 LDLIBPATH  = -libpath:$(CELIBPATH)
190 STARTOBJS  = $(CECONSOLEDIR)/$(MACHINE)/wmain.obj \
191              $(CECONSOLEDIR)/$(MACHINE)/w32console.obj
192 !endif
193
194 !if "$(MACHINE)" == "wince-x86em-palm-wce211"
195 CC         = cl.exe
196 ARCH       = X86EM
197 CPU        = X86
198 TARGETCPU  = X86
199 CEVersion  = 211
200 OSVERSION  = WCE211
201 PLATFORM   = MS Palm Size PC
202 MCFLAGS    = -MDd -DX86 -D_X86_ -DPROCESSOR_X86 \
203              -D_WIN32_WCE_EMULATION -DPALM_SIZE \
204              -I $(CELIBDLLDIR)\inc
205 MACH       = -machine:x86
206 SUBSYS     = -subsystem:windows
207 CELIBPATH  = $(CELIBDLLDIR)\$(MACHINE)-release
208 LDLIBPATH  = -libpath:$(CELIBPATH)
209 STARTOBJS  = $(CECONSOLEDIR)/$(MACHINE)/wmain.obj \
210              $(CECONSOLEDIR)/$(MACHINE)/w32console.obj
211 !endif
212
213 !if "$(MACHINE)" == "wince-x86em-pocket-wce300"
214 CC         = cl.exe
215 ARCH       = X86EM
216 CPU        = X86
217 TARGETCPU  = X86
218 CEVersion  = 300
219 OSVERSION  = WCE300
220 PLATFORM   = MS Pocket PC
221 MCFLAGS    = -DX86 -D_X86_ -DPROCESSOR_X86 -D _MT -D _DLL \
222              -D_WIN32_WCE_EMULATION -DPALM_SIZE -DPOCKET_SIZE \
223              -I $(CELIBDLLDIR)\inc 
224 MACH       = -machine:x86
225 SUBSYS     = -subsystem:windows
226 CELIBPATH  = $(CELIBDLLDIR)\$(MACHINE)-release
227 LDLIBPATH  = -libpath:$(CELIBPATH)
228 STARTOBJS  = $(CECONSOLEDIR)/$(MACHINE)/wmain.obj \
229              $(CECONSOLEDIR)/$(MACHINE)/w32console.obj
230 !endif
231
232 !if "$(MACHINE)" == "wince-mips-pocket-wce300"
233 CC         = clmips.exe
234 ARCH       = MIPS
235 CPU        = MIPS
236 TARGETCPU  = MIPS
237 CEVersion  = 300
238 OSVERSION  = WCE300
239 PLATFORM   = MS Pocket PC
240 MCFLAGS    = -D MIPS -D mips -D _MIPS_ -D _mips_ -DPROCESSOR_MIPS \
241              -D _MT -D _DLL -DPALM_SIZE -DPOCKET_SIZE \
242              -I $(CELIBDLLDIR)\inc 
243 MACH       = -machine:mips
244 SUBSYS     = -subsystem:windowsce,3.00
245 CELIBPATH  = $(CELIBDLLDIR)\$(MACHINE)-release
246 LDLIBPATH  = -libpath:$(CELIBPATH)
247 STARTOBJS  = $(CECONSOLEDIR)/$(MACHINE)/wmain.obj \
248              $(CECONSOLEDIR)/$(MACHINE)/w32console.obj
249 !endif
250
251 !if "$(MACHINE)" == "wince-sh3-pocket-wce300"
252 CC         = shcl.exe
253 ARCH       = SH3
254 CPU        = SH3
255 TARGETCPU  = SH3
256 CEVersion  = 300
257 OSVERSION  = WCE300
258 PLATFORM   = MS Pocket PC
259 MCFLAGS    = -D _MT -D _DLL -DSH3 -D_SH3_ -DSHx -DPROCESSOR_SH3 \
260              -DPALM_SIZE -DPOCKET_SIZE \
261              -I $(CELIBDLLDIR)\inc 
262 MACH       = -machine:mips
263 SUBSYS     = -subsystem:windowsce,3.00
264 CELIBPATH  = $(CELIBDLLDIR)\$(MACHINE)-release
265 LDLIBPATH  = -libpath:$(CELIBPATH)
266 STARTOBJS  = $(CECONSOLEDIR)/$(MACHINE)/wmain.obj \
267              $(CECONSOLEDIR)/$(MACHINE)/w32console.obj
268 !endif
269
270 !if "$(MACHINE)" == "wince-arm-pocket-wce300"
271 CC         = clarm.exe
272 ARCH       = ARM
273 CPU        = ARM
274 TARGETCPU  = ARM
275 CEVersion  = 300
276 OSVERSION  = WCE300
277 PLATFORM   = MS Pocket PC
278 MCFLAGS    = -D ARM -D arm -D _ARM_ -D _arm_ -DPROCESSOR_ARM \
279              -D _MT -D _DLL -DPALM_SIZE -DPOCKET_SIZE \
280              -I $(CELIBDLLDIR)\inc 
281 MACH       = -machine:arm
282 SUBSYS     = -subsystem:windowsce,3.00
283 CELIBPATH  = $(CELIBDLLDIR)\$(MACHINE)-release
284 LDLIBPATH  = -libpath:$(CELIBPATH)
285 STARTOBJS  = $(CECONSOLEDIR)/$(MACHINE)/wmain.obj \
286              $(CECONSOLEDIR)/$(MACHINE)/w32console.obj
287 !endif
288
289 ######################################################################
290 # common section
291
292 CEDEFS    = -D_WINDOWS -D_WIN32_WCE=$(CEVersion) -DUNDER_CE=$(CEVersion) \
293             $(MCFLAGS) 
294 #CEDEFS    = $(CEDEFS) -DDEBUGGING_OPS
295
296 CECFLAGS  = $(CEDEFS)
297
298 !if "$(CFG)" == "DEBUG"
299 CECFLAGS  = $(CECFLAGS) -Zi -Od
300 !endif
301
302 !if "$(CFG)" == "RELEASE"
303 # -O2 and -Ot give internal compiler error in perl.c and lexer.
304 # Also the dll cannot be loaded by perl.exe...
305 CECFLAGS  = $(CECFLAGS)
306 !endif
307
308 RCDEFS    = /l 0x407 /r /d "UNICODE" /d UNDER_CE=$(CEVersion) \
309             /d _WIN32_WCE=$(CEVersion)
310
311 PATH=$(CEPATH);$(PATH)
312
313 INCLUDE=$(WCEROOT)\$(OSVERSION)\$(PLATFORM)\include
314 LIB=$(WCEROOT)\$(OSVERSION)\$(PLATFORM)\lib\$(ARCH)
315
316 ######################################################################
317
318 !message
319 !message Compiling for $(MACHINE)
320 !message LIB=$(LIB)
321 !message INCLUDE=$(INCLUDE)
322 !message PATH=$(CEPATH)
323 !message
324
325 ######################################################################
326 #
327 # Additional compiler flags can be specified here.
328 #
329
330 BUILDOPT        = $(BUILDOPT) $(CECFLAGS)
331
332 ##################### CHANGE THESE ONLY IF YOU MUST #####################
333
334 !IF "$(CRYPT_SRC)$(CRYPT_LIB)" == ""
335 D_CRYPT         = undef
336 !ELSE
337 D_CRYPT         = define
338 CRYPT_FLAG      = -DHAVE_DES_FCRYPT
339 !ENDIF
340
341 !IF "$(USE_OBJECT)" == "define"
342 PERL_MALLOC     = undef
343 USE_5005THREADS = undef
344 USE_MULTI       = undef
345 USE_IMP_SYS     = define
346 !ENDIF
347
348 !IF "$(PERL_MALLOC)" == ""
349 PERL_MALLOC     = undef
350 !ENDIF
351
352 !IF "$(USE_5005THREADS)" == ""
353 USE_5005THREADS = undef
354 !ENDIF
355
356 !IF "$(USE_5005THREADS)" == "define"
357 USE_ITHREADS    = undef
358 !ENDIF
359
360 !IF "$(USE_IMP_SYS)" == "define"
361 PERL_MALLOC     = undef
362 !ENDIF
363
364 !IF "$(USE_MULTI)" == ""
365 USE_MULTI       = undef
366 !ENDIF
367
368 !IF "$(USE_OBJECT)" == ""
369 USE_OBJECT      = undef
370 !ENDIF
371
372 !IF "$(USE_ITHREADS)" == ""
373 USE_ITHREADS    = undef
374 !ENDIF
375
376 !IF "$(USE_IMP_SYS)" == ""
377 USE_IMP_SYS     = undef
378 !ENDIF
379
380 !IF "$(USE_PERLCRT)" == ""
381 USE_PERLCRT     = undef
382 !ENDIF
383
384 !IF "$(USE_IMP_SYS)$(USE_MULTI)$(USE_5005THREADS)$(USE_OBJECT)" == "defineundefundefundef"
385 USE_MULTI       = define
386 !ENDIF
387
388 !IF "$(USE_ITHREADS)$(USE_MULTI)$(USE_OBJECT)" == "defineundefundef"
389 USE_MULTI       = define
390 USE_5005THREADS = undef
391 !ENDIF
392
393 !IF "$(USE_MULTI)$(USE_5005THREADS)$(USE_OBJECT)" != "undefundefundef"
394 BUILDOPT        = $(BUILDOPT) -DPERL_IMPLICIT_CONTEXT
395 !ENDIF
396
397 !IF "$(USE_IMP_SYS)" != "undef"
398 BUILDOPT        = $(BUILDOPT) -DPERL_IMPLICIT_SYS
399 !ENDIF
400
401 # new option - automatically defined in perl.h...
402 #BUILDOPT        = $(BUILDOPT) -DUSE_ENVIRON_ARRAY
403
404 PROCESSOR_ARCHITECTURE = $(TARGETCPU)
405 ARCHNAME        = $(PLATFORM)-$(OSVERSION)-$(PROCESSOR_ARCHITECTURE)
406 # unused yet
407 ARCHDIR         = ..\lib\$(ARCHNAME)
408 COREDIR         = ..\lib\CORE
409 AUTODIR         = ..\lib\auto
410 LIBDIR          = ..\lib
411 EXTDIR          = ..\ext
412 PODDIR          = ..\pod
413 EXTUTILSDIR     = $(LIBDIR)\ExtUtils
414
415 LINK32          = link
416 LIB32           = $(LINK32) -lib
417 RSC             = rc
418
419 INCLUDES        = -I.\include -I. -I..
420 DEFINES         = -DWIN32 -D_CONSOLE -DNO_STRICT $(CRYPT_FLAG) $(CECFLAGS)
421 LOCDEFS         = -DPERLDLL -DPERL_CORE
422 CXX_FLAG        = -TP -GX
423
424 PERLEXE_RES     = perl.res
425 PERLDLL_RES     =
426
427 !IF "$(USE_OBJECT)" == "define"
428 OPTIMIZE        = $(OPTIMIZE) $(CXX_FLAG)
429 BUILDOPT        = $(BUILDOPT) -DPERL_OBJECT
430 !ENDIF
431
432 !if "$(CFG)" == "RELEASE"
433 CELIB           = celib.lib
434 !endif
435
436 !if "$(CFG)" == "DEBUG"
437 CELIB           = celib.lib
438 !endif
439
440 CELIBS          = -nodefaultlib \
441                   winsock.lib $(CELIB) coredll.lib
442
443 !if $(CEVersion) > 200
444 CELIBS          = $(CELIBS) corelibc.lib 
445 !else
446 CELIBS          = $(CELIBS) msvcrt.lib 
447 !endif
448
449 LIBBASEFILES    = $(CRYPT_LIB) $(CELIBS)
450
451 LIBFILES        = $(LIBBASEFILES) $(LIBC)
452
453 CFLAGS          = -nologo -Gf -W3 $(INCLUDES) $(DEFINES) $(LOCDEFS) \
454                 $(PCHFLAGS) $(OPTIMIZE)
455
456 LINK_FLAGS      = -nologo -machine:$(PROCESSOR_ARCHITECTURE)
457
458 !if "$(CFG)" == "DEBUG"
459 LINK_FLAGS      = $(LINK_FLAGS) -debug:full -pdb:none 
460 !endif
461
462 OBJOUT_FLAG     = -Fo
463 EXEOUT_FLAG     = -Fe
464
465 CFLAGS_O        = $(CFLAGS) $(BUILDOPT)
466
467 o = .obj
468
469 #
470 # Rules
471
472
473 .SUFFIXES : .c $(o) .dll .lib .exe .rc .res
474
475 .c$(o):
476         $(CC) -c -I$(<D) $(CFLAGS_O) $(OBJOUT_FLAG)$@ $<
477
478 .y.c:
479         $(NOOP)
480
481 $(o).dll:
482         $(LINK32) -dll $(SUBSYS) $(LDLIBPATH) \
483             -implib:$(*B).lib -def:$(*B).def \
484             -out:$@ $(LINK_FLAGS) $(LIBFILES) $< $(LIBPERL)  
485
486 .rc.res:
487         $(RSC) -i.. $<
488
489 # This must be relative to ../lib/CORE, else the ext dll build fails...
490 PERLIMPLIB_EXP  = ..\..\wince\$(MACHINE)\perl$(PV).lib
491 PERLIMPLIB      = $(PERLCEDIR)\$(MACHINE)\perl$(PV).lib
492 PERLDLL         = $(MACHINE)\perl$(PV).dll
493
494 DLLDIR          = $(MACHINE)\dll
495 PERLEXE         = $(MACHINE)\perl.exe
496
497 CONFIGPM        = ..\lib\Config.pm
498 MINIMOD         = ..\lib\ExtUtils\Miniperl.pm
499
500 MAKE            = nmake -nologo
501
502 CFGSH_TMPL      = config.ce
503 CFGH_TMPL       = config_H.ce
504
505 #
506 # filenames given to xsubpp must have forward slashes (since it puts
507 # full pathnames in #line strings)
508 XSUBPP          = $(NTPERL) -I..\..\lib ..\$(EXTUTILSDIR)\xsubpp \
509                 -C++ -prototypes
510
511 MICROCORE_SRC   =               \
512                 ..\av.c         \
513                 ..\deb.c        \
514                 ..\doio.c       \
515                 ..\doop.c       \
516                 ..\dump.c       \
517                 ..\globals.c    \
518                 ..\gv.c         \
519                 ..\hv.c         \
520                 ..\mg.c         \
521                 ..\op.c         \
522                 ..\perl.c       \
523                 ..\perlapi.c    \
524                 ..\perly.c      \
525                 ..\pp.c         \
526                 ..\pp_ctl.c     \
527                 ..\pp_hot.c     \
528                 ..\pp_sys.c     \
529                 ..\regcomp.c    \
530                 ..\regexec.c    \
531                 ..\run.c        \
532                 ..\scope.c      \
533                 ..\sv.c         \
534                 ..\taint.c      \
535                 ..\toke.c       \
536                 ..\universal.c  \
537                 ..\utf8.c       \
538                 ..\util.c       \
539                 ..\xsutils.c
540
541 EXTRACORE_SRC   = $(EXTRACORE_SRC) perllib.c
542
543 !IF "$(PERL_MALLOC)" == "define"
544 EXTRACORE_SRC   = $(EXTRACORE_SRC) ..\malloc.c
545 !ENDIF
546
547 !IF "$(USE_OBJECT)" != "define"
548 EXTRACORE_SRC   = $(EXTRACORE_SRC) ..\perlio.c
549 !ENDIF
550
551 WIN32_SRC       =               \
552                 .\wince.c       \
553                 .\wincesck.c    \
554                 .\win32thread.c 
555
556 !IF "$(CRYPT_SRC)" != ""
557 WIN32_SRC       = $(WIN32_SRC) .\$(CRYPT_SRC)
558 !ENDIF
559
560 DLL_SRC         = $(DYNALOADER).c
561
562 CORE_NOCFG_H    =               \
563                 ..\av.h         \
564                 ..\cop.h        \
565                 ..\cv.h         \
566                 ..\dosish.h     \
567                 ..\embed.h      \
568                 ..\form.h       \
569                 ..\gv.h         \
570                 ..\handy.h      \
571                 ..\hv.h         \
572                 ..\iperlsys.h   \
573                 ..\mg.h         \
574                 ..\nostdio.h    \
575                 ..\op.h         \
576                 ..\opcode.h     \
577                 ..\perl.h       \
578                 ..\perlapi.h    \
579                 ..\perlsdio.h   \
580                 ..\perlsfio.h   \
581                 ..\perly.h      \
582                 ..\pp.h         \
583                 ..\proto.h      \
584                 ..\regexp.h     \
585                 ..\scope.h      \
586                 ..\sv.h         \
587                 ..\thread.h     \
588                 ..\unixish.h    \
589                 ..\utf8.h       \
590                 ..\util.h       \
591                 ..\warnings.h   \
592                 ..\XSUB.h       \
593                 ..\EXTERN.h     \
594                 ..\perlvars.h   \
595                 ..\intrpvar.h   \
596                 ..\thrdvar.h    \
597                 .\include\dirent.h      \
598                 .\include\netdb.h       \
599                 .\include\sys\socket.h  \
600                 .\win32.h
601
602 !IF "$(USE_SETARGV)" != ""
603 SETARGV_OBJ     = setargv$(o)
604 !ENDIF
605
606 DYNAMIC_EXT     = Socket IO Fcntl Opcode SDBM_File POSIX attrs Thread B re \
607                 Data/Dumper Devel/Peek ByteLoader Devel/DProf File/Glob \
608                 Sys/Hostname
609
610 STATIC_EXT      = DynaLoader
611 NONXS_EXT       = Errno
612
613 DYNALOADER      = $(EXTDIR)\DynaLoader\DynaLoader
614 SOCKET          = $(EXTDIR)\Socket\Socket
615 IO              = $(EXTDIR)\IO\IO
616 DUMPER          = $(EXTDIR)\Data\Dumper\Dumper
617 #
618 FCNTL           = $(EXTDIR)\Fcntl\Fcntl
619 OPCODE          = $(EXTDIR)\Opcode\Opcode
620 SDBM_FILE       = $(EXTDIR)\SDBM_File\SDBM_File
621 POSIX           = $(EXTDIR)\POSIX\POSIX
622 ATTRS           = $(EXTDIR)\attrs\attrs
623 THREAD          = $(EXTDIR)\Thread\Thread
624 B               = $(EXTDIR)\B\B
625 RE              = $(EXTDIR)\re\re
626 ERRNO           = $(EXTDIR)\Errno\Errno
627 PEEK            = $(EXTDIR)\Devel\Peek\Peek
628 BYTELOADER      = $(EXTDIR)\ByteLoader\ByteLoader
629 DPROF           = $(EXTDIR)\Devel\DProf\DProf
630 GLOB            = $(EXTDIR)\File\Glob\Glob
631 HOSTNAME        = $(EXTDIR)\Sys\Hostname\Hostname
632 SOCKET_DLL      = $(AUTODIR)\Socket\Socket.dll
633 FCNTL_DLL       = $(AUTODIR)\Fcntl\Fcntl.dll
634 OPCODE_DLL      = $(AUTODIR)\Opcode\Opcode.dll
635 SDBM_FILE_DLL   = $(AUTODIR)\SDBM_File\SDBM_File.dll
636 IO_DLL          = $(AUTODIR)\IO\IO.dll
637 POSIX_DLL       = $(AUTODIR)\POSIX\POSIX.dll
638 ATTRS_DLL       = $(AUTODIR)\attrs\attrs.dll
639 THREAD_DLL      = $(AUTODIR)\Thread\Thread.dll
640 B_DLL           = $(AUTODIR)\B\B.dll
641 DUMPER_DLL      = $(AUTODIR)\Data\Dumper\Dumper.dll
642 PEEK_DLL        = $(AUTODIR)\Devel\Peek\Peek.dll
643 RE_DLL          = $(AUTODIR)\re\re.dll
644 BYTELOADER_DLL  = $(AUTODIR)\ByteLoader\ByteLoader.dll
645 DPROF_DLL       = $(AUTODIR)\Devel\DProf\DProf.dll
646 GLOB_DLL        = $(AUTODIR)\File\Glob\Glob.dll
647 HOSTNAME_DLL    = $(AUTODIR)\Sys\Hostname\Hostname.dll
648
649 ERRNO_PM        = $(LIBDIR)\Errno.pm
650
651 EXTENSION_C     =               \
652                 $(SOCKET).c     \
653                 $(FCNTL).c      \
654                 $(OPCODE).c     \
655                 $(SDBM_FILE).c  \
656                 $(IO).c         \
657                 $(POSIX).c      \
658                 $(ATTRS).c      \
659                 $(THREAD).c     \
660                 $(RE).c         \
661                 $(DUMPER).c     \
662                 $(PEEK).c       \
663                 $(B).c          \
664                 $(BYTELOADER).c \
665                 $(DPROF).c      \
666                 $(GLOB).c       \
667                 $(HOSTNAME).c
668
669 EXTENSION_DLL   =               \
670                 $(SOCKET_DLL)   \
671                 $(FCNTL_DLL)    \
672                 $(OPCODE_DLL)   \
673                 $(SDBM_FILE_DLL)\
674                 $(IO_DLL)       \
675                 $(POSIX_DLL)    \
676                 $(ATTRS_DLL)    \
677                 $(DUMPER_DLL)   \
678                 $(PEEK_DLL)     \
679                 $(B_DLL)        \
680                 $(RE_DLL)       \
681                 $(THREAD_DLL)   \
682                 $(BYTELOADER_DLL)       \
683                 $(DPROF_DLL)    \
684                 $(GLOB_DLL)     \
685                 $(HOSTNAME_DLL)
686
687 EXTENSION_PM    =               \
688                 $(ERRNO_PM)
689
690 POD2HTML        = $(PODDIR)\pod2html
691 POD2MAN         = $(PODDIR)\pod2man
692 POD2LATEX       = $(PODDIR)\pod2latex
693 POD2TEXT        = $(PODDIR)\pod2text
694
695 CFG_VARS = \
696  "INST_DRV=$(INST_DRV)" \
697  "INST_TOP=$(INST_TOP)" \
698  "INST_VER=$(INST_VER)" \
699  "INST_ARCH=$(INST_ARCH)" \
700  "archname=$(ARCHNAME)" \
701  "cc=$(CC)" \
702  "ccflags=$(OPTIMIZE) $(DEFINES) $(BUILDOPT)" \
703  "cf_by=Rainer Keuchel" \
704  "cf_email=coyxc@rainer-keuchel.de" \
705  "d_crypt=$(D_CRYPT)" \
706  "d_mymalloc=$(PERL_MALLOC)" \
707  "libs=$(LIBFILES)" \
708  "incpath=$(CCINCDIR)" \
709  "libperl=$(PERLIMPLIB_EXP)" \
710  "libpth=$(LIBPATH)" \
711  "libc=$(LIBC)" \
712  "make=nmake" \
713  "static_ext=$(STATIC_EXT)" \
714  "dynamic_ext=$(DYNAMIC_EXT)" \
715  "nonxs_ext=$(NONXS_EXT)" \
716  "use5005threads=$(USE_5005THREADS)" \
717  "useithreads=$(USE_ITHREADS)" \
718  "usethreads=$(USE_5005THREADS)" \
719  "usemultiplicity=$(USE_MULTI)" \
720  "LINK_FLAGS=$(LDLIBPATH) $(LINK_FLAGS) $(SUBSYS)" \
721  "optimize=$(OPTIMIZE)"
722
723 #
724 # Top targets
725 #
726
727 all: $(MINIMOD) $(CONFIGPM) $(PERLEXE)
728
729 $(DYNALOADER)$(o) : $(DYNALOADER).c $(CORE_H) $(EXTDIR)\DynaLoader\dlutils.c
730
731 $(CONFIGPM): config.h ..\config.sh ..\minimod.pl
732         cd .. && $(NTPERL) configpm
733         -mkdir $(COREDIR)
734         $(XCOPY) ..\*.h $(COREDIR)\*.*
735         $(XCOPY) *.h $(COREDIR)\*.*
736         $(XCOPY) ..\ext\re\re.pm $(LIBDIR)\*.*
737         $(RCOPY) include $(COREDIR)\*.*
738         $(NTPERL) -I..\lib config_h.PL "INST_VER=$(INST_VER)"
739
740 ..\config.sh config.h: config.ce config_sh.PL
741         $(NTPERL) -I..\lib config_sh.PL $(CFG_VARS) config.ce > ..\config.sh
742
743 $(MINIMOD) : ..\minimod.pl
744         cd .. && $(NTPERL) minimod.pl > lib\ExtUtils\Miniperl.pm
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)
752         $(NTPERL) -I..\..\lib $(*B)_pm.PL
753         $(NTPERL) -I..\..\lib XSLoader_pm.PL
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
764 $(DUMPER_DLL): $(PERLEXE) $(DUMPER).xs
765         cd $(EXTDIR)\Data\$(*B)
766         $(NTPERL) -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
767         $(MAKE)
768         cd ..\..\..\wince
769
770 $(DPROF_DLL): $(PERLEXE) $(DPROF).xs
771         cd $(EXTDIR)\Devel\$(*B)
772         $(NTPERL) -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
773         $(MAKE)
774         cd ..\..\..\wince
775
776 $(GLOB_DLL): $(PERLEXE) $(GLOB).xs
777         cd $(EXTDIR)\File\$(*B)
778         $(NTPERL) -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
779         $(MAKE)
780         cd ..\..\..\wince
781
782 $(PEEK_DLL): $(PERLEXE) $(PEEK).xs
783         cd $(EXTDIR)\Devel\$(*B)
784         $(NTPERL) -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
785         $(MAKE)
786         cd ..\..\..\wince
787
788 $(RE_DLL): $(PERLEXE) $(RE).xs
789         cd $(EXTDIR)\$(*B)
790         $(NTPERL) -I..\..\lib Makefile.PL INSTALLDIRS=perl
791         $(MAKE)
792         cd ..\..\wince
793
794 $(B_DLL): $(PERLEXE) $(B).xs
795         cd $(EXTDIR)\$(*B)
796         $(NTPERL) -I..\..\lib Makefile.PL INSTALLDIRS=perl
797         $(MAKE)
798         cd ..\..\wince
799
800 $(THREAD_DLL): $(PERLEXE) $(THREAD).xs
801         cd $(EXTDIR)\$(*B)
802         $(NTPERL) -I..\..\lib Makefile.PL INSTALLDIRS=perl
803         $(MAKE)
804         cd ..\..\wince
805
806 $(ATTRS_DLL): $(PERLEXE) $(ATTRS).xs
807         cd $(EXTDIR)\$(*B)
808         $(NTPERL) -I..\..\lib Makefile.PL INSTALLDIRS=perl
809         $(MAKE)
810         cd ..\..\wince
811
812 $(POSIX_DLL): $(PERLEXE) $(POSIX).xs
813         cd $(EXTDIR)\$(*B)
814         $(NTPERL) -I..\..\lib Makefile.PL INSTALLDIRS=perl
815         $(MAKE)
816         cd ..\..\wince
817
818 $(IO_DLL): $(PERLEXE) $(IO).xs
819         cd $(EXTDIR)\$(*B)
820         $(NTPERL) -I..\..\lib Makefile.PL INSTALLDIRS=perl
821         $(MAKE)
822         cd ..\..\wince
823
824 $(SDBM_FILE_DLL) : $(PERLEXE) $(SDBM_FILE).xs
825         cd $(EXTDIR)\$(*B)
826         $(NTPERL) -I..\..\lib Makefile.PL INSTALLDIRS=perl
827         $(MAKE)
828         cd ..\..\wince
829
830 $(FCNTL_DLL): $(PERLEXE) $(FCNTL).xs
831         cd $(EXTDIR)\$(*B)
832         $(NTPERL) -I..\..\lib Makefile.PL INSTALLDIRS=perl
833         $(MAKE)
834         cd ..\..\wince
835
836 $(OPCODE_DLL): $(PERLEXE) $(OPCODE).xs
837         cd $(EXTDIR)\$(*B)
838         $(NTPERL) -I..\..\lib Makefile.PL INSTALLDIRS=perl
839         $(MAKE)
840         cd ..\..\wince
841
842 $(SOCKET_DLL): $(PERLEXE) $(SOCKET).xs
843         cd $(EXTDIR)\$(*B)
844         $(NTPERL) -I..\..\lib Makefile.PL INSTALLDIRS=perl
845         $(MAKE)
846         cd ..\..\wince
847
848 $(HOSTNAME_DLL): $(PERLEXE) $(HOSTNAME).xs
849         cd $(EXTDIR)\Sys\$(*B)
850         $(NTPERL) -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
851         $(MAKE)
852         cd ..\..\..\wince
853
854 $(BYTELOADER_DLL): $(PERLEXE) $(BYTELOADER).xs
855         cd $(EXTDIR)\$(*B)
856         $(NTPERL) -I..\..\lib Makefile.PL INSTALLDIRS=perl
857         $(MAKE)
858         cd ..\..\wince
859
860 $(ERRNO_PM): $(PERLEXE) $(ERRNO)_pm.PL
861         cd $(EXTDIR)\$(*B)
862         $(NTPERL) -I..\..\lib Makefile.PL INSTALLDIRS=perl
863         $(MAKE)
864         cd ..\..\wince
865
866 $(PERLEXE_RES): perl.rc
867         rc $(RCDEFS) perl.rc
868
869 clean: 
870         -rm -f $(MACHINE)/dll/*
871         -rm -f $(MACHINE)/*.obj
872         -rm -f $(MACHINE)/*.exe
873         -rm -f $(MACHINE)/*.dll
874         -rm -f $(MACHINE)/*.lib
875         -rm -f ../config.sh ../lib/Config.pm
876         -rm -f config.h perl.res
877
878 !if "$(MACHINE)" == "wince-sh3-hpc"
879 install_perlexe: $(PERLEXE)
880         cedel /speicherkarte2/bin/perl.exe
881         cecopy pc:../perl.exe ce:/speicherkarte2/bin
882
883 install_perldll: $(PERLDLL)
884         cedel /speicherkarte2/bin/perl$(PV).dll
885         cecopy pc:../perl$(PV).dll ce:/speicherkarte2/bin
886
887 install_perl: install_perlexe install_perldll
888
889 test_perl:
890         cecopy pc:test.pl ce:/speicherkarte2/bin
891         ceexec /speicherkarte2/bin/perl.exe /speicherkarte2/bin/test.pl
892 #       ceexec /speicherkarte2/bin/perl.exe -V
893
894 install_lib: ../lib/Config.pm
895         cecopy  pc:../lib/Config.pm ce:/speicherkarte2/usr/lib/perl5
896 !endif
897
898 !if "$(MACHINE)" == "wince-arm-hpc"
899 install_perlexe: $(PERLEXE)
900         -cedel /speicherkarte/bin/perl.exe
901         cecopy pc:$(MACHINE)/perl.exe ce:/speicherkarte/bin
902
903 install_perldll: $(PERLDLL)
904         -cedel /speicherkarte/bin/perl$(PV).dll
905         cecopy pc:$(MACHINE)/perl$(PV).dll ce:/speicherkarte/bin
906
907 install_perl: install_perlexe install_perldll
908
909 test_perl:
910         cecopy pc:test.pl ce:/speicherkarte/bin
911         ceexec /speicherkarte/bin/perl.exe /speicherkarte/bin/test.pl
912 #       ceexec /speicherkarte2/bin/perl.exe -V
913
914 install_lib: ../lib/Config.pm
915         cecopy  pc:../lib/Config.pm ce:/speicherkarte/usr/lib/perl5
916 !endif
917
918 !if "$(MACHINE)" == "wince-mips-hpc"
919 install_perlexe: $(PERLEXE)
920         cecopy pc:../perl.exe ce:/netzwerk/compaq/bin
921
922 install_perldll: $(PERLDLL)
923         cecopy pc:../perl$(PV).dll ce:/netzwerk/compaq/bin
924
925 install_perl: install_perlexe install_perldll
926
927 test_perl:
928         cecopy pc:test.pl ce:/netzwerk/compaq/bin
929         ceexec /netzwerk/compaq/bin/perl.exe /netzwerk/compaq/bin/test.pl
930 #       ceexec /netzwerk/compaq/bin/perl.exe -V
931
932 install_lib: ../lib/Config.pm
933         cecopy  pc:../lib/Config.pm ce:/netzwerk/compaq/usr/lib/perl5
934 !endif
935
936 !if "$(MACHINE)" == "wince-x86em-pocket"
937 install_lib:
938         ftpcopy ../lib/Config.pm ftp!ftp@localhost:/perl/lib
939         ftpcopy ../lib/Exporter.pm ftp!ftp@localhost:/perl/lib
940         ftpcopy ../lib/Exporter/Heavy.pm ftp!ftp@localhost:/perl/lib/Exporter
941
942 install_perlexe: $(PERLEXE)
943         cecopy pc:../perl.exe ce:/netzwerk/compaq/bin
944
945 install_perldll: $(PERLDLL)
946         cecopy pc:../perl$(PV).dll ce:/netzwerk/compaq/bin
947
948 install_perl: install_perlexe install_perldll
949
950 test_perl:
951         echo Not yet
952 !endif
953
954
955 XDLLOBJS = \
956 $(DLLDIR)\av.obj \
957 $(DLLDIR)\deb.obj \
958 $(DLLDIR)\doio.obj \
959 $(DLLDIR)\doop.obj \
960 $(DLLDIR)\dump.obj \
961 $(DLLDIR)\globals.obj \
962 $(DLLDIR)\gv.obj \
963 $(DLLDIR)\hv.obj \
964 $(DLLDIR)\locale.obj \
965 $(DLLDIR)\mg.obj \
966 $(DLLDIR)\numeric.obj \
967 $(DLLDIR)\op.obj \
968 $(DLLDIR)\perl.obj \
969 $(DLLDIR)\perlapi.obj \
970 $(DLLDIR)\perlio.obj \
971 $(DLLDIR)\perly.obj \
972 $(DLLDIR)\pp.obj \
973 $(DLLDIR)\pp_ctl.obj \
974 $(DLLDIR)\pp_hot.obj \
975 $(DLLDIR)\pp_pack.obj \
976 $(DLLDIR)\pp_sys.obj \
977 $(DLLDIR)\regcomp.obj \
978 $(DLLDIR)\regexec.obj \
979 $(DLLDIR)\run.obj \
980 $(DLLDIR)\scope.obj \
981 $(DLLDIR)\sv.obj \
982 $(DLLDIR)\taint.obj \
983 $(DLLDIR)\toke.obj \
984 $(DLLDIR)\universal.obj \
985 $(DLLDIR)\utf8.obj \
986 $(DLLDIR)\util.obj \
987 $(DLLDIR)\win32thread.obj \
988 $(DLLDIR)\wince.obj \
989 $(DLLDIR)\wincesck.obj \
990 $(DLLDIR)\xsutils.obj \
991 $(DLLDIR)\perllib.obj \
992 $(DLLDIR)\DynaLoader.obj
993
994 {$(SRCDIR)}.c{$(DLLDIR)}.obj:
995     $(CC) -c $(CFLAGS) -DPERL_EXTERNAL_GLOB -Fo$(DLLDIR)\ $<
996
997 {$(SRCDIR)/wince}.c{$(DLLDIR)}.obj:
998     $(CC) -c $(CFLAGS) -DPERL_EXTERNAL_GLOB -Fo$(DLLDIR)\ $<
999
1000 $(PERLDLL) : $(DLLDIR) perldll.def $(XDLLOBJS) $(PERLDLL_RES)
1001         $(LINK32) -dll -def:perldll.def -out:$@ \
1002                   $(SUBSYS) $(LDLIBPATH) \
1003                   $(LINK_FLAGS) $(LIBFILES) \
1004                   $(XDLLOBJS) $(PERLDLL_RES)
1005
1006 $(DLLDIR) :
1007         if not exist "$(DLLDIR)" mkdir "$(DLLDIR)"
1008
1009 $(DLLDIR)\DynaLoader.obj: $(EXTDIR)\DynaLoader\DynaLoader.c
1010     $(CC) -c $(CFLAGS) -DPERL_EXTERNAL_GLOB -Fo$(DLLDIR)\ \
1011           $(EXTDIR)\DynaLoader\DynaLoader.c
1012
1013 XPERLEXEOBJS = \
1014 $(MACHINE)\perlmain.obj
1015
1016 $(PERLEXE) : $(PERLDLL) $(CONFIGPM) $(XPERLEXEOBJS) $(PERLEXE_RES) $(STARTOBJS)
1017         $(LINK32) $(SUBSYS) $(LDLIBPATH) \
1018             -entry:wWinMainCRTStartup \
1019             -out:$(MACHINE)\perl.exe \
1020             -stack:0x100000 $(LINK_FLAGS) $(STARTOBJS) $(XPERLEXEOBJS) \
1021             $(PERLIMPLIB) $(PERLEXE_RES) $(LIBFILES)
1022
1023 $(MACHINE)\perlmain.obj : perlmain.c
1024         $(CC) $(CFLAGS_O) -UPERLDLL -Fo$(MACHINE)\ -c perlmain.c
1025
1026 iodll:     $(IO_DLL)
1027 socketdll: $(SOCKET_DLL)
1028 dumperdll: $(DUMPER_DLL)
1029
1030 dlls: socketdll iodll dumperdll
1031         -xmkdir -p $(MACHINE)/lib/auto/IO
1032         cp ../lib/auto/IO/IO.bs $(MACHINE)/lib/auto/IO
1033         cp ../lib/auto/IO/IO.dll $(MACHINE)/lib/auto/IO
1034         -xmkdir $(MACHINE)/lib/auto/Socket
1035         cp ../lib/auto/Socket/Socket.bs $(MACHINE)/lib/auto/Socket
1036         cp ../lib/auto/Socket/Socket.dll $(MACHINE)/lib/auto/Socket
1037         -xmkdir -p $(MACHINE)/lib/auto/Data/Dumper
1038         cp ../lib/auto/Data/Dumper/Dumper.bs $(MACHINE)/lib/auto/Data/Dumper
1039         cp ../lib/auto/Data/Dumper/Dumper.dll $(MACHINE)/lib/auto/Data/Dumper
1040
1041 makedist: all dlls
1042         $(COPY) $(CELIBPATH)\celib.dll $(MACHINE)
1043         cp perl.txt $(MACHINE)
1044         cp registry.bat $(MACHINE)
1045         cp ../lib/Config.pm $(MACHINE)/lib
1046         cd $(MACHINE)
1047         rm -f perl-$(MACHINE).tar.gz
1048         sh -c "tar cf perl-$(MACHINE).tar *.exe *.dll *.txt *.bat lib"
1049         gzip -9 perl-$(MACHINE).tar
1050         mv perl-$(MACHINE).tar.gz h:/freenet/new
1051         cd ..
1052
1053 !if "$(MACHINE)" == "wince-arm-hpc-wce300"
1054 install: all
1055         cecopy pc:$(MACHINE)/perl.exe ce:/speicherkarte/bin
1056         cecopy pc:$(MACHINE)/perl$(PV).dll ce:/speicherkarte/bin
1057 install_dlls: dlls
1058         cecopy pc:../lib/auto/IO/io.dll ce:/speicherkarte/usr/lib/perl5/auto/IO/io.dll
1059 !endif
1060
1061 !if "$(MACHINE)" == "wince-arm-hpc-wce211"
1062 install: all
1063         cecopy pc:$(MACHINE)/perl.exe ce:/speicherkarte/bin
1064         cecopy pc:$(MACHINE)/perl$(PV).dll ce:/speicherkarte/bin
1065 !endif
1066
1067 !if "$(MACHINE)" == "wince-mips-hpc-wce211"
1068 install:
1069         cecopy pc:$(MACHINE)/perl.exe ce:/bin
1070         cecopy pc:$(MACHINE)/perl$(PV).dll ce:/bin
1071 !endif
1072
1073 !if "$(MACHINE)" == "wince-mips-hpc-wce200"
1074 install:
1075         cecopy pc:$(MACHINE)/perl.exe ce:/bin
1076         cecopy pc:$(MACHINE)/perl$(PV).dll ce:/bin
1077 !endif
1078
1079 !if "$(MACHINE)" == "wince-sh3-hpc-wce211"
1080 install:
1081         cecopy pc:$(MACHINE)/perl.exe ce:/speicherkarte2/bin
1082         cecopy pc:$(MACHINE)/perl$(PV).dll ce:/speicherkarte2/bin
1083 !endif