mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-05 01:50:25 +00:00
Added build.bas.
This commit is contained in:
parent
4dfcfa37a5
commit
a79657062f
23
source/utilities/build.bas
Normal file
23
source/utilities/build.bas
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
''' Removes all the temporary build files.
|
||||||
|
''' (Various .o, .a, and ./internal/temp, etc.)
|
||||||
|
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
|
Loading…
Reference in a new issue