sol2/build.ninja

28 lines
726 B
Plaintext
Raw Normal View History

2013-12-12 01:51:10 +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
2013-12-12 02:17:14 +08:00
incflags = -I"." -I"./include" -I"." -I"/usr/include/lua5.2" -I"./lua-5.2.2/src/" -I"./Catch/include/"
linkflags = -static -L"./lib" -llua5.2 -ldl
2013-12-12 01:51:10 +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
2013-12-12 18:40:05 +08:00
build $objdir/tests.o: compile tests.cpp
2013-12-12 01:51:10 +08:00
2013-12-12 18:40:05 +08:00
build $builddir/tests: link $objdir/tests.o
2013-12-12 01:51:10 +08:00
2013-12-12 18:40:05 +08:00
build install: phony $builddir/tests
2013-12-12 01:51:10 +08:00
default install