summaryrefslogtreecommitdiff
path: root/xmake/plugins/project/make/makefile.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-09-21 12:31:55 +0800
committerruki <[email protected]>2019-09-21 12:31:55 +0800
commit4eb27d9a5517ad6ba3043c9c5ffca3ffd0e27663 (patch)
tree4808254bac1a416faacffcda68401ff551d9f0e8 /xmake/plugins/project/make/makefile.lua
parent8e57109a69c4c19be728e7797124f8ff5a4a6e35 (diff)
remove some unused codes
Diffstat (limited to 'xmake/plugins/project/make/makefile.lua')
-rw-r--r--xmake/plugins/project/make/makefile.lua36
1 files changed, 0 insertions, 36 deletions
diff --git a/xmake/plugins/project/make/makefile.lua b/xmake/plugins/project/make/makefile.lua
index 6b90fc914..b263b0424 100644
--- a/xmake/plugins/project/make/makefile.lua
+++ b/xmake/plugins/project/make/makefile.lua
@@ -125,48 +125,12 @@ function _make_common_flags(target, sourcekind, sourcebatch)
return commonflags, sourceflags_
end
--- make the object for the *.[o|obj] source file
-function _make_object_for_object(makefile, target, sourcefile, objectfile)
-
- -- make command
- local cmd = format("xmake l cp %s %s", sourcefile, objectfile)
-
- -- make head
- makefile:printf("%s:", objectfile)
-
- -- make dependence
- makefile:print(" %s", sourcefile)
-
- -- make body
- makefile:print("\t@echo inserting.$(mode) %s", sourcefile)
- makefile:print("\t@%s", cmd)
-
- -- make tail
- makefile:print("")
-
-end
-
--- make the object for the *.[a|lib] source file
-function _make_object_for_static(makefile, target, sourcefile, objectfile)
-
- -- not supported
- raise("source file: %s not supported!", sourcefile)
-end
-
-- make the object
function _make_object(makefile, target, sourcefile, objectfile, sourceflags)
-- get the source file kind
local sourcekind = language.sourcekind_of(sourcefile)
- -- make the object for the *.o/obj source makefile
- if sourcekind == "obj" then
- return _make_object_for_object(makefile, target, sourcefile, objectfile)
- -- make the object for the *.[a|lib] source file
- elseif sourcekind == "lib" then
- return _make_object_for_static(makefile, target, sourcefile, objectfile)
- end
-
-- get program
local program = platform.tool(sourcekind)