]> git.zerfleddert.de Git - proxmark3-svn/blob - winsrc/Makefile
enforce askdemod argument 0 or 1
[proxmark3-svn] / winsrc / Makefile
1 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
2 BASE_CFLAGS = /W3 /nologo
3
4 LIB=..\..\devkitWIN\lib;%LIB%
5
6 DEFINES = $(BASE_DEFS)
7 CFLAGS = $(BASE_CFLAGS) /I..\..\devkitWIN/include /Zi /MT
8
9 OBJDIR = obj
10
11 OBJS = $(OBJDIR)\prox.obj \
12 $(OBJDIR)\gui.obj \
13 $(OBJDIR)\command.obj
14
15 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
16
17 HEADERS = prox.h
18
19 all: prox.exe
20
21 prox.exe: $(OBJDIR)/prox.exe
22 copy $(OBJDIR)\prox.exe .
23
24 clean:
25 del /q obj\*.obj
26 del /q obj\*.ilk
27 del /q obj\*.exe
28 del /q obj\*.pdb
29 del /q *.pdb
30
31 $(OBJDIR)/prox.exe: $(OBJS)
32 $(CC) $(DEFINES) $(CFLAGS) -Fe$(OBJDIR)/prox.exe $(OBJS) $(LIBS)
33
34 $(OBJS): $(@B).cpp $(HEADERS)
35 $(CC) $(CFLAGS) $(DEFINES) -c -Fo$(OBJDIR)/$(@B).obj $(@B).cpp
Impressum, Datenschutz