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