How to install library in a specify directory?

2011-01-04 Thread Lyre
For example, I'm writing a lib named mylib. The library contain a .pc file: instdir = ${libdir}/pkgconfig inst_DATA = mylib.pc And I want that *.so goes in /usr/lib/mylib/ and *.pc goes in /usr/lib/pkgconfig/ ./configure --libdir=/usr/lib/mylib will install *.so into correct direcotry, however *.

Re: How to specify compiler?

2010-09-09 Thread Lyre
Never mind. set "CC = clang" in Makefile.am would work, however, I forgot it. On Thu, Sep 9, 2010 at 2:22 PM, Lyre <417...@gmail.com> wrote: > I would like use clang as the default compiler rather than gcc. Is there an > option to specify it ? >

How to specify compiler?

2010-09-08 Thread Lyre
I would like use clang as the default compiler rather than gcc. Is there an option to specify it ?

How to echo a "$" to a file in Makefile.am

2010-07-02 Thread Lyre
In Makefile.am, I wrote an custom rule which append the program's path to the startup script. it looks like: echo $(datadir)/myprogram/program-name $OPTIONS >> /bin/program-name I want to get : /usr/share/myprogram/program-name $OPTIONS however, waht I accully get is : /usr/share/