2.9 Response Files

omake has two kinds of support for response files: automatic response files, where omake determines when to build a response file, or inline response files, where statements that create response file creating statements are written in the makefile.

Inline Response Files

Response files can also be coded inline in your makefile. For example:

project.dll:$(OBJS)
link @<<
$(OBJS)
/out:$(.TARGET)
$(.TARGET)
<<

The link program is invoked as link @response_file, where response_file is a name generated by omake. The response_file contains:

main.obj io.obj /out:project.exe