automake
[Top][All Lists]
Advanced

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

Re:Re: how to install library in a specific directory?


From: A117
Subject: Re:Re: how to install library in a specific directory?
Date: Fri, 24 Jul 2009 14:21:31 +0800

lib_LTLIBRARIES = libezcommon.la
myincludedir = $(includedir)/ezproject
myinclude_HEADERS= ezcommon.h tinystr.h tinyxml.h
libezcommon_la_SOURCES = ezcommon.cpp \
        tinystr.cpp tinyxml.cpp tinyxmlerror.cpp tinyxmlparser.cpp
#libezcommon_la_LIBADD = tinystr.o tinyxml.o tinyxmlerror.o tinyxmlparser.o
libezcommon_la_LDFLAGS = -version-info 2:0:0
#EXTRA_DIST = tinystr.cpp tinyxml.cpp tinyxmlerror.cpp tinyxmlparser.cpp \
EXTRA_DIST = ezcommon.rc dllmain.cpp ezcommon.aps ezcommon.vcproj icon.ico \
        tinyxml.txt resource.h stdafx.h targetver.h

----- -----

On 7/23/2009 7:45 PM, A117 wrote:
> Sorry I forgot to mention the files in EXTRA_DIST are to be packed into 
> release package. All the cpp files mentioned here already exists and are to 
> be compiled and released.
> If I put all cpp files in _SOURCES, the EXTRA_DIST files are not released. 
> The only way I've found is to put only one cpp file in _SOURCES, while others 
> to EXTRA_DIST and add .o to _LIBADD. My goal is to build all the .cpp and put 
> all .cpp, .txt, .rc into release package.
>    

Okay, I understand the problem now. But there's not enough information 
in the snippet you posted to determine the cause. Can you post the 
entire Makefile.am file? Or at least a smaller example that reproduces 
the problem. There's nothing that I can see in the portion of your file 
that you posted that would be the cause of such a problem.

John

> -------------------------------------
> And can I ask another question? I want to build some source code files into 
> this library and need to distribute some other files, too. But EXTRA_DIST in 
> Makefile.am does not work as below,
> lib_LTLIBRARIES = libezcommon.la
> ...
> libezcommon_la_SOURCES = ezcommon.cpp tinystr.cpp ...
> EXTRA_DIST = tinyxml.txt ezcommon.rc ...
>
> If I write only one file in libezcommon_la_SOURCES, while adding others to 
> EXTRA_DIST and others' .o to libezcommon_la_LIBADD, it works. I don't know 
> why.
>
>    






reply via email to

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