On 30/08/15 10:22, Robert Millan wrote:
I figured out how to generate those off-tree and wrote a small Makefile
snippet to do it:
experimentalUser.c experimental_U.h:
echo '#include <mach/experimental.defs>' \
| gcc -E -x c - -o - \
| mig -cc cat - /dev/null -subrprefix __ \
-user experimentalUser.c \
-server /dev/null \
-header experimental_U.h
However no matter how I try to tell rumpmake the experimentalUser.c
build instructions, it seems uncapable
of doing so:
nbmake[1]: don't know how to make experimentalUser.c. Stop
I've tried using absolute paths to rule out that it's a cwd problem, but
still same error.
Any idea what I'm doing wrong?
One thing you are doing wrong is creating a rule which creates two
targets. If both targets happen to be made in parallel, you usually get
corrupt output. So e.g. make the .h depend on the .c (or simply omit it
entirely if nothing on the chain depends on the .h).
Might also consider replacing gcc with ${CC}?
But that's not what you were asking for. I don't know what's wrong
based on the above. Can you paste the entire Makefile and command line?