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.

107 lines
2.6 KiB

  1. # GDI16 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. DEFINES = $(DEFINES) -DBUILDDLL $(DBCS_FLAGS)
  11. AOBJ = -Mx -t $(DEFINES) $(INCS)
  12. CW16 = -PLM -Asnw -G2sw $(DEFINES)
  13. #CW16 = -AS -G2sw $(DEFINES)
  14. CW16B = $(CW16) -B1 c1l.exe -B2 c2l.exe -B3 c3l.exe
  15. !if !$(FREEBUILD)
  16. AOBJ = $(AOBJ) -Zd
  17. CW16 = $(CW16) /Odi /Zd
  18. !else
  19. CW16 = $(CW16) /Os /Zp
  20. !endif
  21. W16LIBS = ..\lib\snocrtd.lib ..\lib\$(ALT_PROJECT)\libw.lib
  22. .asm.obj:
  23. $(ASM) $(AOBJ) $*;
  24. .asm.lst:
  25. $(ASM) $(AOBJ) -l $*,nul,$*.lst;
  26. .c.obj:
  27. @set include=$(ENVINCS);$(INCLUDE)
  28. $(CL) -c $(CW16) $*.c
  29. .c.lst:
  30. @set include=$(ENVINCS);$(INCLUDE)
  31. $(CL) -c $(CW16) -Fonul -Fc$*.lst $*.c
  32. .def.lib:
  33. implib $*.lib $*.def
  34. .map.sym:
  35. cd $(DEST)
  36. mapsym gdi
  37. cd ..\..\..
  38. .rc.res:
  39. @set include=$(ENVINCS);$(INCLUDE)
  40. $(RC) -r -fo $@ $*.rc
  41. all: $(DEST)\gdi.exe $(DEST)\gdi.sym
  42. binplace -o $(ALT_PROJECT_TARGET) $(DEST)\gdi.exe
  43. binplace -o $(ALT_PROJECT_TARGET) $(DEST)\gdi.sym
  44. binplace -o $(ALT_PROJECT_TARGET) $(DEST)\gdi.map
  45. clean: cleanup all
  46. cleanup:
  47. if exist $(DEST)\*.lrf del $(DEST)\*.lrf
  48. if exist $(DEST)\*.obj del $(DEST)\*.obj
  49. if exist $(DEST)\*.exe del $(DEST)\*.exe
  50. if exist $(DEST)\*.map del $(DEST)\*.map
  51. if exist $(DEST)\*.sym del $(DEST)\*.sym
  52. if exist $(DEST)\*.res del $(DEST)\*.res
  53. $(DEST)\gdi.obj: gdi.asm ..\..\inc\wow.inc ..\..\inc\wowgdi.inc
  54. $(ASM) $(AOBJ) gdi,$(DEST)\;
  55. $(DEST)\sort.obj: sort.asm ..\..\inc\wow.inc ..\..\inc\wowgdi.inc
  56. $(ASM) $(AOBJ) sort,$(DEST)\;
  57. $(DEST)\layer.obj: layer.asm ..\inc\layer.inc gdi.api
  58. $(ASM) $(AOBJ) layer,$(DEST)\;
  59. $(DEST)\muldiv.obj: muldiv.asm
  60. $(ASM) $(AOBJ) muldiv,$(DEST)\;
  61. $(DEST)\fontres.obj: fontres.c ..\..\inc\wow.h ..\..\inc\wowgdi.h
  62. @set include=$(ENVINCS);$(INCLUDE)
  63. $(CL) -c $(CW16) -Fo$(DEST)\ fontres.c
  64. $(DEST)\gdi.lrf: makefile.sub
  65. echo $(DEST)\gdi.obj+$(DEST)\layer.obj+$(DEST)\muldiv.obj+$(DEST)\fontres.obj+$(DEST)\sort.obj >$(DEST)\gdi.lrf
  66. echo $(DEST)\gdi.exe>>$(DEST)\gdi.lrf
  67. echo $(DEST)\gdi $(LINKOPTS)>>$(DEST)\gdi.lrf
  68. echo $(W16LIBS) /nod>>$(DEST)\gdi.lrf
  69. echo $(ALT_PROJECT)\gdi;>>$(DEST)\gdi.lrf
  70. $(DEST)\gdi.res: *.rc *.rcv ..\inc\common.ver
  71. @set include=$(ENVINCS);$(INCLUDE)
  72. $(RC) -r -fo $@ gdi.rc
  73. $(DEST)\gdi.exe $(DEST)\gdi.map: $(DEST)\sort.obj $(DEST)\gdi.obj $(DEST)\gdi.lrf $(ALT_PROJECT)\gdi.def $(DEST)\layer.obj $(DEST)\muldiv.obj $(DEST)\fontres.obj $(DEST)\gdi.res
  74. $(LINK) @$(DEST)\gdi.lrf;
  75. $(RC) -t $(DEST)\gdi.res $(DEST)\gdi.exe