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.

115 lines
3.0 KiB

  1. #===================================================================
  2. #
  3. # DDE manager DLL make file
  4. #
  5. #===================================================================
  6. # International mods
  7. # NOTE: INTL_SRC, INTL_EXE and LANG are macros set by international
  8. !INCLUDE ..\makefile.inc
  9. WINLIB=..\lib
  10. INCLUDE=-I..\inc -I..\..\inc
  11. CC=$(CL)
  12. RC=$(RC) $(INCLUDE)
  13. RES_DIR=.\messages\$(ALT_PROJECT)
  14. APP = ddeml
  15. !if !$(FREEBUILD)
  16. DBG=1
  17. CDEBUG=/Odi /Zd
  18. ADEBUG=-Zd
  19. LDEBUG=/LI
  20. !endif
  21. !IFDEF DBG
  22. CFLAGS=-DDEBUG -Ocilgtn -Zep $(CDEBUG)
  23. CVLINK=$(LDEBUG)
  24. AFLAGS=-Zi -DDEBUG $(INCLUDE) $(ADEBUG)
  25. !IFDEF DBGHEAPS
  26. CFLAGS=-DWATCHHEAPS -DDEBUG -Ziep -Od $(CDEBUG)
  27. !ENDIF
  28. !ELSE
  29. CFLAGS=-Ocilgtn -Zep
  30. CVLINK=
  31. AFLAGS=$(INCLUDE)
  32. !ENDIF
  33. CCL = $(CC) $(CFLAGS) -W3 -c -u -ASw -G2swc -Fo$*.obj
  34. OBJ1 = $(DEST)\ddeml.obj $(DEST)\dmgdb.obj $(DEST)\dmghsz.obj $(DEST)\dmgmon.obj $(DEST)\heapwach.obj $(DEST)\stdptcl.obj
  35. OBJ2 = $(DEST)\dmgwndp.obj $(DEST)\dmgdde.obj $(DEST)\dmgq.obj $(DEST)\dmgmem.obj $(DEST)\hdata.obj $(DEST)\stdinit.obj $(DEST)\register.obj
  36. ASMOBJ = $(DEST)\libentry.obj $(DEST)\dmgutil.obj
  37. #===================================================================
  38. #
  39. # Dependencies
  40. #
  41. #===================================================================
  42. all: $(DEST)\ddeml.dll $(DEST)\ddeml.lib
  43. @echo -------- $(DEST) BUILD COMPLETE --------
  44. $(OBJ1) $(OBJ2): $(@B).c ddemlp.h
  45. @set include=$(ENVINCS);$(INCLUDE)
  46. $(CCL) $(@B).c
  47. $(ASMOBJ): $(@B).asm
  48. $(ASM) $(AFLAGS) $(@B).asm, $*.obj;
  49. $(DEST)\ddeml.lib: ddeml.def
  50. $(MKPUB) ddeml.def $(DEST)\stripped.def
  51. $(IMPLIB) $(DEST)\ddeml.lib $(DEST)\stripped.def
  52. $(DEST)\ddeml.rc: $(RES_DIR)\ddeml.rc
  53. copy $? $@
  54. $(DEST)\ddeml.rcv: $(RES_DIR)\ddeml.rcv
  55. copy $? $@
  56. $(DEST)\ddeml.dlg: $(RES_DIR)\ddeml.dlg
  57. copy $? $@
  58. $(DEST)\ddeml.res: $(DEST)\ddeml.rc ddemlp.h $(DEST)\ddeml.rcv $(DEST)\ddeml.dlg ..\inc\common.ver ..\inc\version.h
  59. $(RC) -r $(DEST)\ddeml.rc
  60. $(DEST)\ddeml.dll: $(OBJ1) $(OBJ2) $(ASMOBJ) ddeml.def $(DEST)\ddeml.res
  61. $(LINK) @<<
  62. $(OBJ1) +
  63. $(OBJ2) +
  64. $(ASMOBJ)
  65. $(DEST)\ddeml.dll /FAR $(CVLINK)
  66. $(DEST)\ddeml /map
  67. $(WINLIB)\$(ALT_PROJECT)\libw.lib $(WINLIB)\sdllcew.lib /nod /noe
  68. ddeml.def
  69. <<
  70. $(MAPSYM) $(DEST)\ddeml
  71. copy ddeml.sym $(DEST)
  72. del ddeml.sym
  73. $(RC) -30 -t $(DEST)\ddeml.res $(DEST)\ddeml.dll
  74. cd $(DEST)
  75. binplace -o $(ALT_PROJECT_TARGET) ddeml.dll ddeml.map ddeml.sym
  76. cd ..\..\..
  77. #
  78. # clean target
  79. #
  80. clean: cleanup all
  81. cleanup:
  82. if exist $(DEST)\*.obj del $(DEST)\*.obj
  83. if exist $(DEST)\*.sym del $(DEST)\*.sym
  84. if exist $(DEST)\*.dll del $(DEST)\*.dll
  85. if exist $(DEST)\*.obj del $(DEST)\*.obj
  86. if exist $(DEST)\*.sym del $(DEST)\*.sym
  87. if exist $(DEST)\*.dll del $(DEST)\*.dll
  88. if exist *.rc del *.rc
  89. if exist *.res del *.res
  90. if exist *.lib del *.lib