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 @ 2020-01-15 21:33  zjh6  阅读(18)  评论(0)    收藏  举报  来源