diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-12-14 19:34:30 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-12-14 19:34:30 +0000 |
| commit | 4982fb29a07d489327e8ed037c840b6afcc698ea (patch) | |
| tree | f7aead79773ad189d77dd595c8a90fad631a0b63 /fltk-config.in | |
| parent | 67bbab358f2c71ba7151b38146c71ec15d3931e4 (diff) | |
Clean up default menu for FLTK applications - don't need "About FLTK".
Add "--post program" option to fltk-config so that MacOS apps can bind
the resources. Also binds resources with --compile.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1846 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fltk-config.in')
| -rwxr-xr-x | fltk-config.in | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/fltk-config.in b/fltk-config.in index dfc0bc53c..a11656ab5 100755 --- a/fltk-config.in +++ b/fltk-config.in @@ -1,6 +1,6 @@ #! /bin/sh # -# "$Id: fltk-config.in,v 1.12.2.5 2001/11/28 15:55:33 easysw Exp $" +# "$Id: fltk-config.in,v 1.12.2.6 2001/12/14 19:34:29 easysw Exp $" # # FLTK configuration utility. # @@ -45,18 +45,19 @@ srcdir=@srcdir@ CXX="@CXX@" CC="@CC@" +# post-process command (only needed for MacOS) +POSTBUILD="@POSTBUILD@" + # flags for C++ compiler: CFLAGS="@CFLAGS@" CXXFLAGS="@CXXFLAGS@" LDFLAGS="@LDFLAGS@" LDLIBS="@LDFLAGS@ @LIBS@" -# program to make the archive: +# libraries to link with: LIBNAME="@LIBNAME@" DSONAME="@DSONAME@" DSOLINK="@DSOLINK@" - -# libraries to link with: IMAGELIBS="@IMAGELIBS@" usage () @@ -83,6 +84,7 @@ Options telling what information we request: Option to compile and link an application: [--compile program.cxx] + [--post program] " exit $1 } @@ -92,6 +94,7 @@ fi no_plugins=no compile= +post= # Parse command line options while test $# -gt 0 @@ -147,6 +150,11 @@ do ;; --compile) compile=$2 + post=$2 + shift + ;; + --post) + post=$2 shift ;; *) @@ -192,11 +200,17 @@ fi if test -n "$compile"; then prog=`basename $compile .cxx` + post=$prog echo $CXX $CXXFLAGS -o $prog $compile $LDSTATIC $CXX $CXXFLAGS -o $prog $compile $LDSTATIC fi +if test -n "$post" -a "$POSTBUILD" != ":"; then + echo $POSTBUILD $post $includedir/FL/mac.r + $POSTBUILD $post $includedir/FL/mac.r +fi + if test "$echo_prefix" = "yes"; then echo $prefix fi |
