2013-12-12 00:18:13 +08:00
|
|
|
# This file has been generated by shinobi version 0.9.5
|
|
|
|
|
|
|
|
ninja_required_version = 1.3
|
|
|
|
builddir = bin
|
|
|
|
objdir = obj
|
|
|
|
cxx = g++
|
|
|
|
cxxflags = -std=c++11 -pedantic -pedantic-errors -Wextra -Wall -O2 -DNDEBUG
|
|
|
|
incflags = -I"." -I"./include" -I"." -I"./lua-5.2.2/src/" -I"./Catch/include/"
|
2013-12-12 01:42:00 +08:00
|
|
|
linkflags = -static -L"./lib" -llua
|
2013-12-12 00:18:13 +08:00
|
|
|
|
|
|
|
rule compile
|
|
|
|
command = $cxx -MMD -MF $out.d $cxxflags -c $in -o $out $incflags
|
|
|
|
deps = gcc
|
|
|
|
depfile = $out.d
|
|
|
|
description = Compiling $in
|
|
|
|
|
|
|
|
rule link
|
|
|
|
command = $cxx $in -o $out $linkflags
|
|
|
|
description = Creating $out
|
|
|
|
|
|
|
|
build $objdir/sol.scratch.o: compile sol.scratch.cpp
|
|
|
|
|
|
|
|
build $builddir/sol.scratch: link $objdir/sol.scratch.o
|
|
|
|
|
|
|
|
build install: phony $builddir/sol.scratch
|
|
|
|
|
|
|
|
default install
|