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