]>
Commit | Line | Data |
---|---|---|
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\r | |
2 | BASE_CFLAGS = /W3 /nologo\r | |
3 | \r | |
4 | LIB=..\..\devkitWIN\lib;%LIB%\r | |
5 | \r | |
6 | DEFINES = $(BASE_DEFS)\r | |
7 | CFLAGS = $(BASE_CFLAGS) /I..\..\devkitWIN/include /Zi /MT\r | |
8 | \r | |
9 | OBJDIR = obj\r | |
10 | \r | |
11 | OBJS = $(OBJDIR)\prox.obj \\r | |
12 | $(OBJDIR)\gui.obj \\r | |
13 | $(OBJDIR)\command.obj\r | |
14 | \r | |
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\r | |
16 | \r | |
17 | HEADERS = prox.h\r | |
18 | \r | |
19 | all: prox.exe\r | |
20 | \r | |
21 | prox.exe: $(OBJDIR)/prox.exe\r | |
22 | copy $(OBJDIR)\prox.exe .\r | |
23 | \r | |
24 | clean:\r | |
25 | del /q obj\*.obj\r | |
26 | del /q obj\*.ilk\r | |
27 | del /q obj\*.exe\r | |
28 | del /q obj\*.pdb\r | |
29 | del /q *.pdb\r | |
30 | \r | |
31 | $(OBJDIR)/prox.exe: $(OBJS)\r | |
32 | $(CC) $(DEFINES) $(CFLAGS) -Fe$(OBJDIR)/prox.exe $(OBJS) $(LIBS)\r | |
33 | \r | |
34 | $(OBJS): $(@B).cpp $(HEADERS)\r | |
35 | $(CC) $(CFLAGS) $(DEFINES) -c -Fo$(OBJDIR)/$(@B).obj $(@B).cpp\r |