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.

60 lines
1.2 KiB

  1. target = ntperf.dll
  2. !ifdef DEBUG
  3. objdir=debug
  4. !else
  5. objdir=retail
  6. !endif
  7. objlist = \
  8. $(objdir)\ntperf.obj \
  9. $(objdir)\server.obj \
  10. $(objdir)\wbemint_i.obj
  11. all: $(objdir)\$(target)
  12. WBEMINC=e:\pandorang\idl
  13. WBEMLIB=e:\pandorang\idl\objinds
  14. #---------------------------------------------------------------------
  15. cc = \
  16. "$(MSVC)\BIN\cl" -c -Od -MD -G3 -D_MT -D_CONSOLE -DWIN32 -Z7 -GX \
  17. -W3 -Di386=1 -D_X86_=1 -I. -I"$(MSVC)\INCLUDE" \
  18. -I$(WBEMINC)
  19. link = \
  20. "$(MSVC)\BIN\link" -nodefaultlib -dll -subsystem:console -pdb:none \
  21. -entry:_DllMainCRTStartup@12 -map:$(objdir)\mb.map -debug -debugtype:cv \
  22. -out:$(objdir)\$(target) \
  23. -def:ntperf.def \
  24. $(objlist) \
  25. shell32.lib \
  26. user32.lib \
  27. msvcrt.lib \
  28. kernel32.lib \
  29. gdi32.lib \
  30. advapi32.lib \
  31. oldnames.lib \
  32. uuid.lib \
  33. ole32.lib \
  34. oleaut32.lib \
  35. wsock32.lib \
  36. mpr.lib \
  37. $(WBEMLIB)\wbemuuid.lib
  38. $(objdir)\$(target): $(objlist)
  39. $(link)
  40. {.}.cpp{$(objdir)}.obj:
  41. if not exist $(objdir) md $(objdir)
  42. $(cc) $< -Fo$(objdir)\$(<B).obj
  43. {$(WBEMINC)}.c{$(objdir)}.obj:
  44. if not exist $(objdir) md $(objdir)
  45. $(cc) $< -Fo$(objdir)\$(<B).obj