shidding and fardding
This commit is contained in:
parent
c1852a70dd
commit
650cda22ac
11
lcmk.lua
11
lcmk.lua
|
@ -34,7 +34,7 @@ end
|
||||||
function buildobj(o)
|
function buildobj(o)
|
||||||
local cmd = ("%s %s %s -c -o %s %s"):format(CC, CFLAGS, LINK, o.out, o.src)
|
local cmd = ("%s %s %s -c -o %s %s"):format(CC, CFLAGS, LINK, o.out, o.src)
|
||||||
print("BUILDING OBJECT:\n"..cmd)
|
print("BUILDING OBJECT:\n"..cmd)
|
||||||
os.execute(cmd)
|
return os.execute(cmd)
|
||||||
end
|
end
|
||||||
|
|
||||||
function buildprog()
|
function buildprog()
|
||||||
|
@ -44,7 +44,7 @@ function buildprog()
|
||||||
end
|
end
|
||||||
local cmd = ("%s %s %s -o %s %s"):format(CC, CFLAGS, LINK, PROG, objs)
|
local cmd = ("%s %s %s -o %s %s"):format(CC, CFLAGS, LINK, PROG, objs)
|
||||||
print("BUILDING PROGRAM:\n"..cmd)
|
print("BUILDING PROGRAM:\n"..cmd)
|
||||||
os.execute(cmd)
|
return os.execute(cmd)
|
||||||
end
|
end
|
||||||
|
|
||||||
buildf()
|
buildf()
|
||||||
|
@ -181,7 +181,10 @@ if _SHOWBUILD then
|
||||||
end
|
end
|
||||||
|
|
||||||
for _,o in ipairs(tobuild) do
|
for _,o in ipairs(tobuild) do
|
||||||
buildobj(o)
|
if not buildobj(o) then
|
||||||
|
print("ERROR")
|
||||||
|
os.exit(1)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
buildprog()
|
return buildprog()
|
||||||
|
|
Loading…
Reference in New Issue