Skip to content

Instantly share code, notes, and snippets.

@eao197
Created October 6, 2023 07:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eao197/b7d11c6f4a95e455c6417b21c9c49216 to your computer and use it in GitHub Desktop.
Save eao197/b7d11c6f4a95e455c6417b21c9c49216 to your computer and use it in GitHub Desktop.
Пример проектных файлов для m++ v3 (эти файлы использовались для компиляции m++v4 посредством m++v3)
if defined( "UNIX" ) && !defined( "GNU" )
define "GNU";
objPath = "o";
if !defined( "NOAUTODEP" ) {
autodepIncludePathList += ".";
autodepIncludePathList += "h";
autodepIncludePathList += "mxx/h";
}
if defined( "RELEASE" ) {
defines += "NDEBUG";
if defined( "UNIX" ) {
targetCopies += "~/bin/" target;
}
}
if defined( "MSC" ) {
cppOptions += "/Ih /I.";
}
if defined( "BORLAND" ) {
cppOptions += "/Ih /I.";
}
if defined( "GNU" ) {
cppOptions += "-I h -I .";
}
if defined( "WATCOM" ) {
cppOptions += "/i=h /i=.";
linkOptions += "LIBPATH %WATCOM%\\lib386";
linkOptions += "LIBPATH %WATCOM%\\lib386\\nt";
}
appMode = "exe";
screenMode = "console";
target = "mxxc";
cppSource += "mxxapi/string.cpp";
cppSource += "mxxapi/str_list.cpp";
cppSource += "mxxapi/str.cpp";
cppSource += "mxxapi/sys.cpp";
cppSource += "pre_output.cpp";
cppSource += "pre_config.cpp";
cppSource += "pre_if_stack.cpp";
cppSource += "pre_parser.cpp";
cppSource += "file_util.cpp";
cppSource += "lex_buffer.cpp";
cppSource += "pre_lex.cpp";
cppSource += "pre_cond.cpp";
cppSource += "fpgparse.cpp";
cppSource += "args.cpp";
cppSource += "lex.cpp";
cppSource += "expr.cpp";
cppSource += "variable.cpp";
cppSource += "var_scalar.cpp";
cppSource += "var_array.cpp";
cppSource += "var_iterator.cpp";
cppSource += "block_context.cpp";
cppSource += "operator.cpp";
cppSource += "op_list.cpp";
cppSource += "op_complex.cpp";
cppSource += "op_expr.cpp";
cppSource += "op_if.cpp";
cppSource += "op_foreach.cpp";
cppSource += "op_while.cpp";
cppSource += "op_halt.cpp";
cppSource += "op_break.cpp";
cppSource += "expressions.cpp";
cppSource += "func.cpp";
cppSource += "func_inside.cpp";
cppSource += "package_io.cpp";
cppSource += "package_sys.cpp";
cppSource += "package_str.cpp";
cppSource += "package_make.cpp";
if defined( "NT" ) {
cppSource += "win32/my_system.cpp";
cppSource += "win32/package_sys_win32.cpp";
cppSource += "win32/find_directories.cpp";
}
else if defined( "UNIX" ) {
cppSource += "posix/package_sys_posix.cpp";
cppSource += "posix/find_directories.cpp";
}
cppSource += "package_cpp.cpp";
cppSource += "package_utime.cpp";
cppSource += "script_arg_store.cpp";
cppSource += "package_mxxc.cpp";
cppSource += "func_dir.cpp";
cppSource += "mxx_parser.cpp";
cppSource += "mxx_lex_buffer.cpp";
cppSource += "mxx_lex.cpp";
cppSource += "mxxc.cpp";
node "pre_parser.cpp"
depends "mxx-pre.fpg"
buildcmd "fpg -g mxx-pre.fpg -cpp h/pre_parser.hpp pre_parser.cpp";
buildnode "pre_parser.cpp";
node "mxx_parser.cpp"
depends "mxx.fpg"
buildcmd "fpg -g mxx.fpg -cpp h/mxx_parser.hpp mxx_parser.cpp";
buildnode "mxx_parser.cpp";
if defined( "memcheck" ) {
defines += "USE_MEMCHECK";
cppSource += "memcheck.cpp";
}
//defines += "FPG_DEBUG_TRACE_STACK";
if defined( "NT" )
defines += "__WIN32__";
load "locals.mxx";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment