home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 40 / IOPROG_40.ISO / SOFT / NETFrameworkSDK.exe / comsdk.cab / samples.exe / QuickStart / util / TDGUtil / makefile next >
Encoding:
Makefile  |  2000-05-10  |  890 b   |  32 lines

  1. !IFNDEF CORSDK
  2. #assumes that we are in com20sdk\tutorial\quickstart\util\showcode
  3. CORSDK=..\..\..\..
  4. !ENDIF
  5.  
  6. !IFNDEF QSDIR
  7. #assumes that we are in com20sdk\tutorial\quickstart\util\showcode
  8. QSDIR=$(CORSDK)\Tutorial\QuickStart
  9. !ENDIF
  10.  
  11. !include $(QSDIR)\master.mak
  12.  
  13. #since we want the compiler to import from some dll's, let's specify the std WinForms ones here
  14. _IMPORTS=/R:System.DLL /R:System.WinForms.dll /R:System.Data.DLL /R:Microsoft.VisualStudio.dll
  15.  
  16. # Bin dir is \com20sdk\QuickStart\Bin
  17. _OUTDIR=$(QSDIR)\Bin
  18.  
  19. #Define what we are building from what
  20. TARGET_NAME=TDGUtil.exe
  21. SOURCE_NAMES=TDGUtil.cs 
  22.  
  23. #Build Sample directives
  24. $(_OUTDIR)\$(TARGET_NAME) : $(TARGET_NAME)
  25.         copy $** $(_OUTDIR)
  26.  
  27. $(TARGET_NAME) : $(SOURCE_NAMES) 
  28.         $(_CS) $(_CS_EXE_FLAGS) $(_IMPORTS) /out:$@ $**
  29.  
  30. #issuing "nmake" will build target
  31. all: $(_OUTDIR)\$(TARGET_NAME)
  32.