csdn瞎搞,xmake自动编译linux类makefile

怎甘沉沦 提交于 2020-01-15 23:00:42
-- add rules: debug/release
add_rules("mode.debug", "mode.release")

-- define target

target("main")

    -- set kind
    set_kind("binary")
    --set_kind("static")

    -- add files
    add_files("main.c")
    add_files("strings.c")
    add_files("codegen.c")
    add_files("parse.c")
    add_files("tokenize.c")
    add_files("type.c")



真的是瞎搞,一代不如一代.
makefile烦人得很,又不中用.又啰嗦.nmake也没用,今天用xmake,哈,一下就搞定了.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!