File: mkso.sh

package info (click to toggle)
saods9 7.3.2%2Brepack-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 22,044 kB
  • ctags: 21,414
  • sloc: cpp: 66,406; tcl: 60,491; ansic: 19,507; sh: 9,996; xml: 1,375; makefile: 892; perl: 68
file content (28 lines) | stat: -rwxr-xr-x 544 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
#! /bin/sh
#
# This script builds "libtkhtml.so" for Linux and Tcl/Tk8.3-stubs.
# First do "make srcdir; cd srcdir".  Then run this script.
#
# $Revision: 1.1.1.1 $
#

BASE=/home/drh/tcltk/8.3linux
VERS=8.3

TKLIB="$BASE/libtkstub${VERS}g.a -L/usr/X11R6/lib -lX11"
TCLLIB="$BASE/libtclstub${VERS}g.a -lm -ldl"

CC='gcc -fPIC -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 -O2'
INC="-I. -I$BASE"

CMD="rm *.o"
echo $CMD
$CMD
for i in *.c; do
  CMD="$CC $INC -c $i"
  echo $CMD
  $CMD
done
CMD="gcc -o libtkhtml.so -shared *.o $TKLIB $TCLLIB"
echo $CMD
$CMD