source: trunk/base/scripts/compile.sh @ 2379

Last change on this file since 2379 was 2379, checked in by jkh, 18 years ago

Move all the scripts into a common location in preparation for making
darwinports more tcl version-agile.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 506 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 -no-cpp-precomp $*
10        ;;
11        FreeBSD)
12                cc -c -fPIC -DPIC -I/usr/local/include/tcl8.3 -O -pipe $*
13        ;;
14        NetBSD)
15                cc -c -fPIC -DPIC -I/usr/pkg/include -O -pipe $*
16        ;;
17        Linux)
18                cc -c -fPIC -DPIC -I/usr/include/tcl8.3 -O -pipe $*
19        ;;
20esac
Note: See TracBrowser for help on using the repository browser.