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.

86 lines
1.8 KiB

  1. #############################################################################
  2. #
  3. # MAKEFILE.INC
  4. #
  5. # Common rules for the Win95-16 groupware binaries (mnm*.*)
  6. #
  7. #############################################################################
  8. .SUFFIXES : .asm .thk .rc .c .cpp .lib .exp .typ
  9. C_TOTAL = $(C_FLAGS) -I$(INCLUDES:;= -I)
  10. MASM_TOTAL = $(MASM_FLAGS) -I$(INCLUDES:;= -I)
  11. {}.c{$(_OBJ_DIR)\$(TARGET_DIRECTORY)\}.obj:
  12. @type <<$(ECHO_RSP)
  13. $(C_NAME) $(MAKEDIR)\$(<F)
  14. $(C_TOTAL)
  15. <<NOKEEP
  16. @$(C_NAME) @<<$(CL_RSP) -Fo$(MAKEDIR)\$@ $(MAKEDIR)\$(<F)
  17. $(C_TOTAL: =
  18. )
  19. <<NOKEEP
  20. {}.asm{$(_OBJ_DIR)\$(TARGET_DIRECTORY)\}.obj:
  21. @type <<$(ECHO_RSP)
  22. $(MASM_NAME) $(MAKEDIR)\$(<F)
  23. $(MASM_TOTAL)
  24. <<NOKEEP
  25. @$(MASM_NAME) @<<$(CL_RSP) -Fo$(MAKEDIR)\$@ $(MAKEDIR)\$(<F)
  26. $(MASM_TOTAL: =
  27. )
  28. <<NOKEEP
  29. # This is kind of whacky
  30. {$(AS_ROOT)\thk\}.thk{}.asm:
  31. $(THUNK_NAME) -t thk -o $(O)\$@ $?
  32. RC_TOTAL = -r $(RC_FLAGS) -I$(RC_INCLUDES:;= -I)
  33. $(_OBJ_DIR)\$(TARGET_DIRECTORY)\$(TARGETNAME).res : $(TARGETNAME).rc
  34. $(RC_NAME) $(RC_TOTAL) -fo $@ $(TARGETNAME).rc
  35. $(DYNLINK_LIB) $(DYNLINK_LIB:.lib=.exp): $(DLLDEF) $(LIBRARY_OBJS)
  36. $(IMPLIB_NAME) $(IMPLIB_FLAGS) $(DYNLINK_LIB) $(DLLDEF)
  37. $(LIBEXTRA_CMD)
  38. !if "$(TARGETTYPE)" != "DYNLINK" || "$(MAKEDLL)" != ""
  39. $(TARGET): $(OBJECTS) $(LINKLIBS) $(CRTLIBS) $(MACHINE_TARGETLIBS)
  40. @type <<$(ECHO_RSP)
  41. $(LINK_NAME)
  42. $(LINK_FLAGS)
  43. $(OBJECTS: =
  44. )
  45. $(LINKLIBS: =
  46. )
  47. $(TARGETLIBS: =
  48. )
  49. <<NOKEEP
  50. @$(LINK_NAME) @<<$(CL_RSP)
  51. $(LINK_FLAGS) +
  52. $(OBJECTS: =+^
  53. ),
  54. $(TARGET),
  55. $(TARGETPATHLIB)\$(TARGET_DIRECTORY)\$(TARGETNAME).map,
  56. $(LINKLIBS) +
  57. $(TARGETLIBS: =+^
  58. ),
  59. $(DLLDEF)
  60. <<NOKEEP
  61. $(RC_NAME) $(RES_FLAGS) $(_OBJ_DIR)\$(TARGET_DIRECTORY)\$(TARGETNAME).res $(TARGET)
  62. $(SPLITSYM_CMD)
  63. $(TARGETCOPY_CMD)
  64. $(MAPSYM_CMD)
  65. $(MAPCOPY_CMD)
  66. $(SYMCOPY_CMD)
  67. !endif