makefile.am rules

makefile.am rules

Post by David L. Bilbe » Thu, 22 Apr 1999 04:00:00



I'm trying to learn autoconf and automake, and I've come across a problem
that I can't seem to find the answer to.

In my source tree, I have a common directory with some C source files that
need to be compiled into .o files.  They are not used to build a program in
the common directory, nor are they used to build a library.  They are,
however going to be linked in with other executables later.

My problem is this:  how do I write a Makefile.am that merely compiles
these source files without attempting to link them to anything?

Thanks in advance,
David Bilbey

--
"I'm not sure I want to get the nickname `The Love Machine,' because how
does that affect my nickname now, which is `The Lawn-Cutting Machine'?"
--Jack Handey

 
 
 

makefile.am rules

Post by Kalle Olavi Niemital » Fri, 21 May 1999 04:00:00



Quote:> My problem is this:  how do I write a Makefile.am that merely compiles
> these source files without attempting to link them to anything?

I had a similar problem, and made Automake collect the .o files in a
static library.  Then I made the Makefiles of other directories refer
to the library.  Now the code feels more modular too.

 
 
 

1. Makefile : Rule of one line & Rule of some lines

My Makefile holds the following rules :

-----------------------------------------
xxx1 :

xxx2 :

aaa : xxx1 xxx2

bbb:
    xxx1
    xxx2
-----------------------------------------

===========================
%make aaa
### xxx1 ###
### xxx2 ###

%make bbb
Bad command or file name
Bad command or file name
===========================

I wrote the 'bbb' rules in some lines,
  however the compilation result is not what I need.

What is wrong?

============================
Alex Vinokur

   http://go.to/alexv_math
============================

2. How do I download RedHat base & RPMS directories ?

3. What do I do with Makefile.am

4. NFS over slow networks

5. : Makefile.am vs. Kernel Modules

6. Help: Solaris 7 crashes on incoming telnet

7. Makefile.am

8. RH 7.1 and Perle PCI-Fast 8

9. Automake: Makefile.am for sub directories

10. Remove Rules.make from Makefiles (2/3)

11. Remove Rules.make from Makefiles (3/3)

12. Makefile inference rules and directories

13. Makefile rule help