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.

91 lines
2.2 KiB

  1. #
  2. # Make file for srvr library
  3. #
  4. LVL_2 = 1
  5. !INCLUDE ..\..\makefile.inc
  6. # Flags set assuming small model
  7. INCLUDE=$(INCS)
  8. LIBS= ..\..\lib\sdllcew ..\..\lib\$(ALT_PROJECT)\libw ..\..\lib\$(DEST)\shell
  9. LIBENTRY_OBJ=..\..\lib\libentry.obj
  10. !if !$(FREEBUILD)
  11. DEBUG=1
  12. CDEBUG = /Od /Oi /Zd
  13. ADEBUG = -Zd
  14. LDEBUG = /LI
  15. !endif
  16. !ifdef DEBUG
  17. CFLAGS=-c -ASw -G2sw -Zpe -I..\client -DDEBUG -DFIREWALLS -DSERVERONLY $(CDEBUG)
  18. LFLAGS=/NOD /NOE /M $(LDEBUG)
  19. AFLAGS= -D?WIN=1 -W2 $(INCLUDE) $(ADEBUG)
  20. !else
  21. CFLAGS=-c -ASw -Ox -G2sw -Zpe -I..\client -DSERVERONLY
  22. LFLAGS=/NOD /NOE /M
  23. AFLAGS= -D?WIN=1 -W2 $(INCLUDE)
  24. !endif
  25. CFLAGS=$(CFLAGS) $(DBCS_FLAGS)
  26. SRVR_OBJ= $(DEST)\srvrmain.obj $(DEST)\srvr.obj $(DEST)\doc.obj $(DEST)\item.obj \
  27. $(DEST)\utils.obj $(DEST)\block.obj $(DEST)\olesvr.obj \
  28. $(DEST)\give2gdi.obj
  29. ALL: $(DEST)\olesvr.dll $(DEST)\olesvr.lib
  30. clean: cleanup all
  31. cleanup:
  32. if exist $(DEST)\*.obj del $(DEST)\*.obj
  33. if exist $(DEST)\*.dll del $(DEST)\*.dll
  34. if exist $(DEST)\*.map del $(DEST)\*.map
  35. if exist $(DEST)\*.sym del $(DEST)\*.sym
  36. if exist $(DEST)\*.res del $(DEST)\*.res
  37. $(DEST)\srvr.res: srvr.rc olesvr.rcv
  38. @set include=$(ENVINCS);$(INCLUDE)
  39. $(RC) -r -fo$*.res srvr.rc $@
  40. $(DEST)\olesvr.lib: olesvr.def
  41. mkpublic olesvr.def $(DEST)\stripped.def
  42. implib $@ $(DEST)\stripped.def
  43. $(DEST)\olesvr.obj: olesvr.asm
  44. $(ASM) -D?PLM=0 $(AFLAGS) olesvr.asm, $@;
  45. $(DEST)\give2gdi.obj: give2gdi.asm
  46. $(ASM) -D?PLM=1 $(AFLAGS) give2gdi.asm, $@;
  47. {}.c{$(DEST)}.obj:
  48. @set include=$(ENVINCS);$(INCLUDE)
  49. $(CL) $(CFLAGS) /Fo$*.obj $<
  50. $(DEST)\olesvr.dll: $(SRVR_OBJ) $(DEST)\srvr.res olesvr.def
  51. $(LINK) $(LFLAGS) @<<
  52. $(SRVR_OBJ) $(LIBENTRY_OBJ)
  53. $(DEST)\olesvr.dll
  54. $(DEST)\olesvr.map
  55. $(LIBS)
  56. olesvr.def;
  57. <<
  58. -@ cd $(DEST)
  59. @set include=$(ENVINCS);$(INCLUDE)
  60. $(RC) -t -30 srvr.res olesvr.dll
  61. mapsym olesvr
  62. -binplace -o $(ALT_PROJECT_TARGET) olesvr.dll olesvr.map olesvr.sym
  63. -@ cd..\..\..
  64. HEADERS = srvr.h ..\client\ole.h ..\client\cmacs.h
  65. srvrmain.c: $(HEADERS)
  66. srvr.c: $(HEADERS)
  67. doc.c.c: $(HEADERS)
  68. item.c: $(HEADERS)
  69. utils.c: $(HEADERS)
  70. block.c: $(HEADERS)
  71. #olesvr.rcv: ver.h