Seeding from the 1.2 tree.

This commit is contained in:
Dan Mashal
2013-01-01 03:00:55 -08:00
parent d8c87c4ded
commit 87b806a563
1424 changed files with 260320 additions and 0 deletions

33
dll/encrypt/encrypt.sh Normal file
View File

@@ -0,0 +1,33 @@
#!/bin/sh
# Make .def file:
export LIBPATH=/usr/local/cygwin-new/i586-pc-cygwin/lib
export LD=/usr/local/cygwin-new/bin/i586-pc-cygwin-ld
export NM=/usr/local/cygwin-new/bin/i586-pc-cygwin-nm
export DLLTOOL=/usr/local/cygwin-new/bin/i586-pc-cygwin-dlltool
export AS=/usr/local/cygwin-new/bin/i586-pc-cygwin-as
export GCC=/usr/local/cygwin-new/bin/i586-pc-cygwin-gcc
CP=cp
RM=rm
$GCC -I../../include -c encrypt.c
echo EXPORTS > encrypt.def
$NM encrypt.o ../init.o ../fixup.o | grep '^........ [T] _' | sed 's/[^_]*_//' >> encrypt.def
# Link DLL.
$LD --base-file encrypt.base --dll -o encrypt.dll encrypt.o ../init.o ../fixup.o\
$LIBPATH/libcygwin.a $LIBPATH/libkernel32.a -e _dll_entry@12
$DLLTOOL --as=$AS --dllname encrypt.dll --def encrypt.def --base-file\
encrypt.base --output-exp encrypt.exp
$LD --base-file encrypt.base encrypt.exp --dll -o encrypt.dll encrypt.o\
../init.o ../fixup.o $LIBPATH/libcygwin.a $LIBPATH/libkernel32.a -e _dll_entry@12
$DLLTOOL --as=$AS --dllname encrypt.dll --def encrypt.def --base-file\
encrypt.base --output-exp encrypt.exp
$LD encrypt.exp --dll -o encrypt.dll encrypt.o ../init.o ../fixup.o\
$LIBPATH/libcygwin.a $LIBPATH/libkernel32.a -e _dll_entry@12
# Build the encryptB.a lib to link to:
$DLLTOOL --as=$AS --dllname encrypt.dll --def encrypt.def --output-lib encrypt.a
$RM *.base *.exp *.def
$CP *.dll ..