Add a check for vsvars64 in Makefile

This commit is contained in:
2023-05-09 22:14:29 -04:00
parent b42393bbac
commit c879fd21bb

View File

@@ -170,6 +170,10 @@ endif
ifeq "$(OS)" "visual"
ifeq "" "$(VSINSTALLDIR)"
$(error You must use vcvars64.bat to set up the visual studio environment variables)
endif
OPT=/Od /Zi
MMD=g++ -Wall -std=c++17 -MMD -E
CL=CL $(OPT) /std:c++17 /EHsc /nologo /MD /TP /c
@@ -211,7 +215,7 @@ endif
#######################################################################
clean:
rm -f luprex luprex.exe luprexlib.so luprexlib.dll luprexstatic luprexstatic.exe *.pdb obj/core/*.* obj/drv/*.* obj/eris/*.*
rm -f luprex luprex.exe luprexlib.so luprexlib.dll luprexstatic luprexstatic.exe *.ilk *.exp *.pdb obj/core/*.* obj/drv/*.* obj/eris/*.*
#######################################################################