automake
[Top][All Lists]
Advanced

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

Re: Trouble creating a check program in automake


From: Tyler Retzlaff
Subject: Re: Trouble creating a check program in automake
Date: Sat, 07 Mar 2015 20:23:14 -0500
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

Hi Arthur,

On 3/7/2015 5:07 PM, Arthur Schwarz wrote:
# Test Program: Errors flagged here
     check_PROGRAMS   = Test
     check_SOURCES    = $(testHead) $(testCPP)
     TESTS            = $(check_PROGRAMS)

You need to use the name of the program as a prefix to the SOURCES primary. Also you don't need to list the $(testHEAD) as SOURCES for Test.

check_PROGRAMS = Test
Test_SOURCES =  $(testCPP)
^^^^

You can build many programs and they may all have different sources. For example

check_PROGRAMS = foo bar
foo_SOURCES = foo_src.c
bar_SOURCES = bar_src.c

Will build program foo with foo_src.c and build program bar with bar_src.c

Kind regards,

Tyler



reply via email to

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