[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Passing command lines in Makefile.am
From: |
Ralf Wildenhues |
Subject: |
Re: Passing command lines in Makefile.am |
Date: |
Fri, 29 Sep 2006 13:41:35 +0200 |
User-agent: |
Mutt/1.5.13 (2006-09-08) |
Hello Pedro,
* Pedro Sousa wrote on Fri, Sep 29, 2006 at 01:22:38PM CEST:
>
> fltk2-config --cxxflags -> gives the compile command options
> fltk2-config --ldflags -> gives the linking command options
>
> For this I supposed that I could make a simple Makefile.am like this
> -------------------------------------------------------------------------
> FLTK_CXXFLAGS = `fltk2-config --cxxflags`
> FLTK_LDFLAGS = `fltk2-config --ldflags`
Put this in configure.ac:
FLTK_CXXFLAGS=`fltk2-config --cxxflags`
AC_SUBST([FLTK_CXXFLAGS])
FLTK_LDFLAGS=`fltk2-config --ldflags`
AC_SUBST([FLTK_LDFLAGS])
and then just use $(FLTK_CXXFLAGS) and $(FLTK_LDFLAGS) in Makefile.am.
Cheers,
Ralf