File: mkdll.sh

package info (click to toggle)
tk-html3 3.0~fossil20110109-6
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 6,644 kB
  • ctags: 5,882
  • sloc: ansic: 48,994; tcl: 26,030; sh: 1,190; yacc: 161; makefile: 24
file content (47 lines) | stat: -rwxr-xr-x 1,264 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#! /bin/sh
#
# This script builds "tkhtml.dll" for Win95/NT and Tcl/Tk8.1.1-stubs.
# First do "make srcdir; cd srcdir".  Then run this script.
#
# Notes:
#
# The tclstub.o and tkstub.o files were obtained by compiling the
# tclStubLib.c and tkStubLib.c files from the Tk8.1.1 distribution
# using cygwin/mingw.  Do not use the tclstub81.lib and tkstub81.lib
# files that come with Tcl/Tk from scripts.  They won't work.
#
# $Revision: 1.10 $
#

LIBHOME=/u/pcmacdon/Tcl8.3/win32/lib
TCLBASE=/u/pcmacdon/Tcl8.3/tcl8.3
TKBASE=/u/pcmacdon/Tcl8.3/tk8.3
TKLIB="$LIBHOME/tkStubLib.a"
TCLLIB="$LIBHOME/tclStubLib.a"

PATH=$PATH:/usr/local/cygb20/bin

CC='i586-cygwin32-gcc -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS -mno-cygwin -O2'
INC="-I. -I$TCLBASE/generic -I$TKBASE/xlib -I$TKBASE/generic"

CMD="rm *.o"
echo $CMD
#$CMD
for i in *.c; do
  CMD="$CC $INC -c $i"
  echo $CMD
  $CMD
done
echo 'EXPORTS' >tkhtml.def
echo 'Tkhtml_Init' >>tkhtml.def
#-lcomdlg32 -luser32 -ladvapi32 -lgdi32. 

CMD="i586-cygwin32-dllwrap \
     --def tkhtml.def -v --export-all \
     --driver-name i586-cygwin32-gcc \
     --dlltool-name i586-cygwin32-dlltool \
     --as i586-cygwin32-as \
     --target i386-mingw32 -mno-cygwin \
     -dllname tkhtml.dll *.o $TKLIB $TCLLIB -luser32"
echo $CMD
$CMD