From fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Jul 2015 20:46:52 -0400 Subject: Initial commit --- sys/osb/mkpkg | 167 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 167 insertions(+) create mode 100644 sys/osb/mkpkg (limited to 'sys/osb/mkpkg') diff --git a/sys/osb/mkpkg b/sys/osb/mkpkg new file mode 100644 index 00000000..267b5ba6 --- /dev/null +++ b/sys/osb/mkpkg @@ -0,0 +1,167 @@ +# Make the OSB (bit and byte primitives) portion of the VOPS library. + +$checkout libvops.a lib$ +$update libvops.a +$checkin libvops.a lib$ +$exit + +generic: + # Convert the generic files into typed files. + $set GFLAGS = "-k -t UBcsilrdx" + $ifolder (achtiu.c, achtzu.gc) + $generic $(GFLAGS) achtzu.gc -o acht\$$tu.c $endif + $ifolder (achtib.c, achtzb.gc) + $generic $(GFLAGS) achtzb.gc -o acht\$$tb.c $endif + $ifolder (achtui.c, achtu.gc) + $generic $(GFLAGS) achtu.gc $endif + $ifolder (achtbi.c, achtb.gc) + $generic $(GFLAGS) achtb.gc $endif + $ifolder (ieeer.x, ieee.gx) + $generic -k -t rd ieee.gx $endif + ; + +libvops.a: + # Generic preprocessing is normally done only on the development system, + # and need not be available on all systems. + + $ifeq (USE_GENERIC, yes) $call generic $endif + + # The following contain machine dependent constants. + hlib$i1mach.f + hlib$d1mach.f + hlib$r1mach.f + + # The following should normally be optimized in assembler (see the + # special file list in "hlib$mkpkg.sf"). + + $ifeq (USE_CCOMPILER, yes) + bytmov.c + $else + bytmov.f + $end + + bitfields.c + aclrb.c # see also vops/ak/aclr*.x + + # The operation of the following depends upon integer overflow, which + # may result in an exception on some hosts. + + urand.x + imul32.c # added to support 64-bit + iscl32.c # added to support 64-bit + iscl64.c # added to support 64-bit + iand32.c # added to support 64-bit + strsum.c # added for VO integration support + + # If a C compiler is not available for the following they will have + # to be written in assembler or some other low level language, and + # added to the special file list. + + achtbb.c + achtbc.c + achtbd.c + achtbi.c + achtbl.c + achtbr.c + achtbs.c + achtbu.c + achtbx.c + achtcb.c + achtcu.c + achtdb.c + achtdu.c + achtib.c + achtiu.c + achtlb.c + achtlu.c + achtrb.c + achtru.c + achtsb.c + achtsu.c + achtub.c + achtuc.c + achtud.c + achtui.c + achtul.c + achtur.c + achtus.c + achtuu.c + achtux.c + achtxb.c + achtxu.c + and.c + not.c + or.c + shift.c + abs.c + i32to64.c + i64to32.c + ipak32.c + iupk32.c + ipak16.c + iupk16.c + + + # Both C and Fortran versions of the following are provided. + # The C versions are normally preferred and are the most portable. + + $ifeq (USE_CCOMPILER, yes) + bswap2.c + bswap4.c + bswap8.c + chrpak.c + chrupk.c + strpak.c + strupk.c + $else + bswap2.f + bswap4.f + bswap8.f # not written; wait until we need it + chrpak.f + chrupk.f + strpak.f + strupk.f + $endif + + # The following are fairly portable, but potentially machine dependent. + + ieeer.x + ieeed.x + + miilen.x + miinelem.x + miipak.x + miipak16.x + miipak32.x + miipak8.x + miipakd.x + miipakr.x + miipksize.x + miiupk.x + miiupk16.x + miiupk32.x + miiupk8.x + miiupkd.x + miiupkr.x + + nmilen.x + nminelem.x + nmipak.x + nmipak16.x + nmipak32.x + nmipak8.x + nmipakd.x + nmipakr.x + nmipksize.x + nmiupk.x + nmiupk16.x + nmiupk32.x + nmiupk8.x + nmiupkd.x + nmiupkr.x + + f77pak.f + f77upk.f + bitmov.x + xor.x + ; -- cgit