From 2ea328509d1771faca70c9d8e77d2cb66c053640 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Tue, 8 May 2007 16:36:15 +0000 Subject: [PATCH] Added. --- scripts/lib2def | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 scripts/lib2def diff --git a/scripts/lib2def b/scripts/lib2def new file mode 100755 index 00000000..aad9dd8b --- /dev/null +++ b/scripts/lib2def @@ -0,0 +1,11 @@ +#!/bin/sh +# +# Generate .DEF file from .a file for Win32 DLLs. This attempts to take +# public SILC Toolkit routines only. +# +# The file ALWAYS must be edited by hand to remove some internal functions. +# +# Usage: lib2def +# + +nm $1 | grep " T " | cut -dT -f2 | grep silc_ | grep -v _st_ | sed 's/^ /\t/' | awk 'BEGIN { N=1; print "EXPORTS" } { print $0 " @ " N " ;"; N++; }' -- 2.24.0