summaryrefslogtreecommitdiff
path: root/vos/compile_perl.cm
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-02-06 17:18:39 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-02-06 17:18:39 +0000
commit24e8e38014028731fb2fddf4fe788525eb66a6b5 (patch)
tree73f8787e5729b6649526706dd34657ea8ca2581b /vos/compile_perl.cm
parent18b095192e336ba31465f4d3dab1ecc90871c3a9 (diff)
downloadperl-24e8e38014028731fb2fddf4fe788525eb66a6b5.tar.gz
VOS port updates (from Paul Green <Paul_Green@stratus.com>)
p4raw-id: //depot/perl@5005
Diffstat (limited to 'vos/compile_perl.cm')
-rw-r--r--vos/compile_perl.cm49
1 files changed, 38 insertions, 11 deletions
diff --git a/vos/compile_perl.cm b/vos/compile_perl.cm
index a75d4e4740..86a8d6a182 100644
--- a/vos/compile_perl.cm
+++ b/vos/compile_perl.cm
@@ -1,13 +1,40 @@
+& This command macro creates the appropriate subdirectory
+& for the specified processor type and then runs the
+& build macro in that subdirectory to create the perl
+& executable program module file.
+& Written 99-02-03 by Paul Green (Paul_Green@stratus.com)
+&
+&begin_parameters
+ cpu option(-processor)name,allow(mc68020,i80860,pa7100,pa8000),=mc68020
+ recompile switch(-recompile),=1
+ rebind switch(-rebind),=1
+ module option(-module)module_name,='(current_module)'
+&end_parameters
&echo command_lines
-& This macro assumes you have either licensed the cross-compilers or
-& have one module of each type of architecture. Comment-out or edit
-& the lines that are different for your system.
-!change_current_dir obj
-!start_process '<build.cm -processor mc68020' -module m75
-!change_current_dir <obj.860
-!start_process '<build.cm -processor i80860' -module m10
-!change_current_dir <obj.7100
-!start_process '<build.cm -processor pa7100' -module m9
-!change_current_dir <obj.8000
-!start_process '<build.cm -processor pa8000' -module m9
+&
+&if &recompile&
+&then &set_string recompile -recompile
+&else &set_string recompile -no_recompile
+&
+&if &rebind&
+&then &set_string rebind -rebind
+&else &set_string rebind -no_rebind
+&
+&if &cpu& = mc68020
+&then &set_string obj ''
+&if &cpu& = i80860
+&then &set_string obj .860
+&if &cpu& = pa7100
+&then &set_string obj .7100
+&if &cpu& = pa8000
+&then &set_string obj .8000
+&
+&if ^ (exists obj&obj& -directory)
+&then !create_dir obj&obj&
+&
+&if ^ (exists obj&obj&>build.out)
+&then !create_file obj&obj&>build.out ; set_implicit_locking obj&obj&>build.out
+&
+!change_current_dir obj&obj&
+!start_process (string <build -processor &cpu& &recompile& &rebind&) -module &module&
!change_current_dir <