Source code of Windows XP (NT5)
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.

59 lines
1.3 KiB

  1. #---------------------------------------------------------------------
  2. #
  3. # > NMAKE -f objpath.mak
  4. # Uses DEFDRIVE and DEFDIR macros
  5. #
  6. #---------------------------------------------------------------------
  7. target = objpath.exe
  8. !ifdef DEBUG
  9. objdir=debug
  10. !else
  11. objdir=retail
  12. !endif
  13. objlist = \
  14. $(objdir)\test_par.obj \
  15. $(objdir)\objpath.obj \
  16. $(objdir)\genlex.obj \
  17. $(objdir)\opathlex.obj \
  18. #---------------------------------------------------------------------
  19. cc = \
  20. cl -c -Od -G3 -D_MT -D_CONSOLE -DWIN32 -Zi -GX \
  21. -W3 -Di386=1 -D_X86_=1 -I. \
  22. -I$(DEFDRIVE)$(DEFDIR)\tools\inc32.com \
  23. -I$(DEFDRIVE)$(DEFDIR)\tools\nt5inc
  24. !ifdef DBGALLOC
  25. cc = $(cc) /DDBGALLOC
  26. !endif
  27. link = \
  28. link -nodefaultlib -subsystem:console -pdb:none \
  29. -entry:mainCRTStartup -map:$(objdir)\objpath.map -debug -debugtype:both \
  30. -out:$(objdir)\$(target) -libpath:$(DEFDRIVE)$(DEFDIR)\tools\lib32 \
  31. -libpath:$(DEFDRIVE)$(DEFDIR)\tools\nt5lib \
  32. $(objlist) \
  33. shell32.lib \
  34. user32.lib \
  35. kernel32.lib \
  36. gdi32.lib \
  37. libcmt.lib \
  38. advapi32.lib \
  39. oleaut32.lib \
  40. ole32.lib \
  41. $(objdir)\$(target): $(objlist)
  42. $(link)
  43. {.}.cpp{$(objdir)}.obj:
  44. if not exist $(objdir) md $(objdir)
  45. $(cc) $< -Fo$(objdir)\$(<B).obj