2009-09-07 17:03:45 +08:00
|
|
|
CC=cl
|
2009-04-09 14:43:20 +08:00
|
|
|
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
|
2009-09-07 17:03:45 +08:00
|
|
|
BASE_CFLAGS = /W3 /nologo /Zi /MT /Fdobj/vc90.pdb
|
2009-07-02 09:29:48 +08:00
|
|
|
LIB=..\..\devkitWIN\lib;%LIB%
|
|
|
|
|
2009-04-09 14:43:20 +08:00
|
|
|
DEFINES = $(BASE_DEFS)
|
2009-09-07 17:03:45 +08:00
|
|
|
INCLUDES = /I..\..\devkitWIN/include
|
|
|
|
CFLAGS = $(BASE_CFLAGS) $(INCLUDES)
|
2009-04-09 14:43:20 +08:00
|
|
|
|
|
|
|
OBJDIR = obj
|
|
|
|
|
|
|
|
OBJS = $(OBJDIR)\prox.obj \
|
|
|
|
$(OBJDIR)\gui.obj \
|
|
|
|
$(OBJDIR)\command.obj
|
|
|
|
|
2009-09-07 17:03:45 +08:00
|
|
|
LIBS = user32.lib gdi32.lib setupapi.lib
|
2009-04-09 14:43:20 +08:00
|
|
|
|
2009-09-07 17:03:45 +08:00
|
|
|
all: proxmark3
|
2009-08-31 06:35:12 +08:00
|
|
|
|
2009-09-07 17:03:45 +08:00
|
|
|
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 .
|
2009-04-09 14:43:20 +08:00
|
|
|
|
|
|
|
clean:
|
|
|
|
del /q obj\*.obj
|
|
|
|
del /q obj\*.ilk
|
|
|
|
del /q obj\*.exe
|
|
|
|
del /q obj\*.pdb
|
2009-09-07 17:03:45 +08:00
|
|
|
del prox.exe
|