diff --git a/Z80.CPU/v0.1/building/.gitignore b/Z80.CPU/v0.1/building/.gitignore new file mode 100644 index 0000000..6f9ce29 --- /dev/null +++ b/Z80.CPU/v0.1/building/.gitignore @@ -0,0 +1,4 @@ +** +!.gitignore +!premake4.lua +!premate5.lua diff --git a/Z80.CPU/v0.1/building/premake4.lua b/Z80.CPU/v0.1/building/premake4.lua new file mode 100644 index 0000000..e3f50dd --- /dev/null +++ b/Z80.CPU/v0.1/building/premake4.lua @@ -0,0 +1,34 @@ +solution "Z80" + configurations { + "Release-Dynamic", "Release-Dynamic-Module", "Release-Static", "Release-Static-Module", + "Debug-Dynamic", "Debug-Dynamic-Module", "Debug-Static", "Debug-Static-Module" + } + + project "Z80" + language "C" + flags {"ExtraWarnings"} + files {"../sources/**.c"} + includedirs {"../API/C"} + --buildoptions {"-std=c89 -pedantic"} + + configuration "Release*" + targetdir "lib/release" + + configuration "Debug*" + flags {"Symbols"} + targetdir "lib/debug" + + configuration "*Dynamic*" + kind "SharedLib" + + configuration "*Dynamic-Module" + defines {"CPU_Z80_BUILD_MODULE_ABI"} + targetprefix "" + targetextension ".CPU" + + configuration "*Static*" + kind "StaticLib" + defines {"CPU_Z80_STATIC"} + + configuration "*Static-Module" + defines {"CPU_Z80_BUILD_ABI"}