<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Aleksey,<br>
<br>
Fantastic, everything works now. Thank you very much!<br>
<br>
<br>
Aleksey Nogin wrote:
<blockquote cite="mid:4A524A03.1010105@metaprl.org" type="cite">
  <pre wrap="">On 06.07.2009 11:22, <a class="moz-txt-link-abbreviated" href="mailto:maksim.kneller@barclayscapital.com">maksim.kneller@barclayscapital.com</a> wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">[...] it seems whenever sources from
subdirectories are used - they are always compiled into static libraries
first. 
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Maksim,

It is *not* the case that you have to compile into static libraries, but
the default assumption is that each object file goes into the same
directory as the source file.

Below is how you'd need to rewrite the OMakefile for your project.

  </pre>
  <blockquote type="cite">
    <pre wrap="">CXXFLAGS = -Wall
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Offtopic - you may also want to use -Werror, so that it's easier to use
OMake's -p/-k/-P options without having to scroll back to find all the
warnings.

  </pre>
  <blockquote type="cite">
    <pre wrap="">INCLUDES += headers src
    </pre>
  </blockquote>
  <pre wrap=""><!---->
INCLUDES is only for the header files. You need

INCLUDES += $(dir headers)
.SUBDIRS: src

(Note1 - the order of the previous two lines is important. The way I
wrote it, the src dir would get the updated INCLUDES; if you do not want
that, reorder the two.)

(Note2 - the above would expect an src/OMakefile file, even though an
empty one would do. You could write something like

.SUBDIRS: src
   return # A no-op body

to "inline" the ./src/OMakefile into the ./OMakefile)

  </pre>
  <blockquote type="cite">
    <pre wrap="">CXXProgram(myapp, main file1 )
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Should be src/file1.

Hope this helps.

Aleksey

_______________________________________________
Omake mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Omake@metaprl.org">Omake@metaprl.org</a>
<a class="moz-txt-link-freetext" href="https://lists.metaprl.org/mailman/listinfo/omake">https://lists.metaprl.org/mailman/listinfo/omake</a>

  </pre>
</blockquote>
<br>
</body>
</html>