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.

121 lines
3.8 KiB

  1. #****************************************************************************
  2. # *
  3. # THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY *
  4. # KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE *
  5. # IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR *
  6. # PURPOSE. *
  7. # *
  8. # Copyright 1993-95 Microsoft Corporation. All Rights Reserved. *
  9. # *
  10. #****************************************************************************
  11. !ifdef MASTER_MAKE
  12. BUILD_BITS=32
  13. BUILD_TYPE=block
  14. !INCLUDE $(DDKROOT)\master.mk
  15. !endif
  16. #
  17. # remove comment from the next line to compile your driver with debugging info
  18. #
  19. # DEBUG=1
  20. DEVICE = SMCLIB
  21. OBJS = $(BIN)\smcctrl.obj $(BIN)\smcvxd.obj $(BIN)\smcioctl.obj $(BIN)\smcutil.obj $(BIN)\smcprot.obj
  22. CVXDFLAGS = -Zd -Gs -c -DIS_32 -Zl -D$(DBG) -DSMCLIB_VXD -DSMCLIB_HEADER -Fr -Oi -I. -Fa
  23. LVXDFLAGS = -MACHINE:i386 -DEBUG:NONE -PDB:NONE -NOD -MAP
  24. AFLAGS = -coff -DBLD_COFF -DIS_32 -W2 -Zd -c -Cx -DMASM6 -DDEBLEVEL=1 -DDEBUG -Fl
  25. DESCRIPTION = Smart Card Driver Library
  26. !ifdef DEBUG
  27. BIN=bind
  28. DBG=DEBUG
  29. !else
  30. BIN=bin
  31. DBG=NODEBUG
  32. !endif
  33. all: direxist $(BIN)\smclib.vxd
  34. direxist:
  35. if not exist $(BIN)\nul md $(BIN)
  36. $(BIN)\smcvxd.obj: smcvxd.c
  37. cl $(CVXDFLAGS) -Fo$@ %s
  38. $(BIN)\smcioctl.obj: ..\smcioctl.c
  39. cl $(CVXDFLAGS) -Fo$@ %s
  40. $(BIN)\smcutil.obj: ..\smcutil.c
  41. cl $(CVXDFLAGS) -Fo$@ %s
  42. $(BIN)\smcprot.obj: ..\smcprot.c
  43. cl $(CVXDFLAGS) -Fo$@ %s
  44. $(BIN)\smcctrl.obj: smcctrl.asm
  45. ml $(AFLAGS) -Fo$@ %s
  46. $(BIN)\$(DEVICE).res:
  47. $(SDKROOT)\binw16\rc -r -fo $@ <<$(DEVICE).rc
  48. #include <version.h>
  49. #define Not_VxD
  50. #include <vmm.h>
  51. #define VER_FILETYPE VFT_VXD
  52. #define VER_FILESUBTYPE 0x0004E
  53. #define VER_FILEDESCRIPTION_STR "$(DESCRIPTION)"
  54. #define VER_INTERNALNAME_STR "$(DEVICE)"
  55. #define VER_LEGALCOPYRIGHT_YEARS "1997"
  56. #define VER_ORIGINALFILENAME_STR "$(DEVICE).VXD"
  57. #include <common.ver>
  58. <<
  59. $(BIN)\$(DEVICE).vxd: $(OBJS) $(BIN)\$(DEVICE).res
  60. link @<<$(DEVICE).lnk /def:<<$(DEVICE).def
  61. $(LVXDFLAGS) /vxd
  62. /out:$(BIN)\$(DEVICE).vxd
  63. /map:$(BIN)\$(DEVICE).map
  64. $(OBJS)
  65. vxdwraps.clb
  66. <<
  67. VXD $(DEVICE) DYNAMIC
  68. DESCRIPTION '$(DESCRIPTION)'
  69. SEGMENTS
  70. _LPTEXT CLASS 'LCODE' PRELOAD NONDISCARDABLE
  71. _LTEXT CLASS 'LCODE' PRELOAD NONDISCARDABLE
  72. _LDATA CLASS 'LCODE' PRELOAD NONDISCARDABLE
  73. _TEXT CLASS 'LCODE' PRELOAD NONDISCARDABLE
  74. _DATA CLASS 'LCODE' PRELOAD NONDISCARDABLE
  75. CONST CLASS 'LCODE' PRELOAD NONDISCARDABLE
  76. _TLS CLASS 'LCODE' PRELOAD NONDISCARDABLE
  77. _BSS CLASS 'LCODE' PRELOAD NONDISCARDABLE
  78. _ITEXT CLASS 'ICODE' DISCARDABLE
  79. _IDATA CLASS 'ICODE' DISCARDABLE
  80. _PTEXT CLASS 'PCODE' NONDISCARDABLE
  81. _PDATA CLASS 'PDATA' NONDISCARDABLE SHARED
  82. _STEXT CLASS 'SCODE' RESIDENT
  83. _SDATA CLASS 'SCODE' RESIDENT
  84. _DBOSTART CLASS 'DBOCODE' PRELOAD NONDISCARDABLE CONFORMING
  85. _DBOCODE CLASS 'DBOCODE' PRELOAD NONDISCARDABLE CONFORMING
  86. _DBODATA CLASS 'DBOCODE' PRELOAD NONDISCARDABLE CONFORMING
  87. _16ICODE CLASS '16ICODE' PRELOAD DISCARDABLE
  88. _RCODE CLASS 'RCODE'
  89. EXPORTS
  90. $(DEVICE)_DDB @1
  91. <<
  92. adrc2vxd.exe $@ $(BIN)\$(DEVICE).res
  93. mapsym -s -o $(BIN)\$(DEVICE).sym $(BIN)\$(DEVICE).map
  94. bscmake /o smcvxd /n *.sbr
  95. del $(BIN)\$(DEVICE).exp
  96. del $(BIN)\$(DEVICE).lib
  97. clean:
  98. -@del $(BIN)\*.obj
  99. -@del $(BIN)\*.vxd
  100. -@del $(BIN)\*.exe
  101. -@del $(BIN)\*.map
  102. -@del $(BIN)\*.sym
  103. -@del $(BIN)\*.res
  104. -@rd $(BIN)
  105. -@del *.pdb