How do you compile without linking in Automake?

Posted by MDH on Stack Overflow See other posts from Stack Overflow or by MDH
Published on 2009-06-11T19:46:00Z Indexed on 2010/06/09 23:02 UTC
Read the original article Hit count: 231

Filed under:
|
|
|
|

I am new to Automake and I am attempting to compile without linking. My goal is to generate a simple Makefile as shown below using Automake.


    CFLAG = -Wall

    build: Thread.o

    Thread.o: Thread.cc Thread.h
        g++ $(CFLAG) -c Thread.cc

    clean:
        rm -f *.o

My attempt so far has brought me to the following Makefile.ac.


    noinst_PROGRAMS = thread

    thread_SOURCES = Thread.cc

    EXTRA_DIST= Thread.h

Does anyone have any advice on how to simulate my original Makefile?

Thanks in advance.

© Stack Overflow or respective owner

Related posts about gcc

Related posts about makefile