Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
2.5 KiB

  1. !ifdef NTMAKEENV
  2. !include $(NTMAKEENV)\makefile.def
  3. !else
  4. !if "$(APPVER)"!="5.0"
  5. #----- Include the PSDK's WIN32.MAK to pick up defines------------------------------------
  6. !include <win32.mak>
  7. #----- OUTDIR is defined in WIN32.MAK This is the name of the destination directory-------
  8. all: $(OUTDIR)\bits_ie.exe $(OUTDIR)\install.js $(OUTDIR)\uninstall.js $(OUTDIR)\bits_ie.htm $(OUTDIR)\readme.htm
  9. LINK32_OBJS= \
  10. $(OUTDIR)\bits_ie.obj
  11. #----- If OUTDIR does not exist, then create directory
  12. $(OUTDIR) :
  13. if not exist "$(OUTDIR)/$(NULL)" mkdir $(OUTDIR)
  14. #--------------------- EXE ---------------------------------------------------------------
  15. #PLEASE REFER TO WIN32.MAK for the different Linker options WIN32.MAK provides
  16. SAMPLELIBS=$(guilibs) \
  17. wininet.lib \
  18. shell32.lib \
  19. Comctl32.lib \
  20. Shlwapi.lib \
  21. bits.lib
  22. # Build rule for EXE
  23. $(OUTDIR)\bits_ie.exe: $(OUTDIR) $(LINK32_OBJS) $(OUTDIR)\bits_ie.res
  24. $(link) $(ldebug) $(guiflags) /PDB:$(OUTDIR)\bits_ie.pdb -out:$(OUTDIR)\bits_ie.exe $(LINK32_OBJS) $(OUTDIR)\bits_ie.res $(SAMPLELIBS)
  25. # Misc files to copy
  26. $(OUTDIR)\install.js: $(OUTDIR) .\install.js
  27. copy .\install.js $(OUTDIR)
  28. $(OUTDIR)\uninstall.js: $(OUTDIR) .\uninstall.js
  29. copy .\uninstall.js $(OUTDIR)
  30. $(OUTDIR)\bits_ie.htm: $(OUTDIR) .\bits_ie.htm
  31. copy .\bits_ie.htm $(OUTDIR)
  32. $(OUTDIR)\readme.htm: $(OUTDIR) .\readme.htm
  33. copy .\readme.htm $(OUTDIR)
  34. #--------------------- Compiling C/CPP Files ---------------------------------------------
  35. #PLEASE REFER TO WIN32.MAK for the different Compiler options WIN32.MAK provides
  36. SOURCE=.\bits_ie.cpp
  37. $(OUTDIR)\bits_ie.obj : $(SOURCE) $(OUTDIR)
  38. $(cc) $(cdebug) $(cflags) -GX $(cvarsdll) /WX /Fo"$(OUTDIR)\\" /Fd"$(OUTDIR)\\" $(SOURCE)
  39. #--------------------- Compiling Resource Files ------------------------------------------
  40. #PLEASE REFER TO WIN32.MAK for the different Resource Compiler options WIN32.MAK provides
  41. # Build rule for resource file
  42. SOURCE=.\bits_ie.rc
  43. RESOURCEHEADER=.\resource.h \
  44. .\bits_ie.ico
  45. $(OUTDIR)\bits_ie.res: $(SOURCE) $(OUTDIR) $(RESOURCEHEADER)
  46. $(rc) $(rcflags) $(rcvars) /fo $(OUTDIR)\bits_ie.res $(SOURCE)
  47. #--------------------- Clean Rule --------------------------------------------------------
  48. # Rules for cleaning out those old files
  49. clean:
  50. $(CLEANUP)
  51. !else
  52. !message Sorry, this sample is only available for Whistler
  53. !endif
  54. !endif