X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/6658905f18a1eebc148836f26c731dea9c1377dc..d3ae0de746962dfde04133fc2fdb8e9f6544771a:/winsrc/Makefile diff --git a/winsrc/Makefile b/winsrc/Makefile index b398c2c1..1c8287f8 100644 --- a/winsrc/Makefile +++ b/winsrc/Makefile @@ -1,8 +1,12 @@ +CC=cl +BASE_DIR ?= "..\..\devkitWIN" 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 -BASE_CFLAGS = /W3 /nologo +BASE_CFLAGS = /W3 /nologo /Zi /MT /Fdobj/vc90.pdb +LIB = $(BASE_DIR)\lib DEFINES = $(BASE_DEFS) -CFLAGS = $(BASE_CFLAGS) /Zi /MT +INCLUDES = /I$(BASE_DIR)\include +CFLAGS = $(BASE_CFLAGS) $(INCLUDES) OBJDIR = obj @@ -10,22 +14,20 @@ OBJS = $(OBJDIR)\prox.obj \ $(OBJDIR)\gui.obj \ $(OBJDIR)\command.obj -LIBS = kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib setupapi.lib +LIBS = $(LIB)\user32.lib $(LIB)\gdi32.lib $(LIB)\setupapi.lib $(LIB)\libcmt.lib $(LIB)\oldnames.lib $(LIB)\kernel32.lib -HEADERS = prox.h +all: proxmark3 -all: $(OBJDIR)/prox.exe - copy $(OBJDIR)\prox.exe . +proxmark3: + $(CC) $(CFLAGS) $(DEFINES) -c -Foobj/prox.obj prox.cpp + $(CC) $(CFLAGS) $(DEFINES) -c -Foobj/gui.obj gui.cpp + $(CC) $(CFLAGS) $(DEFINES) -c -Foobj/command.obj command.cpp + $(CC) $(CFLAGS) $(DEFINES) -Fe$(OBJDIR)/prox.exe $(OBJS) $(LIBS) + copy obj\prox.exe . clean: del /q obj\*.obj del /q obj\*.ilk del /q obj\*.exe del /q obj\*.pdb - del /q *.pdb - -$(OBJDIR)/prox.exe: $(OBJS) - $(CC) $(DEFINES) $(CFLAGS) -Fe$(OBJDIR)/prox.exe $(OBJS) $(LIBS) - -$(OBJS): $(@B).cpp $(HEADERS) - $(CC) $(CFLAGS) $(DEFINES) -c -Fo$(OBJDIR)/$(@B).obj $(@B).cpp + del prox.exe \ No newline at end of file