#Configuration for compiling mymake.
absolutePath=yes

#Build mymake
[project]
#input=src
explicitTargets=yes
execute=no

[build]
#How to build each target.
#Nothing special required.

[deps]
#Dependencies

#Src needs explicit dependency on textinc
src+=templates
templates+=textinc

[build,standalone]
textinc+=standalone
src+=standalone

[]
#Global configuration
ext=cpp

buildDir=build/
execDir=../bin/

[release]
buildDir=release/
execDir=../release/

[release,build]
#Only mymake itself needs a release version. The textinc is only used during compilation anyway.
src+=release

#The setup does need it as well.
setup+=release

[release,pdb,build]
src+=pdb

#Use the global config unless 'standalone' is used on the command line.

[unix,standalone]
execExt=
intermediateExt=o
includeCl=-iquote
libraryCl=-l
localLibraryCl=

flags=-std=c++11 -Wall -Wextra

pchFile=stdafx.h.gch
pchCompile=g++ <flags> <file> -c <includes> -o <output>
pchCompileCombined=no
usePch=-include <noExt|pchFile>

compile=*:g++ <flags> <usePch*if|pch> <file> -c <includes> -o <output>
link=g++ <libs> <files> -o <output>

[windows,standalone]
execExt=exe
intermediateExt=obj
includeCl=/I
libraryCl=
localLibraryCl=

flags=/nologo /EHsc

pchFile=stdafx.pch
usePch=/Yu
namePch=/Fp<pchFile>

pchCompile=cl <file> <includes> <flags> /Yc<title|pch> <namePch*if|pch> /c /Fo<output>
pchCompileCombined=yes

compile=*:cl <file> <incudes> <flags> <usePch*title|pch> <namePch*if|pch> /c /Fo<output>
link=link <libs> <files> /nologo /OUT:<output>

#Good if the global .mymake is broken
[windows,standalone,env]

#Environment variables for Visual Studio 2008
env+=INCLUDE=>C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE
env+=INCLUDE=>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include

env+=LIB=>C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\LIB
env+=LIB=>C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib

env+=Path<=C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin
env+=Path<=C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN
