2009-04-09 14:43:20 +08:00
|
|
|
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
|
|
|
|
BASE_CFLAGS = /W3 /nologo
|
|
|
|
|
2009-07-02 09:29:48 +08:00
|
|
|
LIB=..\..\devkitWIN\lib;%LIB%
|
|
|
|
|
2009-04-09 14:43:20 +08:00
|
|
|
DEFINES = $(BASE_DEFS)
|
2009-07-02 09:29:48 +08:00
|
|
|
CFLAGS = $(BASE_CFLAGS) /I..\..\devkitWIN/include /Zi /MT
|
2009-04-09 14:43:20 +08:00
|
|
|
|
|
|
|
OBJDIR = obj
|
|
|
|
|
|
|
|
OBJS = $(OBJDIR)\prox.obj \
|
|
|
|
$(OBJDIR)\gui.obj \
|
|
|
|
$(OBJDIR)\command.obj
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
HEADERS = prox.h
|
|
|
|
|
|
|
|
all: $(OBJDIR)/prox.exe
|
|
|
|
copy $(OBJDIR)\prox.exe .
|
|
|
|
|
|
|
|
clean:
|
|
|
|
del /q obj\*.obj
|
|
|
|
del /q obj\*.ilk
|
|
|
|
del /q obj\*.exe
|
|
|
|
del /q obj\*.pdb
|
|
|
|
del /q *.pdb
|
|
|
|
|
|
|
|
$(OBJDIR)/prox.exe: $(OBJS)
|
|
|
|
$(CC) $(DEFINES) $(CFLAGS) -Fe$(OBJDIR)/prox.exe $(OBJS) $(LIBS)
|
|
|
|
|
|
|
|
$(OBJS): $(@B).cpp $(HEADERS)
|
|
|
|
$(CC) $(CFLAGS) $(DEFINES) -c -Fo$(OBJDIR)/$(@B).obj $(@B).cpp
|