]> cvs.zerfleddert.de Git - proxmark3-svn/blob - winsrc/Makefile
Amontec JTAGKey config
[proxmark3-svn] / winsrc / Makefile
1 CC=cl
2 BASE_DIR ?= "..\..\devkitWIN"
3 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
4 BASE_CFLAGS = /W3 /nologo /Zi /MT /Fdobj/vc90.pdb
5 LIB = $(BASE_DIR)\lib
6
7 DEFINES = $(BASE_DEFS)
8 INCLUDES = /I$(BASE_DIR)\include
9 CFLAGS = $(BASE_CFLAGS) $(INCLUDES)
10
11 OBJDIR = obj
12
13 OBJS = $(OBJDIR)\prox.obj \
14 $(OBJDIR)\gui.obj \
15 $(OBJDIR)\command.obj
16
17 LIBS = $(LIB)\user32.lib $(LIB)\gdi32.lib $(LIB)\setupapi.lib $(LIB)\libcmt.lib $(LIB)\oldnames.lib $(LIB)\kernel32.lib
18
19 all: proxmark3
20
21 proxmark3:
22 $(CC) $(CFLAGS) $(DEFINES) -c -Foobj/prox.obj prox.cpp
23 $(CC) $(CFLAGS) $(DEFINES) -c -Foobj/gui.obj gui.cpp
24 $(CC) $(CFLAGS) $(DEFINES) -c -Foobj/command.obj command.cpp
25 $(CC) $(CFLAGS) $(DEFINES) -Fe$(OBJDIR)/prox.exe $(OBJS) $(LIBS)
26 copy obj\prox.exe .
27
28 clean:
29 del /q obj\*.obj
30 del /q obj\*.ilk
31 del /q obj\*.exe
32 del /q obj\*.pdb
33 del prox.exe
Impressum, Datenschutz