summaryrefslogtreecommitdiff
path: root/xmake/scripts/base/makefile.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-05-19 13:55:47 +0800
committerruki <[email protected]>2015-05-19 13:55:47 +0800
commitf9214c5e20b64d662af20b83da5889e6675dea95 (patch)
tree7683e43755a87f624f2c972dec511d83e5191b26 /xmake/scripts/base/makefile.lua
parent050d1882cf578ca81f92666d42bc005b7c0eb914 (diff)
add platform for macosx
Diffstat (limited to 'xmake/scripts/base/makefile.lua')
-rw-r--r--xmake/scripts/base/makefile.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/xmake/scripts/base/makefile.lua b/xmake/scripts/base/makefile.lua
index b7d8813ee..80ef7aa45 100644
--- a/xmake/scripts/base/makefile.lua
+++ b/xmake/scripts/base/makefile.lua
@@ -29,6 +29,7 @@ local os = require("base/os")
local utils = require("base/utils")
local config = require("base/config")
local project = require("base/project")
+local platform = require("platform/platform")
-- make the given target to the makefile
function makefile._make_target(file, name, target)
@@ -47,6 +48,12 @@ function makefile._make_target(file, name, target)
end
end
+ -- make dependence for object
+ local srcfiles = os.match(target.files)
+ for _, srcfile in ipairs(srcfiles) do
+ file:write(" " .. srcfile)
+ end
+
-- make dependence end
file:write("\n")