premake.lua

Mon, 18 Jan 2010 13:16:06 -0500

author
Dwayne Bent <dbb.1@liqd.org>
date
Mon, 18 Jan 2010 13:16:06 -0500
changeset 74
8f1e69d846c1
parent 15
9b91d1bdbb40
permissions
-rw-r--r--

Makefile: Make makefile a bit more generic

project.name = "luaevent.core"
project.libdir = "lib"
project.bindir = "bin"

package = newpackage()
package.kind = "dll"
package.language = "c++"
package.targetprefix = ""
package.target = "core"

package.links = {
	"event"
}

package.includepaths = {
	"include",
}
if linux then
	package.buildoptions = { "-Wall" }
	package.config["Debug"].buildoptions = { "-O0" }
	package.linkoptions =  { "-Wall -L/usr/local/lib" }
	package.postbuildcommands = { "mkdir -p test/luaevent", "cp bin/* test/luaevent", "cp lua/* test" }
else
	print([[Other environements currently untested, may need tweaking]])
end

package.files = {
	matchrecursive(
		"src/*.c",
		"include/*.h"
	)
}

mercurial