File: mkso.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 (42 lines) | stat: -rwxr-xr-x 875 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
#! /bin/sh
#
# This script builds "libtkhtml.so" for Linux and Tcl/Tk8.3.3-stubs.
# First do "make srcdir; cd srcdir; ../tkhtml/configure; make headers"
# Then run this script.
#
# $Revision: 1.8 $
#

SVER=8.3
VER=8.3.2

TCLBASE=../tcl$VER
TKBASE=../tk$VER
TKHTML=../tkhtml
TKLIB="/usr/lib/libtkstub$SVER.a -L/usr/X11R6/lib -lX11"
TCLLIB="/usr/lib/libtclstub$SVER.a -lm -ldl"

CC='gcc -g -fPIC -O2'
STUBS='-DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1'
INC="-I. -I$TCLBASE/generic -I$TKBASE/generic"

CMD="rm *.o"
echo $CMD
$CMD
for i in $TKHTML/src/html[a-z]*.c htmltokens.c; do
  if [ `basename $i` != htmlwish.c ]; then
    CMD="$CC $STUBS $INC -c $i"
    echo $CMD
    $CMD
  fi
done
CMD="gcc -g -o tkhtml.so -shared *.o $TKLIB $TCLLIB"
echo $CMD
$CMD

CMD="$CC $INC -c $TKHTML/src/htmlPs.c"
echo $CMD
$CMD
CMD="gcc -g -o tkhtmlpr.so -shared htmlPs.o $TKLIB $TCLLIB"
echo $CMD
$CMD