In article <17212.1420481...@splode.eterna.com.au>, matthew green <m...@eterna.com.au> wrote: > >"Christos Zoulas" writes: >> Module Name: src >> Committed By: christos >> Date: Mon Jan 5 16:26:48 UTC 2015 >> >> Modified Files: >> src/external/mit/xorg/lib/dri: Makefile >> >> Log Message: >> Prevent .y.c from regenerating c files from yacc. >> XXX: Why are we compiling glcpp-parse.c both here and in the gallium >> subdirectory? > >you know of a way for "convience libraries" in netbsd to be all >linked together into a single library, like libtool provides? > >no? that's why. :-) > >sounds like the .y.c hack belongs in libglsl.mk, which is where >glcpp-parse.c is listed.
Or we can just change the SRCS to include glcpp-parse.y and remove the generated files and the .y.c hacks. In general we should stop depending on timestamps to be correct to handle pre-generated files. It is an accident waiting to happen and I am afraid to break the build for program_parse.y... christos