scan-prep: clean sqlite/sqlite3.o sqlite/shell.o lib/liblzma.a
@echo scan-build -v -o report make -j10
+# crypto/tls items
+X255OBJ= \
+base.o \
+fe_0.o \
+fe_1.o \
+fe_add.o \
+fe_copy.o \
+fe_cswap.o \
+fe_frombytes.o \
+fe_invert.o \
+fe_mul.o \
+fe_mul121666.o \
+fe_sq.o \
+fe_sub.o \
+fe_tobytes.o \
+scalarmult.o
+
+x25519.o: $(addprefix crypto/ref10/, $(X255OBJ))
+ ld -o $@ -r $+
+
clean:
rm -f *.o sqlite/*.o lib/*.o $(LZMAOBJ) liblzma.a \
libelf.a libzpm.a zpm-addfile soname \
t/ctap/*.o \
$(ZPKGBIN) \
db.sql \
- elf/*.o lib/jsw/*.o
+ elf/*.o lib/jsw/*.o \
+ $(addprefix crypto/ref10/, $(X255OBJ)) \
+ x25519.o
*) die "usage ..." ;;
esac
done
-shift $(( OPTIND - 1))
+shift $(( OPTIND - 1 ))
+
+if [ -n "$rootdir" ]; then
+ : rootdir=${rootdir%%/}
+ ZPM_ROOT_DIR=$rootdir
+ export ZPM_ROOT_DIR
+fi
+
+if [ -n "$localdb" ]; then
+ ZPMDB=$localdb
+elif [ -z "$ZPMDB" ]; then
+ ZPMDB="$ZPM_ROOT_DIR/var/lib/zpm/local.db"
+fi
-ZPMDB=${localdb:-${ZPMDB:-/var/lib/zpm/local.db}}
export ZPMDB
+
# create the localdb if needed
zpm init $ZPMDB
done
fi
-if [ -n "$rootdir" ]; then
- ZPM_ROOT_DIR=$rootdir
- export ZPM_ROOT_DIR
- : rootdir=${rootdir%%/}
-fi
-
if [ $dryrun -gt 0 ]; then
runscripts=0 # we don't want to run post scripts on a dry-run
syncopts="$syncopts -n"