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.

68 lines
1.4 KiB

  1. #---------------------------------------------------------------------
  2. #
  3. # General purpose console app makefile.
  4. #
  5. #---------------------------------------------------------------------
  6. target = mofcomp.exe
  7. !ifdef DEBUG
  8. objdir=debug
  9. !else
  10. objdir=retail
  11. !endif
  12. objlist = \
  13. $(objdir)\errcodes.obj \
  14. $(objdir)\mofcomp.obj \
  15. $(objdir)\moflex.obj \
  16. $(objdir)\mofparse.obj \
  17. $(objdir)\mofprop.obj \
  18. $(objdir)\mofdata.obj \
  19. all: $(objdir)\$(target)
  20. #---------------------------------------------------------------------
  21. cc = \
  22. cl -c -Od -G3 -D_MT -D_CONSOLE -DWIN32 -GX \
  23. -W3 -Di386=1 -D_X86_=1 -I. \
  24. -I"$(HMOM_SRC)\help" -I"$(HMOM_SRC)\hmom\MINIMFC" \
  25. link = \
  26. # link -dll -nodefaultlib -subsystem:console -pdb:none \
  27. # -entry:_DllMainCRTStartup@12 -map:$(objdir)\mb.map \
  28. # -out:$(objdir)\mb.dll -def:mb.def \
  29. link -nodefaultlib -subsystem:console -pdb:none \
  30. -out:$(objdir)\$(target) \
  31. $(objlist) \
  32. shell32.lib \
  33. user32.lib \
  34. libcmt.lib \
  35. kernel32.lib \
  36. gdi32.lib \
  37. advapi32.lib \
  38. ole32.lib \
  39. oleaut32.lib \
  40. uuid.lib \
  41. $(HMOM_SRC)\hmom\MINIMFC\$(objdir)\minimfc.lib \
  42. mpr.lib
  43. !ifdef DEBUG
  44. cc = $(cc) -Zi -D_DEBUG
  45. link = $(link) -debug -debugtype:cv
  46. !else
  47. link = $(link)
  48. !endif
  49. $(objdir)\$(target): $(objlist)
  50. $(link)
  51. {.}.cpp{$(objdir)}.obj:
  52. if not exist $(objdir) md $(objdir)
  53. $(cc) $< -Fo$(objdir)\$(<B).obj