# =========================================================================
#     This makefile was generated by
#     Bakefile 0.2.5 (http://www.bakefile.org)
#     Do not modify, all changes will be overwritten!
# =========================================================================

include ../build/msw/config.dmc

# -------------------------------------------------------------------------
# Do not modify the rest of this file!
# -------------------------------------------------------------------------

### Variables: ###

WX_RELEASE_NODOT = 28
OBJS = dmc_mswd$(CFG)
LIBTYPE_SUFFIX = lib
LIBDIRNAME = .\..\lib\dmc_$(LIBTYPE_SUFFIX)$(CFG)
SETUPHDIR = $(LIBDIRNAME)\mswd
TEST_CXXFLAGS = -g -o+none -D_WIN32_WINNT=0x0400 -D__WXMSW__ -D__WXDEBUG__ \
	-I$(SETUPHDIR) -I.\..\include -w- -I. -DwxUSE_GUI=0 $(CPPUNIT_CFLAGS) -Ar -Ae -H \
	-HO- -HH$(OBJS)\pch_testprec_test.sym $(CPPFLAGS) $(CXXFLAGS)
TEST_OBJECTS =  \
	$(OBJS)\test_dummy.obj \
	$(OBJS)\test_test.obj \
	$(OBJS)\test_archivetest.obj \
	$(OBJS)\test_ziptest.obj \
	$(OBJS)\test_tartest.obj \
	$(OBJS)\test_arrays.obj \
	$(OBJS)\test_datetimetest.obj \
	$(OBJS)\test_fileconftest.obj \
	$(OBJS)\test_filekind.obj \
	$(OBJS)\test_filenametest.obj \
	$(OBJS)\test_filesystest.obj \
	$(OBJS)\test_fontmaptest.obj \
	$(OBJS)\test_formatconvertertest.obj \
	$(OBJS)\test_hashes.obj \
	$(OBJS)\test_lists.obj \
	$(OBJS)\test_longlongtest.obj \
	$(OBJS)\test_convautotest.obj \
	$(OBJS)\test_mbconvtest.obj \
	$(OBJS)\test_regextest.obj \
	$(OBJS)\test_wxregextest.obj \
	$(OBJS)\test_scopeguardtest.obj \
	$(OBJS)\test_strings.obj \
	$(OBJS)\test_stdstrings.obj \
	$(OBJS)\test_tokenizer.obj \
	$(OBJS)\test_unicode.obj \
	$(OBJS)\test_crt.obj \
	$(OBJS)\test_vsnprintf.obj \
	$(OBJS)\test_bstream.obj \
	$(OBJS)\test_datastreamtest.obj \
	$(OBJS)\test_ffilestream.obj \
	$(OBJS)\test_fileback.obj \
	$(OBJS)\test_filestream.obj \
	$(OBJS)\test_largefile.obj \
	$(OBJS)\test_memstream.obj \
	$(OBJS)\test_sstream.obj \
	$(OBJS)\test_tempfile.obj \
	$(OBJS)\test_textstreamtest.obj \
	$(OBJS)\test_zlibstream.obj \
	$(OBJS)\test_textfiletest.obj \
	$(OBJS)\test_uris.obj
TEST_ODEP =  $(OBJS)\pch_testprec_test.sym
TEST_GUI_CXXFLAGS = -g -o+none -D_WIN32_WINNT=0x0400 -D__WXMSW__ -D__WXDEBUG__ \
	-I$(SETUPHDIR) -I.\..\include -w- -I. -I.\..\samples -DNOPCH $(CPPUNIT_CFLAGS) \
	-Ar -Ae -H -HO- -HH$(OBJS)\pch_testprec_test_gui.sym $(CPPFLAGS) $(CXXFLAGS)
TEST_GUI_OBJECTS =  \
	$(OBJS)\test_gui_dummy.obj \
	$(OBJS)\test_gui_test.obj \
	$(OBJS)\test_gui_rect.obj \
	$(OBJS)\test_gui_size.obj \
	$(OBJS)\test_gui_point.obj
TEST_GUI_ODEP =  $(OBJS)\pch_testprec_test_gui.sym
PRINTFBENCH_CXXFLAGS = -g -o+none -D_WIN32_WINNT=0x0400 -D__WXMSW__ \
	-D__WXDEBUG__ -I$(SETUPHDIR) -I.\..\include -w- -I. -DwxUSE_GUI=0 \
	$(CPPUNIT_CFLAGS) -Ar -Ae -H -HO- -HH$(OBJS)\pch_testprec_printfbench.sym \
	$(CPPFLAGS) $(CXXFLAGS)
PRINTFBENCH_OBJECTS =  \
	$(OBJS)\printfbench_dummy.obj \
	$(OBJS)\printfbench_printfbench.obj
PRINTFBENCH_ODEP =  $(OBJS)\pch_testprec_printfbench.sym

### Targets: ###

