summaryrefslogtreecommitdiff
path: root/os2
diff options
context:
space:
mode:
authorIlya Zakharevich <ilya@math.berkeley.edu>1998-07-14 23:49:24 -0400
committerGurusamy Sarathy <gsar@cpan.org>1998-07-15 08:02:14 +0000
commit53285a483ad40748b7b8acb4d49f634fe77d3170 (patch)
tree7d56cbde19bbaca83a2676100e74587122b2ca9d /os2
parente262e9be635eb2f99e78e37e3729f3b9494cef78 (diff)
downloadperl-53285a483ad40748b7b8acb4d49f634fe77d3170.tar.gz
Additional targets for OS/2 build
Message-Id: <199807150749.DAA09177@monk.mps.ohio-state.edu> p4raw-id: //depot/perl@1515
Diffstat (limited to 'os2')
-rw-r--r--os2/Makefile.SHs16
1 files changed, 16 insertions, 0 deletions
diff --git a/os2/Makefile.SHs b/os2/Makefile.SHs
index fd3766e0d6..8223818133 100644
--- a/os2/Makefile.SHs
+++ b/os2/Makefile.SHs
@@ -116,6 +116,14 @@ dlfcn.h: os2/dlfcn.h
perl___: $& perlmain$(OBJ_EXT) $(LIBPERL) $(DYNALOADER) $(static_ext) ext.libs
$(SHRPENV) $(CC) $(LARGE) $(CLDFLAGS) $(CCDLFLAGS) -o perl___ perlmain$(OBJ_EXT) $(DYNALOADER) $(static_ext) $(LIBPERL) `cat ext.libs` $(libs)
+# This one is compiled -Zsys, so cannot do many things:
+
+# Remove -Zcrtdll, add -Zsys
+SYS_CLDFLAGS = -Zexe -Zomf -Zmt -Zsys -Zstack 32000
+
+perl_sys: $& perlmain$(OBJ_EXT) $(LIBPERL) $(DYNALOADER) $(static_ext) ext.libs
+ $(SHRPENV) $(CC) $(LARGE) $(SYS_CLDFLAGS) $(CCDLFLAGS) -o perl_sys perlmain$(OBJ_EXT) $(DYNALOADER) $(static_ext) $(LIBPERL) `cat ext.libs` $(libs)
+
installcmd :
perl -e 'die qq{Give the option INSTALLCMDDIR=... to make!} if $$ARGV[0] eq ""' $(INSTALLCMDDIR)
perl os2/perl2cmd.pl $(INSTALLCMDDIR)
@@ -181,6 +189,14 @@ aout_install.perl: perl_ installperl
aout_test: perl_
- cd t && (rm -f perl_$(EXE_EXT); $(LNS) ../perl_$(EXE_EXT) perl$(EXE_EXT)) && ./perl TEST </dev/tty
+# To test with harness, set HARNESS_BAD_EXITCODE=2
+
+sys_test: perl_sys
+ - cd t && (rm -f perl_$(EXE_EXT); $(LNS) ../perl_sys$(EXE_EXT) perl$(EXE_EXT)) && ./perl TEST </dev/tty
+
+sys_harness: perl_sys
+ - cd t && (rm -f perl_$(EXE_EXT); $(LNS) ../perl_sys$(EXE_EXT) perl$(EXE_EXT)) && env HARNESS_BAD_EXITCODE=2 ./perl harness </dev/tty
+
lib/auto/OS2/*/%.a : ext/OS2/%/Makefile.aout
cd ext/OS2/$(basename $(notdir $@)) ; make -f Makefile.aout config || echo "$make config failed, continuing anyway..."
cd ext/OS2/$(basename $(notdir $@)) ; make -f Makefile.aout LINKTYPE=static CCCDLFLAGS=