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