all : $(OBJS)\test.exe $(OBJS)\test_gui.exe data $(OBJS)\printfbench.exe

clean : 
	-if exist $(OBJS)\*.obj del $(OBJS)\*.obj
	-if exist $(OBJS)\*.res del $(OBJS)\*.res
	-if exist $(OBJS)\*.sym del $(OBJS)\*.sym
	-if exist $(OBJS)\test.exe del $(OBJS)\test.exe
	-if exist $(OBJS)\test.map del $(OBJS)\test.map
	-if exist $(OBJS)\test_gui.exe del $(OBJS)\test_gui.exe
	-if exist $(OBJS)\test_gui.map del $(OBJS)\test_gui.map
	-if exist $(OBJS)\printfbench.exe del $(OBJS)\printfbench.exe
	-if exist $(OBJS)\printfbench.map del $(OBJS)\printfbench.map

$(OBJS)\test.exe : $(TEST_OBJECTS)
	link /NOLOGO /SILENT /NOI /DELEXECUTABLE /EXETYPE:NT  /DEBUG /CODEVIEW   $(CPPUNIT_LIBS) $(LDFLAGS) $(TEST_OBJECTS),$@,$(OBJS)\test.map, $(LIBDIRNAME)\ wxbase$(WX_RELEASE_NODOT)d$(WX_LIB_FLAVOUR)_net.lib  wxbase$(WX_RELEASE_NODOT)d$(WX_LIB_FLAVOUR).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 wsock32.lib odbc32.lib,,

$(OBJS)\pch_testprec_test.sym : .\testprec.h
	if not exist $(OBJS) mkdir $(OBJS)
	$(CXX) $(TEST_CXXFLAGS) -mn -cpp -HF$(OBJS)\pch_testprec_test.sym .\testprec.h

$(OBJS)\test_gui.exe : $(TEST_GUI_OBJECTS)  $(OBJS)\test_gui_sample.res
	link /NOLOGO /SILENT /NOI /DELEXECUTABLE /EXETYPE:NT  /DEBUG /CODEVIEW  $(CPPUNIT_LIBS)  $(LDFLAGS) $(TEST_GUI_OBJECTS),$@,$(OBJS)\test_gui.map, $(LIBDIRNAME)\ wxmsw$(WX_RELEASE_NODOT)d$(WX_LIB_FLAVOUR)_core.lib  wxbase$(WX_RELEASE_NODOT)d$(WX_LIB_FLAVOUR).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 wsock32.lib odbc32.lib,, $(OBJS)\test_gui_sample.res

$(OBJS)\pch_testprec_test_gui.sym : .\testprec.h
	if not exist $(OBJS) mkdir $(OBJS)
	$(CXX) $(TEST_GUI_CXXFLAGS) -mn -cpp -HF$(OBJS)\pch_testprec_test_gui.sym .\testprec.h

data : 
	if not exist $(OBJS) mkdir $(OBJS)
	for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)

$(OBJS)\printfbench.exe : $(PRINTFBENCH_OBJECTS)
	link /NOLOGO /SILENT /NOI /DELEXECUTABLE /EXETYPE:NT  /DEBUG /CODEVIEW   $(CPPUNIT_LIBS) $(LDFLAGS) $(PRINTFBENCH_OBJECTS),$@,$(OBJS)\printfbench.map, $(LIBDIRNAME)\ wxbase$(WX_RELEASE_NODOT)d$(WX_LIB_FLAVOUR).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 wsock32.lib odbc32.lib,,

$(OBJS)\pch_testprec_printfbench.sym : .\testprec.h
	if not exist $(OBJS) mkdir $(OBJS)
	$(CXX) $(PRINTFBENCH_CXXFLAGS) -mn -cpp -HF$(OBJS)\pch_testprec_printfbench.sym .\testprec.h

$(OBJS)\test_dummy.obj : .\dummy.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\dummy.cpp

$(OBJS)\test_test.obj : .\test.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\test.cpp

$(OBJS)\test_archivetest.obj : .\archive\archivetest.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\archive\archivetest.cpp

$(OBJS)\test_ziptest.obj : .\archive\ziptest.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\archive\ziptest.cpp

$(OBJS)\test_tartest.obj : .\archive\tartest.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\archive\tartest.cpp

$(OBJS)\test_arrays.obj : .\arrays\arrays.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\arrays\arrays.cpp

$(OBJS)\test_datetimetest.obj : .\datetime\datetimetest.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\datetime\datetimetest.cpp

$(OBJS)\test_fileconftest.obj : .\fileconf\fileconftest.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\fileconf\fileconftest.cpp

$(OBJS)\test_filekind.obj : .\filekind\filekind.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\filekind\filekind.cpp

$(OBJS)\test_filenametest.obj : .\filename\filenametest.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\filename\filenametest.cpp

$(OBJS)\test_filesystest.obj : .\filesys\filesystest.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\filesys\filesystest.cpp

