From c879fd21bb269f84adcf19ea96dfb4fc980e73df Mon Sep 17 00:00:00 2001 From: Josh Yelon Date: Tue, 9 May 2023 22:14:29 -0400 Subject: [PATCH] Add a check for vsvars64 in Makefile --- luprex/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/luprex/Makefile b/luprex/Makefile index 55809680..8a526791 100644 --- a/luprex/Makefile +++ b/luprex/Makefile @@ -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/*.* #######################################################################