source: trunk/base/src/pextlib1.0/compile.sh @ 972

Last change on this file since 972 was 972, checked in by kevin, 18 years ago

support GNU/Linux (libtcl8.3 is in /usr/lib on RedHat and Debian).

  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 427 bytes
Line 
1#!/bin/sh
2
3# This is just for compiling Pextlib!  It's not a more generic wrapper.
4# Real simple for now, just come up with compilation flags for Darwin
5# or for FreeBSD.  Could obviously be extended later for other OSen.
6
7case `uname -s` in
8        Darwin)
9                cc -c -DPIC -O -pipe $*
10        ;;
11
12        FreeBSD)
13                cc -c -fPIC -DPIC -I/usr/local/include/tcl8.3 -O -pipe $*
14        ;;
15        Linux)
16                cc -c -fPIC -DPIC -I/usr/include/tcl8.3 -O -pipe $*
17        ;;
18esac
Note: See TracBrowser for help on using the repository browser.