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.

99 lines
2.0 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. INCLUDE_PATH=..\inc;$(SDK_INC16_PATH);$(SDK_INC_PATH)
  15. PATH=$(PATH_TOOLS16);$(PATH)
  16. AOBJ = -t $(DEFINES) $(INCS)
  17. CW16 = -ALw -G2sw -Os -W3 -Zd -Zp $(DEFINES)
  18. CW16B = $(CW16) -B1 c1l.exe -B2 c2l.exe -B3 c3l.exe
  19. LINK = /map /align:16 /batch
  20. !if !$(FREEBUILD)
  21. AOBJ = $(AOBJ) -Zd
  22. CW16 = $(CW16) /Od /Oi
  23. LINK = $(LINK) /LI
  24. !endif
  25. .asm.obj:
  26. masm $(AOBJ) $*;
  27. .asm.lst:
  28. masm $(AOBJ) -l $*,nul,$*.lst;
  29. .c.obj:
  30. cl16 -c $(CW16) $*.c
  31. .c.pp:
  32. cl16 -c $(CW16) -E $*.c > $@
  33. .c.lst:
  34. cl16 -c $(CW16) -Fonul -Fc$*.lst $*.c
  35. #.def.lib:
  36. # implib $*.lib $*.def
  37. #.map.sym:
  38. # mapsym $*
  39. .rc.res:
  40. all: $(O)\tapi.dll $(O)\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. $(O)\thunk.obj: thunk.c thunk.h
  52. set include=$(INCLUDE_PATH)
  53. cl16 -c $(CW16) -Fo$@ thunk.c
  54. $(O)\tapi.res: tapi.rc
  55. rc16 -DWIN16 -DWINNT=1 -r $(INCS) -fo $@ tapi.rc
  56. $(O)\tapi.lrf: makefile.inc
  57. echo $(SDK_LIB16_PATH)\libentry.obj $(O)\thunk.obj >$@
  58. echo $*.dll/align:16>>$@
  59. echo $* $(LINK)>>$@
  60. echo $(SDK_LIB16_PATH)\ldllcew.lib libw.lib /map /nod>>$@
  61. echo tapi.def;>>$@
  62. $(O)\tapi.dll $(O)\tapi.map: $(O)\thunk.obj tapi.def $(O)\tapi.res $(O)\tapi.lrf
  63. link16 @$(O)\tapi.lrf;
  64. rc16 -t $(O)\tapi.res $(O)\tapi.dll
  65. $(O)\tapi.sym: $(O)\tapi.map
  66. mapsym -o $@ $*