]> git.zerfleddert.de Git - proxmark3-svn/blob - winsrc/Makefile
Don't depend on local path/lib settings for easier compilation
[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: $(OBJDIR)/prox.exe
20 copy $(OBJDIR)\prox.exe .
21
22 clean:
23 del /q obj\*.obj
24 del /q obj\*.ilk
25 del /q obj\*.exe
26 del /q obj\*.pdb
27 del /q *.pdb
28
29 $(OBJDIR)/prox.exe: $(OBJS)
30 $(CC) $(DEFINES) $(CFLAGS) -Fe$(OBJDIR)/prox.exe $(OBJS) $(LIBS)
31
32 $(OBJS): $(@B).cpp $(HEADERS)
33 $(CC) $(CFLAGS) $(DEFINES) -c -Fo$(OBJDIR)/$(@B).obj $(@B).cpp
Impressum, Datenschutz