$(OBJS)\test_fontmaptest.obj : .\fontmap\fontmaptest.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\fontmap\fontmaptest.cpp

$(OBJS)\test_formatconvertertest.obj : .\formatconverter\formatconvertertest.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\formatconverter\formatconvertertest.cpp

$(OBJS)\test_hashes.obj : .\hashes\hashes.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\hashes\hashes.cpp

$(OBJS)\test_lists.obj : .\lists\lists.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\lists\lists.cpp

$(OBJS)\test_longlongtest.obj : .\longlong\longlongtest.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\longlong\longlongtest.cpp

$(OBJS)\test_convautotest.obj : .\mbconv\convautotest.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\mbconv\convautotest.cpp

$(OBJS)\test_mbconvtest.obj : .\mbconv\mbconvtest.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\mbconv\mbconvtest.cpp

$(OBJS)\test_regextest.obj : .\regex\regextest.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\regex\regextest.cpp

$(OBJS)\test_wxregextest.obj : .\regex\wxregextest.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\regex\wxregextest.cpp

$(OBJS)\test_scopeguardtest.obj : .\scopeguard\scopeguardtest.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\scopeguard\scopeguardtest.cpp

$(OBJS)\test_strings.obj : .\strings\strings.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\strings\strings.cpp

$(OBJS)\test_stdstrings.obj : .\strings\stdstrings.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\strings\stdstrings.cpp

$(OBJS)\test_tokenizer.obj : .\strings\tokenizer.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\strings\tokenizer.cpp

$(OBJS)\test_unicode.obj : .\strings\unicode.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\strings\unicode.cpp

$(OBJS)\test_crt.obj : .\strings\crt.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\strings\crt.cpp

$(OBJS)\test_vsnprintf.obj : .\strings\vsnprintf.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\strings\vsnprintf.cpp

$(OBJS)\test_bstream.obj : .\streams\bstream.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\streams\bstream.cpp

$(OBJS)\test_datastreamtest.obj : .\streams\datastreamtest.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\streams\datastreamtest.cpp

$(OBJS)\test_ffilestream.obj : .\streams\ffilestream.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\streams\ffilestream.cpp

$(OBJS)\test_fileback.obj : .\streams\fileback.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\streams\fileback.cpp

$(OBJS)\test_filestream.obj : .\streams\filestream.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\streams\filestream.cpp

$(OBJS)\test_largefile.obj : .\streams\largefile.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\streams\largefile.cpp

$(OBJS)\test_memstream.obj : .\streams\memstream.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\streams\memstream.cpp

$(OBJS)\test_sstream.obj : .\streams\sstream.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\streams\sstream.cpp

$(OBJS)\test_tempfile.obj : .\streams\tempfile.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\streams\tempfile.cpp

$(OBJS)\test_textstreamtest.obj : .\streams\textstreamtest.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\streams\textstreamtest.cpp

$(OBJS)\test_zlibstream.obj : .\streams\zlibstream.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\streams\zlibstream.cpp

$(OBJS)\test_textfiletest.obj : .\textfile\textfiletest.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\textfile\textfiletest.cpp

$(OBJS)\test_uris.obj : .\uris\uris.cpp $(TEST_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_CXXFLAGS) .\uris\uris.cpp

$(OBJS)\test_gui_sample.res : .\..\samples\sample.rc $(TEST_GUI_ODEP)
	rcc .\..\samples\sample.rc -o$@   -D_WIN32_WINNT=0x0400 -D__WXMSW__  -D__WXDEBUG__       -I$(SETUPHDIR) -I.\..\include -I.  -I.\..\samples -DNOPCH -32 -v-

$(OBJS)\test_gui_dummy.obj : .\dummy.cpp $(TEST_GUI_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_GUI_CXXFLAGS) .\dummy.cpp

$(OBJS)\test_gui_test.obj : .\test.cpp $(TEST_GUI_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_GUI_CXXFLAGS) .\test.cpp

$(OBJS)\test_gui_rect.obj : .\geometry\rect.cpp $(TEST_GUI_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_GUI_CXXFLAGS) .\geometry\rect.cpp

$(OBJS)\test_gui_size.obj : .\geometry\size.cpp $(TEST_GUI_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_GUI_CXXFLAGS) .\geometry\size.cpp

$(OBJS)\test_gui_point.obj : .\geometry\point.cpp $(TEST_GUI_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(TEST_GUI_CXXFLAGS) .\geometry\point.cpp

$(OBJS)\printfbench_dummy.obj : .\dummy.cpp $(PRINTFBENCH_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(PRINTFBENCH_CXXFLAGS) .\dummy.cpp

$(OBJS)\printfbench_printfbench.obj : .\benchmarks\printfbench.cpp $(PRINTFBENCH_ODEP)
	$(CXX) -mn -c -cpp -o$@ $(PRINTFBENCH_CXXFLAGS) .\benchmarks\printfbench.cpp

