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.

97 lines
1.7 KiB

  1. # TAPI.DLL thunk makefile
  2. #
  3. # Copyright (c) 1995, Microsoft Corporation
  4. #
  5. # History:
  6. # Created.
  7. #
  8. !INCLUDE $(NTMAKEENV)\makefile.plt
  9. .SUFFIXES:
  10. .SUFFIXES: .c .asm .h .inc .obj .lst .sys .exe .com .map .sym .def .lib .rc .res
  11. # The files currently live in mvdm\wow16\inc and need to be published
  12. # SDK_INC16_PATH=..\..\..\Base\mvdm\wow16\inc
  13. INCS = -I..\inc -I$(SDK_INC16_PATH) -I$(SDK_INC_PATH)
  14. PATH=$(PATH_TOOLS16);$(PATH)
  15. AOBJ = -t $(DEFINES) $(INCS)
  16. CW16 = -ALw -G2sw -Os -W3 -Zd -Zp $(DEFINES) $(INCS)
  17. CW16B = $(CW16) -B1 c1l.exe -B2 c2l.exe -B3 c3l.exe
  18. LINK = /map /align:16 /batch
  19. !if !$(FREEBUILD)
  20. AOBJ = $(AOBJ) -Zd
  21. CW16 = $(CW16) /Od /Oi
  22. LINK = $(LINK) /LI
  23. !endif
  24. .asm.obj:
  25. masm $(AOBJ) $*;
  26. .asm.lst:
  27. masm $(AOBJ) -l $*,nul,$*.lst;
  28. .c.obj:
  29. cl16 -c $(CW16) $*.c
  30. .c.pp:
  31. cl16 -c $(CW16) -E $*.c > $@
  32. .c.lst:
  33. cl16 -c $(CW16) -Fonul -Fc$*.lst $*.c
  34. .def.lib:
  35. implib $*.lib $*.def
  36. .map.sym:
  37. mapsym $*
  38. .rc.res:
  39. rc16 -DWINNT=1 -r $(INCS) -fo $@ $*.rc
  40. all: tapi.dll tapi.sym
  41. binplace tapi.dll tapi.sym
  42. clean: cleanup all
  43. cleanup:
  44. if exist *.lrf del *.lrf
  45. if exist *.obj del *.obj
  46. if exist *.exe del *.exe
  47. if exist *.map del *.map
  48. if exist *.sym del *.sym
  49. if exist *.drv del *.drv
  50. if exist *.res del *.res
  51. thunk.obj thunk.lst: thunk.c thunk.h
  52. tapi.res: $*.rc
  53. tapi.lrf: makefil0
  54. echo $(SDK_LIB16_PATH)\libentry.obj thunk >$@
  55. echo $*.dll/align:16>>$@
  56. echo $* $(LINK)>>$@
  57. echo $(SDK_LIB16_PATH)\ldllcew.lib libw.lib /map /nod>>$@
  58. echo $*;>>$@
  59. tapi.dll tapi.map: thunk.obj \
  60. $*.def $*.res $*.lrf
  61. link16 @$*.lrf;
  62. rc16 -t $*.res $*.dll
  63. tapi.sym: $*.map
  64. mapsym $*