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.

127 lines
2.9 KiB

  1. NAME = midimap
  2. EXT = drv
  3. ROOT = ..\..\..
  4. OBJ1 = libentry.obj drvproc.obj debug.obj config.obj
  5. OBJ2 = modmsg.obj modfix.obj queue.obj mididev.obj
  6. OBJ3 = file.obj locks.obj cookmap.obj
  7. OBJ4 = clisti.obj
  8. OBJ5 =
  9. OBJS = $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4)
  10. LIBS = libw mmsystem
  11. GOALS = $(PBIN)\$(NAME).$(EXT) $(PBIN)\$(NAME).sym $(PINC)\idf.h
  12. !if "$(DEBUG)" == "retail"
  13. DEF =
  14. CDEBUG = /Oxwt
  15. L16DEBUG =
  16. RDEBUG =
  17. ADEBUG =
  18. !else
  19. !if "$(DEBUG)" == "debug"
  20. DEF = -DDEBUG_RETAIL
  21. CDEBUG = /Od $(DEF)
  22. L16DEBUG = /LI
  23. RDEBUG = -v $(DEF)
  24. ADEBUG = $(DEF)
  25. !else
  26. DEF = -DDEBUG
  27. CDEBUG = /Od -Zid $(DEF)
  28. L16DEBUG = /CO/LI
  29. RDEBUG = -v $(DEF)
  30. ADEBUG = -Zi $(DEF)
  31. !endif
  32. !endif
  33. CFLAGS = /DWIN16 /DWINVER=0x0400 /Alnw /GD $(CDEBUG) -Fd$* -Fo$@ -Fc
  34. AFLAGS = -D?MEDIUM -D?QUIET $(ADEBUG)
  35. L16FLAGS = /AL:16/ONERROR:NOEXE$(L16DEBUG)
  36. RCFLAGS = $(RDEBUG)
  37. WANT_32 = TRUE
  38. IS_16 = TRUE
  39. IS_OEM = TRUE
  40. !include $(ROOT)\build\project.mk
  41. libentry.obj: ..\..\$$(@B).asm
  42. @echo $(@B).asm
  43. @$(ASM) $(AFLAGS) -DSEGNAME=INIT_TEXT ..\..\$(@B),$@;
  44. drvproc.obj: ..\..\$$(@B).c ..\..\midimap.h ..\..\debug.h
  45. @$(CL) @<<
  46. $(CFLAGS) -NT _TEXT ..\..\$(@B).c
  47. <<
  48. config.obj: ..\..\$$(@B).c ..\..\midimap.h ..\..\debug.h
  49. @$(CL) @<<
  50. $(CFLAGS) -NT INIT_TEXT ..\..\$(@B).c
  51. <<
  52. #
  53. # FILE.OBJ must be in the same segment as CONFIG.OBJ!!!
  54. #
  55. file.obj: ..\..\$$(@B).c ..\..\midimap.h ..\..\debug.h
  56. @$(CL) @<<
  57. $(CFLAGS) -NT INIT_TEXT ..\..\$(@B).c
  58. <<
  59. modmsg.obj: ..\..\$$(@B).c ..\..\midimap.h ..\..\debug.h
  60. @$(CL) @<<
  61. $(CFLAGS) -NT MODM_TEXT ..\..\$(@B).c
  62. <<
  63. modfix.obj: ..\..\$$(@B).c ..\..\midimap.h ..\..\debug.h
  64. @$(CL) @<<
  65. $(CFLAGS) -NT MAPPACKED_FIX ..\..\$(@B).c
  66. <<
  67. cookmap.obj: ..\..\$$(@B).c ..\..\midimap.h ..\..\debug.h
  68. @$(CL) @<<
  69. $(CFLAGS) -NT MAPCOOKED ..\..\$(@B).c
  70. <<
  71. queue.obj: ..\..\$$(@B).c ..\..\midimap.h ..\..\debug.h
  72. @$(CL) @<<
  73. $(CFLAGS) -NT MAPPACKED_FIX ..\..\$(@B).c
  74. <<
  75. mididev.obj: ..\..\$$(@B).c ..\..\midimap.h ..\..\debug.h
  76. @$(CL) @<<
  77. $(CFLAGS) -NT MAPPACKED_FIX ..\..\$(@B).c
  78. <<
  79. locks.obj: ..\..\$$(@B).c ..\..\midimap.h ..\..\debug.h
  80. @$(CL) @<<
  81. $(CFLAGS) -NT _TEXT ..\..\$(@B).c
  82. <<
  83. debug.obj: ..\..\$$(@B).c ..\..\debug.h
  84. @$(CL) @<<
  85. $(CFLAGS) -NT RARE_TEXT ..\..\$(@B).c
  86. <<
  87. clisti.obj: ..\..\$$(@B).asm
  88. @Echo $(@B).asm
  89. @$(ASM) $(AFLAGS) -DSEGNAME=MAPPACKED_FIX ..\..\$(@B),$@;
  90. $(PINC)\idf.h: ..\..\idf.h
  91. $(NAME).res: ..\..\$$(@B).rc ..\..\$$(@B).rcv \
  92. ..\..\preclude.h ..\..\midi.ico \
  93. $(PVER)\verinfo.h $(PVER)\verinfo.ver
  94. @$(RC) $(RCFLAGS) -z -fo$@ -I$(PVER) -I..\.. ..\..\$(@B).rc
  95. $(NAME).$(EXT) $(NAME).map: \
  96. $(OBJS) ..\..\$$(@B).def $$(@B).res
  97. @$(LINK16) @<<
  98. $(OBJ1)+
  99. $(OBJ2)+
  100. $(OBJ3)+
  101. $(OBJ4),
  102. $(@B).$(EXT) $(L16FLAGS),
  103. $(@B).map,
  104. $(LIBS),
  105. ..\..\$(@B).def
  106. <<
  107. @$(RC) $(RESFLAGS) $*.res $*.$(EXT)