summaryrefslogtreecommitdiff
path: root/sys/src/ape/lib/mp
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2016-04-11 20:23:34 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2016-04-11 20:23:34 +0200
commit464763202be7bdafa703c8c2ecfe1f4a5142f26f (patch)
tree76487fcd0124776ac366efb1bbcb4b408aea46a9 /sys/src/ape/lib/mp
parent21aee5d8cbd1ebae796cdc58404b8d8902738370 (diff)
ape: add libauth, libbio, libmp and libsec as replacements for openssl
Diffstat (limited to 'sys/src/ape/lib/mp')
-rw-r--r--sys/src/ape/lib/mp/386/mkfile26
-rw-r--r--sys/src/ape/lib/mp/alpha/mkfile15
-rw-r--r--sys/src/ape/lib/mp/amd64/mkfile26
-rw-r--r--sys/src/ape/lib/mp/arm/mkfile21
-rw-r--r--sys/src/ape/lib/mp/mips/mkfile26
-rw-r--r--sys/src/ape/lib/mp/mkfile54
-rw-r--r--sys/src/ape/lib/mp/port/mkfile72
-rw-r--r--sys/src/ape/lib/mp/power/mkfile25
-rw-r--r--sys/src/ape/lib/mp/spim/mkfile26
9 files changed, 291 insertions, 0 deletions
diff --git a/sys/src/ape/lib/mp/386/mkfile b/sys/src/ape/lib/mp/386/mkfile
new file mode 100644
index 000000000..1dc9bfcd3
--- /dev/null
+++ b/sys/src/ape/lib/mp/386/mkfile
@@ -0,0 +1,26 @@
+APE=/sys/src/ape
+<$APE/config
+
+LIB=/$objtype/lib/ape/libmp.a
+
+SFILES=\
+ mpvecadd.s\
+ mpvecdigmuladd.s\
+ mpvecdigmulsub.s\
+ mpvecsub.s\
+ mpdigdiv.s\
+
+HFILES=\
+ /sys/include/ape/mp.h\
+ ../../../../libmp/port/dat.h
+
+OFILES=${SFILES:%.s=%.$O}
+
+UPDATE=mkfile\
+ $HFILES\
+ $SFILES\
+
+</sys/src/cmd/mksyslib
+
+%.$O: ../../../../libmp/386/%.s
+ $AS ../../../../libmp/386/$stem.s
diff --git a/sys/src/ape/lib/mp/alpha/mkfile b/sys/src/ape/lib/mp/alpha/mkfile
new file mode 100644
index 000000000..73b43cf84
--- /dev/null
+++ b/sys/src/ape/lib/mp/alpha/mkfile
@@ -0,0 +1,15 @@
+APE=/sys/src/ape
+<$APE/config
+
+LIB=/$objtype/lib/ape/libmp.a
+
+HFILES=\
+ /sys/include/ape/mp.h\
+ ../../../../libmp/port/dat.h
+
+OFILES=\
+
+UPDATE=mkfile\
+ $HFILES\
+
+</sys/src/cmd/mksyslib
diff --git a/sys/src/ape/lib/mp/amd64/mkfile b/sys/src/ape/lib/mp/amd64/mkfile
new file mode 100644
index 000000000..6698f501e
--- /dev/null
+++ b/sys/src/ape/lib/mp/amd64/mkfile
@@ -0,0 +1,26 @@
+APE=/sys/src/ape
+<$APE/config
+
+LIB=/$objtype/lib/ape/libmp.a
+
+SFILES=\
+ mpvecadd.s\
+ mpvecdigmuladd.s\
+ mpvecdigmulsub.s\
+ mpvecsub.s\
+ mpdigdiv.s\
+
+HFILES=\
+ /sys/include/ape/mp.h\
+ ../../../../libmp/port/dat.h
+
+OFILES=${SFILES:%.s=%.$O}
+
+UPDATE=mkfile\
+ $HFILES\
+ $SFILES\
+
+</sys/src/cmd/mksyslib
+
+%.$O: ../../../../libmp/amd64/%.s
+ $AS ../../../../libmp/amd64/$stem.s
diff --git a/sys/src/ape/lib/mp/arm/mkfile b/sys/src/ape/lib/mp/arm/mkfile
new file mode 100644
index 000000000..4801b8648
--- /dev/null
+++ b/sys/src/ape/lib/mp/arm/mkfile
@@ -0,0 +1,21 @@
+APE=/sys/src/ape
+<$APE/config
+
+LIB=/$objtype/lib/ape/libmp.a
+
+SFILES=mpvecdigmuladd.s mpvecdigmulsub.s mpvecadd.s mpvecsub.s
+
+HFILES=\
+ /sys/include/ape/mp.h\
+ ../../../../libmp/port/dat.h
+
+OFILES=${SFILES:%.s=%.$O}
+
+UPDATE=mkfile\
+ $HFILES\
+ $SFILES\
+
+</sys/src/cmd/mksyslib
+
+%.$O: ../../../../libmp/arm/%.s
+ $AS ../../../../libmp/arm/$stem.s
diff --git a/sys/src/ape/lib/mp/mips/mkfile b/sys/src/ape/lib/mp/mips/mkfile
new file mode 100644
index 000000000..e6df85c48
--- /dev/null
+++ b/sys/src/ape/lib/mp/mips/mkfile
@@ -0,0 +1,26 @@
+APE=/sys/src/ape
+<$APE/config
+
+LIB=/$objtype/lib/ape/libmp.a
+
+SFILES=\
+ mpvecadd.s\
+ mpvecsub.s\
+ mpvecdigmuladd.s\
+ mpvecdigmulsub.s\
+# mpdigdiv.s\
+
+HFILES=\
+ /sys/include/ape/mp.h\
+ ../../../../libmp/port/dat.h
+
+OFILES=${SFILES:%.s=%.$O}
+
+UPDATE=mkfile\
+ $HFILES\
+ $SFILES\
+
+</sys/src/cmd/mksyslib
+
+%.$O: ../../../../libmp/mips/%.s
+ $AS ../../../../libmp/mips/$stem.s
diff --git a/sys/src/ape/lib/mp/mkfile b/sys/src/ape/lib/mp/mkfile
new file mode 100644
index 000000000..2feb712b4
--- /dev/null
+++ b/sys/src/ape/lib/mp/mkfile
@@ -0,0 +1,54 @@
+APE=/sys/src/ape
+<$APE/config
+
+DIRS=port $CPUS
+
+default:V: all
+
+install all:V:
+ for(i in port $objtype)@{
+ echo $i
+ cd $i
+ mk $MKFLAGS $target
+ }
+
+nuke:V: clean
+ rm -f /$objtype/lib/ape/libmp.a
+
+clean:V:
+ for(i in $DIRS)@{
+ echo $i
+ cd $i
+ mk $MKFLAGS $target
+ }
+
+installall:V:
+ for(objtype in $CPUS) mk $MKFLAGS install
+
+everything:V:
+ rm -f */*.[$OS]
+ for(objtype in 386)@{
+ echo $objtype
+ mk $MKFLAGS install
+ }
+ rm -f */*.[$OS]
+
+test.$O: ../../../libmp/test.c /sys/include/ape/mp.h ../../../libmp/port/dat.h
+ $CC -c -D_POSIX_SOURCE -D_PLAN9_SOURCE -I../9 -I../../../libmp/port ../../../libmp/test.c
+
+$O.test: test.$O /$objtype/lib/ape/libmp.a
+ $LD -o $O.test test.$O
+
+bigtest.$O: ../../../libmp/bigtest.c /sys/include/ape/mp.h ../../../libmp/port/dat.h
+ $CC -c -D_POSIX_SOURCE -D_PLAN9_SOURCE -I../9 -I../../../libmp/port ../../../libmp/bigtest.c
+
+$O.bigtest: bigtest.$O /$objtype/lib/ape/libmp.a
+ $LD -o $O.bigtest bigtest.$O
+
+allout:
+ objtype=386; mk; mk 8.test 8.bigtest
+ objtype=amd64; mk; mk 6.test 6.bigtest
+ objtype=arm; mk; mk 5.test 5.bigtest
+
+cleanout:
+ rm -f [568].* *.[568]
diff --git a/sys/src/ape/lib/mp/port/mkfile b/sys/src/ape/lib/mp/port/mkfile
new file mode 100644
index 000000000..3e7a518e7
--- /dev/null
+++ b/sys/src/ape/lib/mp/port/mkfile
@@ -0,0 +1,72 @@
+APE=/sys/src/ape
+<$APE/config
+
+LIB=/$objtype/lib/ape/libmp.a
+
+FILES=\
+ mpaux\
+ mpfmt\
+ strtomp\
+ mptobe\
+ mptober\
+ mptole\
+ mptolel\
+ betomp\
+ letomp\
+ mpadd\
+ mpsub\
+ mpcmp\
+ mpsel\
+ mpfactorial\
+ mpmul\
+ mpleft\
+ mpright\
+ mpvecadd\
+ mpvecsub\
+ mpvecdigmuladd\
+ mpveccmp\
+ mpvectscmp\
+ mpdigdiv\
+ mpdiv\
+ mpexp\
+ mpmod\
+ mpmodop\
+ mpextendedgcd\
+ mpinvert\
+ mprand\
+ mpnrand\
+ crt\
+ mptoi\
+ mptoui\
+ mptov\
+ mptouv\
+ mpfield\
+ cnfield\
+ gmfield\
+ mplogic\
+
+ALLOFILES=${FILES:%=%.$O}
+
+# cull things in the per-machine directories from this list
+OFILES= `{rfork en; \
+ if(~ $objtype spim) objtype=mips; \
+ bind -a ../../../../libmp/$objtype ../$objtype; \
+ rc ../../../../libmp/port/reduce $O $objtype $ALLOFILES}
+
+HFILES=\
+ /sys/include/ape/mp.h\
+ ../../../../libmp/port/dat.h\
+
+CFILES=${FILES:%=%.c}
+
+UPDATE=\
+ mkfile\
+ $HFILES\
+ $CFILES\
+
+</sys/src/cmd/mksyslib
+
+CFLAGS=-TVwc -+ -D_POSIX_SOURCE -D_PLAN9_SOURCE -I. -I../../9
+
+%.$O: ../../../../libmp/port/%.c
+ $CC $CFLAGS ../../../../libmp/port/$stem.c
diff --git a/sys/src/ape/lib/mp/power/mkfile b/sys/src/ape/lib/mp/power/mkfile
new file mode 100644
index 000000000..471bf21da
--- /dev/null
+++ b/sys/src/ape/lib/mp/power/mkfile
@@ -0,0 +1,25 @@
+APE=/sys/src/ape
+<$APE/config
+
+LIB=/$objtype/lib/ape/libmp.a
+
+SFILES=\
+ mpvecadd.s\
+ mpvecsub.s\
+ mpvecdigmuladd.s\
+ mpvecdigmulsub.s\
+
+HFILES=\
+ /sys/include/ape/mp.h\
+ ../../../../libmp/port/dat.h
+
+OFILES=${SFILES:%.s=%.$O}
+
+UPDATE=mkfile\
+ $HFILES\
+ $SFILES\
+
+</sys/src/cmd/mksyslib
+
+%.$O: ../../../../libmp/power/%.s
+ $AS ../../../../libmp/power/$stem.s
diff --git a/sys/src/ape/lib/mp/spim/mkfile b/sys/src/ape/lib/mp/spim/mkfile
new file mode 100644
index 000000000..e6df85c48
--- /dev/null
+++ b/sys/src/ape/lib/mp/spim/mkfile
@@ -0,0 +1,26 @@
+APE=/sys/src/ape
+<$APE/config
+
+LIB=/$objtype/lib/ape/libmp.a
+
+SFILES=\
+ mpvecadd.s\
+ mpvecsub.s\
+ mpvecdigmuladd.s\
+ mpvecdigmulsub.s\
+# mpdigdiv.s\
+
+HFILES=\
+ /sys/include/ape/mp.h\
+ ../../../../libmp/port/dat.h
+
+OFILES=${SFILES:%.s=%.$O}
+
+UPDATE=mkfile\
+ $HFILES\
+ $SFILES\
+
+</sys/src/cmd/mksyslib
+
+%.$O: ../../../../libmp/mips/%.s
+ $AS ../../../../libmp/mips/$stem.s