1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-01 16:10:39 +00:00
QB64-PE/source/utilities/build.bas
2022-05-12 00:21:02 -04:00

29 lines
725 B
QBasic

'
' Removes all the temporary build files (Various .o, .a, and ./internal/temp, among other things)
'
SUB PurgeTemporaryBuildFiles (os AS STRING, mac AS LONG)
make$ = GetMakeExecutable$
IF os = "WIN" THEN
SHELL _HIDE "cmd /c " + make$ + " OS=win clean"
ELSEIF os = "LNX" THEN
IF mac THEN
SHELL _HIDE make$ + " OS=osx clean"
ELSE
SHELL _HIDE make$ + " OS=lnx clean"
END IF
END IF
END SUB
'
' Returns the make executable to use, with path if necessary
'
FUNCTION GetMakeExecutable$ ()
IF os$ = "WIN" THEN
GetMakeExecutable$ = "internal\c\c_compiler\bin\mingw32-make.exe"
ELSE
GetMakeExecutable$ = "make"
END IF
END FUNCTION