1*cdf0e10cSrcweir# Builds the WriterDemo examples of the Developers Guide. 2*cdf0e10cSrcweir 3*cdf0e10cSrcweirPRJ = ../../../.. 4*cdf0e10cSrcweirSETTINGS = $(PRJ)/settings 5*cdf0e10cSrcweir 6*cdf0e10cSrcweirinclude $(SETTINGS)/settings.mk 7*cdf0e10cSrcweirinclude $(SETTINGS)/std.mk 8*cdf0e10cSrcweirinclude $(SETTINGS)/dk.mk 9*cdf0e10cSrcweir 10*cdf0e10cSrcweirCSC_FLAGS = -warnaserror+ -incremental- -noconfig 11*cdf0e10cSrcweirVBC_FLAGS = -warnaserror+ 12*cdf0e10cSrcweirifeq "$(DEBUG)" "yes" 13*cdf0e10cSrcweirCC_FLAGS+=-Zi -MT 14*cdf0e10cSrcweirCSC_FLAGS += -debug+ -checked+ -define:DEBUG -define:TRACE 15*cdf0e10cSrcweirVBC_FLAGS += -debug+ -define:DEBUG=1 -define:TRACE=1 16*cdf0e10cSrcweirelse 17*cdf0e10cSrcweirCSC_FLAGS += -o 18*cdf0e10cSrcweirendif 19*cdf0e10cSrcweir 20*cdf0e10cSrcweirWRITERDEMO_OUT:= $(OUT_BIN)/VB_dotNET_WriterDemo 21*cdf0e10cSrcweir 22*cdf0e10cSrcweir# Targets 23*cdf0e10cSrcweir.PHONY : ALL 24*cdf0e10cSrcweirALL : WriterDemo 25*cdf0e10cSrcweir 26*cdf0e10cSrcweirinclude $(SETTINGS)/stdtarget.mk 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir# build executables 29*cdf0e10cSrcweir$(WRITERDEMO_OUT)/%.exe: %.vb 30*cdf0e10cSrcweir -$(MKDIR) $(subst /,$(PS),$(@D)) 31*cdf0e10cSrcweir vbc $(VBC_FLAGS) \ 32*cdf0e10cSrcweir -target:exe \ 33*cdf0e10cSrcweir -out:$@ \ 34*cdf0e10cSrcweir -libpath:"$(PRJ)\cli" \ 35*cdf0e10cSrcweir -reference:cli_basetypes.dll \ 36*cdf0e10cSrcweir -reference:cli_uretypes.dll \ 37*cdf0e10cSrcweir -reference:cli_oootypes.dll \ 38*cdf0e10cSrcweir -reference:cli_ure.dll \ 39*cdf0e10cSrcweir -reference:cli_cppuhelper.dll \ 40*cdf0e10cSrcweir -reference:System.dll \ 41*cdf0e10cSrcweir -reference:System.Drawing.dll \ 42*cdf0e10cSrcweir -reference:System.Windows.Forms.dll \ 43*cdf0e10cSrcweir $^ 44*cdf0e10cSrcweir 45*cdf0e10cSrcweirifeq "$(OS)" "WIN" 46*cdf0e10cSrcweirWriterDemo : $(WRITERDEMO_OUT)/WriterDemo.exe 47*cdf0e10cSrcweir @echo ------------------------------------------------------------------------------- 48*cdf0e10cSrcweir @echo Please use the following command to execute the example! 49*cdf0e10cSrcweir @echo - 50*cdf0e10cSrcweir @echo $(MAKE) WriterDemo.run 51*cdf0e10cSrcweir @echo ------------------------------------------------------------------------------- 52*cdf0e10cSrcweirelse 53*cdf0e10cSrcweirWriterDemo : 54*cdf0e10cSrcweir @echo -------------------------------------------------------------------------------- 55*cdf0e10cSrcweir @echo This example works only under Windows! 56*cdf0e10cSrcweir @echo -------------------------------------------------------------------------------- 57*cdf0e10cSrcweirendif 58*cdf0e10cSrcweir 59*cdf0e10cSrcweir%.run : $(WRITERDEMO_OUT)/%.exe 60*cdf0e10cSrcweir @echo ------------------------------------------------------------------------------- 61*cdf0e10cSrcweir @echo Executing sample $@ $(UNORC) $(CONNECT_STRING)... 62*cdf0e10cSrcweir @echo ------------------------------------------------------------------------------- 63*cdf0e10cSrcweir cd $(subst /,\\,$(WRITERDEMO_OUT)) && $(basename $@).exe 64*cdf0e10cSrcweir 65*cdf0e10cSrcweir.PHONY: clean 66*cdf0e10cSrcweirclean : 67*cdf0e10cSrcweir -$(DELRECURSIVE) $(subst /,$(PS),$(OUT_BIN)/VB_dotNET_WriterDemo) 68*cdf0e10cSrcweir 69