test: create a link to the generated hw/xfree86/sdksyms.c at build time
authorGaetan Nadon <memsize@videotron.ca>
Fri, 4 Apr 2014 18:59:21 +0000 (14:59 -0400)
committerKeith Packard <keithp@keithp.com>
Fri, 18 Apr 2014 18:52:16 +0000 (11:52 -0700)
commit3119aae80782b7ff5613c719fbcc8a01feab1134
tree689ebc7118da236546654fab6848909ec796b544
parent58ef01648b18f85ad79620da110ece2339f638c3
test: create a link to the generated hw/xfree86/sdksyms.c at build time

Automake 1.14 gives us warning about source code specified in _SOURCES
that comes from directories other than the current one. It suggests to enable
the subdir-objects feature which only supports code in sub directories.

The test directory needs source from hw/xfree86 which is neither under test
nor under a sub directory of test. In 1.14 we get a warning, in 2.0 it will
break as it will overwrite the object code in xfree86.

The solution in this case is to create a link to hw/xfree86/sdksyms.c at build
time. It's just like any other built source file.

There are no links created in git.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
test/.gitignore
test/Makefile.am