# Author: Zhao Dexiang.
### Variables: ###
PROGRAM = test
OBJS = output
CC = cl.exe
RC = rc.exe
LINK = link.exe
CCFLAGS = /c /nologo /TP /MDd /DWIN32 /Zi /Od /D__WXMSW__ /D__WXDEBUG__ /W4 /D_WINDOWS /DNOPCH /GR /EHsc
EXTRAFLAGS = /I E:\wxWidgets-2.6.1\include /I E:\wxWidgets-2.6.1\lib\vc_lib\mswd /I.
RCFLAGS = /d WIN32 /d _DEBUG /d __WXMSW__ /d __WXDEBUG__ /d _WINDOWS /d NOPCH
LDFLAGS = /NOLOGO /DEBUG /SUBSYSTEM:WINDOWS
LDBPATH = E:\wxWidgets-2.6.1\lib\vc_lib
LDLIBS = wxmsw26d_adv.lib wxmsw26d_core.lib wxbase26d.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexd.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib
EXECFILE = $(OBJS)\$(PROGRAM).exe
ALL_OBJECTS = $(OBJS)\test.obj $(OBJS)\test.res
### Conditionally setting: ###
all: $(OBJS)
$(OBJS):
-if not exist $(OBJS) mkdir $(OBJS)
### Targets: ###
all: $(EXECFILE) data
clean:
-if exist $(OBJS)\*.obj del $(OBJS)\*.obj
-if exist $(OBJS)\*.res del $(OBJS)\*.res
-if exist $(OBJS)\*.pch del $(OBJS)\*.pch
-if exist $(OBJS)\*.exe del $(OBJS)\*.exe
-if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
-if exist $(OBJS)\*.pdb del $(OBJS)\*.pdb
$(EXECFILE): $(ALL_OBJECTS)
$(LINK) /OUT:$@ $(LDFLAGS) $** /LIBPATH:$(LDBPATH) $(LDLIBS)
data:
# -if not exist $(OBJS) mkdir $(OBJS)
$(OBJS)\test.obj: .\test.cpp
$(CC) $(CCFLAGS) /Fo$@ $(EXTRAFLAGS) $**
$(OBJS)\test.res: .\test.rc
rc /fo$@ $(RCFLAGS) $(EXTRAFLAGS) $**