This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Reunite the first .PHONY targets (based on Garry Williams'
[perl5.git] / wince / README.compile
CommitLineData
e4451f11
JH
1Change config.ce. The makefile will automatically generate new
2config.h.
3
4To generate a new Config.pm, delete config.h or
5touch config.ce.
6
7The socket stuff has been rewritten so fds from ceio are used. This
8makes it easy to use them as perl file handles.
9
10Socket and IO dlls compiled. Seem to work.
11
12The sequence for building a new target is:
13
47bcb90d
VK
14make -f Makefile.ce clean # clean up
15make -f Makefile.ce all # build for target
e4451f11 16
47bcb90d
VK
17CROSS_NAME macro is provided to name your current cross compilation.
18It is "wince" by default, but may be any other identifier to
19differentiate and co-exist miscellaneous configurations.
20So your command often will be
21
22make -f Makefile.ce all CROSS_NAME=[my-cross-name]
23
24It is implemented an easy way to build most of module extensions.
25First, you need to do
26
27 nmake host-install CROSS_NAME=[my-cross-name]
28
29This command will install a set of files into your perl directory.
30That will allow you to do cross-compiling for your CE device.
31Those files are C libraries, h-files, Cross.pm, Config.pm. Note
32that it will use first found perl in your path. You should think about
33your PATH variable and change it at your will before copying such files.
34
35After that to do cross-compiling you need to invoke
36
37 perl -MCross Makefile.PL
38
39or
40
41 perl -MCross=[my-cross-name] Makefile.PL
42
43to prepare Makefile, and then nmake, nmake install, as usually you do.
44'test' tartget is still not ready.