This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
How to compile exec and lib from the same sources?
- From: Grzegorz Jakacki <jakacki at cidc dot com dot cn>
- To: <automake at gnu dot org>
- Date: Wed, 26 Jun 2002 16:56:50 +0800 (CST)
- Subject: How to compile exec and lib from the same sources?
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. #
###################################################################