automake
[Top][All Lists]
Advanced

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

How to compile exec and lib from the same sources?


From: Grzegorz Jakacki
Subject: How to compile exec and lib from the same sources?
Date: Wed, 26 Jun 2002 16:56:50 +0800 (CST)

Hi,

After I switched from Automake 1.5 to 1.6 the following Makefile.am:

    bin_PROGRAMS      = foo
    lib_LTLIBRARIES   = libfoo.la
    foo_SOURCES       = foo.c
    libfoo_la_SOURCES = foo.c

gives

    automake: Makefile.am: object `foo.$(OBJEXT)' created both with
    libtool and without

How can I convince Automake to do what I want (=create exec and library
from exactly the same sources)?

Help appreciated.

Regards
Grzegorz

###################################################################
# Grzegorz Jakacki                         China IC Design Center #
# Senior Engineer, CAD Dept.               1 Gaojiayuan, Chaoyang #
# tel. +86-10-64365577 x2009               Beijing 100015, China  #
# Copyright (C) 2002 Grzegorz Jakacki, CIDC. All Rights Reserved. #
###################################################################




reply via email to

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