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

-- 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,哈,一下就搞定了.

posted @   zjh6  阅读(13)  评论(0编辑  收藏  举报  
点击右上角即可分享
微信分享提示