CC=cl\r
+BASE_DIR ?= "..\..\devkitWIN"\r
BASE_DEFS = /D_WIN32_WINNT=0x501 /DISOLATION_AWARE_ENABLED /D_WIN32_IE=0x600 /DWIN32_LEAN_AND_MEAN /DWIN32 /D_MT /D_CRT_SECURE_NO_WARNINGS\r
BASE_CFLAGS = /W3 /nologo /Zi /MT /Fdobj/vc90.pdb\r
-LIB=..\..\devkitWIN\lib;%LIB%\r
+LIB = $(BASE_DIR)\lib\r
\r
DEFINES = $(BASE_DEFS)\r
-INCLUDES = /I..\..\devkitWIN/include\r
+INCLUDES = /I$(BASE_DIR)\include\r
CFLAGS = $(BASE_CFLAGS) $(INCLUDES)\r
\r
OBJDIR = obj\r
$(OBJDIR)\gui.obj \\r
$(OBJDIR)\command.obj\r
\r
-LIBS = user32.lib gdi32.lib setupapi.lib\r
+LIBS = $(LIB)\user32.lib $(LIB)\gdi32.lib $(LIB)\setupapi.lib $(LIB)\libcmt.lib $(LIB)\oldnames.lib $(LIB)\kernel32.lib\r
\r
all: proxmark3\r
\r