]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - winsrc/Makefile
Create a stamp file for download completion so that it won't have to be redone later
[proxmark3-svn] / winsrc / Makefile
index b398c2c1958c82837d0773c47e434fffd7fd7963..96466700fa6ab54f978a67de000500f432b920c8 100644 (file)
@@ -1,8 +1,11 @@
+CC=cl\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\r
+BASE_CFLAGS = /W3 /nologo /Zi /MT /Fdobj/vc90.pdb\r
+LIB=..\..\devkitWIN\lib;%LIB%\r
 \r
 DEFINES  = $(BASE_DEFS)\r
-CFLAGS   = $(BASE_CFLAGS) /Zi /MT\r
+INCLUDES = /I..\..\devkitWIN/include\r
+CFLAGS   = $(BASE_CFLAGS) $(INCLUDES)\r
 \r
 OBJDIR = obj\r
 \r
@@ -10,22 +13,20 @@ OBJS   = $(OBJDIR)\prox.obj \
          $(OBJDIR)\gui.obj \\r
          $(OBJDIR)\command.obj\r
 \r
-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\r
+LIBS   = user32.lib gdi32.lib setupapi.lib\r
 \r
-HEADERS = prox.h\r
+all: proxmark3\r
 \r
-all: $(OBJDIR)/prox.exe\r
-    copy $(OBJDIR)\prox.exe .\r
+proxmark3:\r
+       $(CC) $(CFLAGS) $(DEFINES) -c -Foobj/prox.obj prox.cpp\r
+       $(CC) $(CFLAGS) $(DEFINES) -c -Foobj/gui.obj gui.cpp\r
+       $(CC) $(CFLAGS) $(DEFINES) -c -Foobj/command.obj command.cpp\r
+       $(CC) $(CFLAGS) $(DEFINES) -Fe$(OBJDIR)/prox.exe $(OBJS) $(LIBS)\r
+       copy obj\prox.exe .\r
 \r
 clean:\r
        del /q obj\*.obj\r
        del /q obj\*.ilk\r
        del /q obj\*.exe\r
        del /q obj\*.pdb\r
-       del /q *.pdb\r
-\r
-$(OBJDIR)/prox.exe: $(OBJS)\r
-    $(CC) $(DEFINES) $(CFLAGS) -Fe$(OBJDIR)/prox.exe $(OBJS) $(LIBS)\r
-\r
-$(OBJS): $(@B).cpp $(HEADERS)\r
-    $(CC) $(CFLAGS) $(DEFINES) -c -Fo$(OBJDIR)/$(@B).obj $(@B).cpp\r
+       del prox.exe
\ No newline at end of file
Impressum, Datenschutz