automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Automake] Including Shared Objects and other files in Makefile.am


From: Sujit Devkar
Subject: Re: [Automake] Including Shared Objects and other files in Makefile.am
Date: Fri, 05 Oct 2012 17:28:40 +0530
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1

Hi,
I tried using AM_CPPFLAGS= -I/usr/abc/inc and AM_LDFLAGS= -L/usr/abc/lib, but I get these are directories. Also when I tried using AM_LDFLAGS= /usr/abc/lib/libsrl.so but I get access denies even I am root.

My shell script which has
e.g. g++ -I/usr/abc/inc -L/usr/abc/lib abc.cpp -lsrl -o abc works perfectly well.

Also I use .java files in the project and I use
gcj --main=example Example.java --classpath=library --classpath=library Example --indirect-dispatch

How can I write this in configure.ac?

Rgds,
Sujit

On 10/3/2012 1:36 PM, Peter Johansson wrote:
On 10/03/2012 02:15 PM, Sujit Devkar wrote:
Dear Sir/Madam,

I am working on a C++ project in which I am trying to use autotools to make my project easy to deploy. I have some .so files in a directory and some other files in different directory. Before using autotools, I had a shell script to include files using options [ I ] and [ L ] as
g++ -I /usr/abc/inc -L /usr/dia/lib ...

Add

AM_CPPFLAGS = -I/usr/abc/inc

AM_LDFLAGS = -L/usr/dia/lib

and Automake should do what you expect (hopefully).

HTH,
Peter
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you






reply via email to

[Prev in Thread] Current Thread [Next in Thread]