makefile

来自「Professional ASP.NET source code」· 代码 · 共 56 行

TXT
56
字号
!IFNDEF WROXSAMPLEPATH
!ERROR Env Variable WROXSAMPLEPATH must be defined
!ENDIF

#------------------------------------------------------------------
#The master rules for building Wrox Professional ASP.NET samples
# WROXSAMPLEPATH Env Variable must be defined in MakeAll.bat


!include $(WROXSAMPLEPATH)\master.mak

#--------------------------------------------------
_SDLPATH=http://localhost/ProAspNet/20 - Consuming Web Services
_SDLPATH=$(_SDLPATH)/SoapHeaderAuthentication/Server/$(WS_SOURCES)?WSDL
#--------------------------------------------------
TARGETS  = $(EE_DLL) $(DLL_TARGET) 
DLL_TARGET = bin\WebService.dll 
EE_DLL = bin\WebServiceAuthentication.dll
EE_SRC = WebServiceAuthentication\WebServiceAuthenticationModule.cs \
         WebServiceAuthentication\WebServiceAuthenticationEvent.cs \
         WebServiceAuthentication\WebServiceAuthenticationEventHandler.cs

EXE_SOURCES = 
DLL_SOURCES = Consumer\SecureWebService.cs
WS_SOURCES = SoapHeaderAuthentication.asmx

DLL_IMPORTS = /r:system.security.dll

CLEANUP = bin\* $(DLL_SOURCES)
#--------------------------------------------------

DLL_IMPORTS = 
EXE_IMPORTS = 

#--------------------------------------------------
all :  $(TARGETS)

$(DLL_TARGET) : $(EE_DLL) $(DLL_SOURCES) 
	@if not exist bin mkdir bin
        $(_CS) $(_CS_DLL_FLAGS) $(DLL_IMPORTS) /out:$@ $(DLL_SOURCES)

$(DLL_SOURCES):	 server/$(WS_SOURCES)
	$(_WSDL) /l:CS /namespace:Security /out:$*.cs "$(_SDLPATH)"

$(EE_DLL): $(EE_SRC)
	@if not exist bin mkdir bin
	$(_CS) $(_CS_DLL_FLAGS) $(DLL_IMPORTS) /out:$@ $**
#	/reference:mscorlib.dll /reference:System.dll /reference:.dll /reference:.dll /reference:System.Runtime.Serialization.Formatters.Soap.dll /reference:System.Web.dll /reference:.dll /reference:System.Xml.dll /reference:System.Web.Services.dll

clean :
	@for %i in ( $(CLEANUP) ) do @if exist %i del %i
	@if exist bin $(_RMDIR) bin
#--------------------------------------------------


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?