2017-12-05 08:29:50 +01:00
|
|
|
INCLUDES = ""
|
|
|
|
FASM_DEFAULT = "fasm"
|
|
|
|
|
|
|
|
function add_include(dir)
|
|
|
|
if INCLUDES == ""
|
|
|
|
then INCLUDES = dir
|
|
|
|
else INCLUDES = INCLUDES .. ";" .. dir
|
|
|
|
end
|
|
|
|
if tup.getconfig("TUP_PLATFORM") == "win32"
|
2020-05-25 00:34:03 +02:00
|
|
|
then env_prefix = "set INCLUDE=$(INCLUDES)&&"
|
2021-05-22 20:02:57 +02:00
|
|
|
-- else env_prefix = "INCLUDE='$(INCLUDES)' "
|
|
|
|
else env_prefix = "INCLUDE='" .. INCLUDES .. "' "
|
2017-12-05 08:29:50 +01:00
|
|
|
end
|
|
|
|
FASM = env_prefix .. FASM_DEFAULT
|
|
|
|
end
|
|
|
|
|
|
|
|
add_include(tup.getcwd())
|