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.

87 lines
1.8 KiB

  1. # WINNLS16 makefile
  2. #
  3. # Copyright (c) 1991, Microsoft Corporation
  4. #
  5. # History:
  6. # 26-Jan-1991 Jeff Parsons (jeffpar)
  7. # Created.
  8. #
  9. !include ..\makefile.inc
  10. .SUFFIXES:
  11. .SUFFIXES: .c .asm .h .inc .obj .lst .sys .exe .com .map .sym .def .lib .res .rc
  12. !ifdef INCLUDE
  13. INCS =
  14. !else
  15. INCS = -I..\inc -I..\..\inc
  16. RINCS = -I..\inc
  17. !endif
  18. DEFINES = -DWOW -DBUILDDLL $(MVDMFLAGS) $(DBCS_FLAGS)
  19. DEF_FILE= winnls.def
  20. !IF "$(ALT_PROJECT)" == "KOR"
  21. DEFINES = $(DEFINES) -DKOREA
  22. !endif
  23. # Usa is same as chs
  24. !IF "$(ALT_PROJECT)" == "CHT" || \
  25. "$(ALT_PROJECT)" == "CHS" || \
  26. "$(ALT_PROJECT)" == "KOR" || \
  27. "$(ALT_PROJECT)" == "CHP" || \
  28. "$(ALT_PROJECT)" == "usa"
  29. DEFINES = $(DEFINES) -DTAIWAN_PRC
  30. DEF_FILE= winnlsfe.def
  31. !endif
  32. AOBJ = -Mx -t $(DEFINES) $(INCS)
  33. CW16 = -Asnw -G2sw -Os -W2 -Zp $(DEFINES) $(INCS)
  34. LINK = /map
  35. !if !$(FREEBUILD)
  36. AOBJ = $(AOBJ) -Zd
  37. CW16 = $(CW16) /Od /Oi /Zd
  38. LINK = $(LINK) /LI
  39. !endif
  40. W16LIBS = ..\lib\snocrtd.lib
  41. all: $(DEST)\winnls.dll $(DEST)\winnls.sym
  42. !ifdef ALT_PROJECT_TARGET
  43. -binplace -o $(ALT_PROJECT_TARGET) $(DEST)\winnls.dll $(DEST)\winnls.sym
  44. !else
  45. -binplace $(DEST)\winnls.dll $(DEST)\winnls.sym
  46. !endif
  47. clean: cleanup all
  48. cleanup:
  49. cd $(DEST)
  50. if exist *.lrf del *.lrf
  51. if exist *.obj del *.obj
  52. if exist *.dll del *.dll
  53. if exist *.map del *.map
  54. if exist *.sym del *.sym
  55. if exist *.lst del *.lst
  56. if exist *.res del *.res
  57. cd ..\..\..
  58. $(DEST)\winnls.obj: $(*F).asm ..\..\inc\wow.inc ..\..\inc\wownls.inc
  59. $(DEST)\winnls.lrf: makefile.sub
  60. echo $*.obj >$@
  61. echo $*.dll >>$@
  62. echo $* $(LINK) >>$@
  63. echo ..\lib\$(ALT_PROJECT)\libw.lib /nod >>$@
  64. echo $(DEF_FILE); >>$@
  65. $(DEST)\winnls.dll: $*.obj $*.lrf $(*F).def $*.res
  66. $(LINK16) @$*.lrf;
  67. rc16 -t $*.res $@
  68. $(DEST)\winnls.res: $(*F).rc $(*F).rcv ..\inc\common.ver