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.

145 lines
4.7 KiB

  1. #############################################################################
  2. #
  3. # Copyright (C) Microsoft Corporation 1996
  4. # All Rights Reserved.
  5. #
  6. # Makefile for Sample PCMCIA Socket Services Driver
  7. #
  8. #############################################################################
  9. DEVICE =WUBIOS
  10. DESC =Windows Update OEM detection VxD
  11. !IF [set INCLUDE=;]
  12. !ENDIF
  13. !if "$(CFG)" == "DEBUG"
  14. OUTDIR = .\debug
  15. !elseif "$(CFG)" == "RELEASE"
  16. OUTDIR = .\release
  17. !endif
  18. LIBS =.\lib\vxdwraps.clb
  19. OBJS =$(OUTDIR)\main.obj $(OUTDIR)\control.obj $(OUTDIR)\acpi.obj $(OUTDIR)\smbios.obj $(OUTDIR)\debug.obj
  20. KEEPFLAG=NOKEEP
  21. CFLAGS =-W4 -WX -G5 -Ogaisb1 -DWANTVXDWRAPS -D_X86_ -Zd -Zp -Gs -c -DIS_32 -bzalign -Zl -I..\inc -I.\inc -I$(_NTDRIVE)$(_NTROOT)\public\sdk\inc
  22. AFLAGS =/Sc -DIS_32 -W2 -Zd -c -Cx -DMASM6 -Sg -coff -DBLD_COFF -I.\inc
  23. LFLAGS =-nologo -nodefaultlib -align:0x200 -ignore:4039,4078 -vxd
  24. HFLAGS =-fwc -s .\inc\basedef.h
  25. !if "$(CFG)" == "DEBUG"
  26. CFLAGS =$(CFLAGS) -DDEBLEVEL=2 -DDEBUG -DMAXDEBUG
  27. AFLAGS =$(AFLAGS) -DDEBLEVEL=2 -DDEBUG -DMAXDEBUG
  28. LFLAGS =$(LFLAGS) -debug -debugtype:map,coff
  29. !else
  30. CFLAGS =$(CFLAGS) -Oy -DDEBLEVEL=0
  31. AFLAGS =$(AFLAGS) -DDEBLEVEL=0
  32. LFLAGS =$(LFLAGS) -pdb:none
  33. !endif
  34. .SUFFIXES: .asm .c .h .inc .def .lnk
  35. .SUFFIXES: .obj .lst .map
  36. .SUFFIXES: .vxd .exe .com .sym
  37. .c{$(OUTDIR)}.obj:
  38. cl $(CFLAGS) -Fo$*.obj $<
  39. .c{$(OUTDIR)}.lst:
  40. cl $(CFLAGS) -Fc$@ -Fo$*.obj $<
  41. .asm{$(OUTDIR)}.obj:
  42. ml $(AFLAGS) -Fo$*.obj $<
  43. .h.inc:
  44. bin\h2inc @<<$(@B).h2i
  45. $(HFLAGS) $< -o $*.inc
  46. <<$(KEEPFLAG)
  47. all: "$(OUTDIR)" $(OUTDIR)\$(DEVICE).vxd
  48. "$(OUTDIR)" :
  49. if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
  50. $(OUTDIR)\$(DEVICE).vxd: $(OBJS)
  51. link @<<$(DEVICE).lnk /def:<<$(DEVICE).def
  52. $(LFLAGS) /vxd
  53. /out:$(OUTDIR)\$(DEVICE).vxd /map:$(OUTDIR)\$(DEVICE).map
  54. $(OBJS) $(LIBS)
  55. /def:$(DEVICE).def
  56. <<$(KEEPFLAG)
  57. VXD $(DEVICE) DYNAMIC
  58. DESCRIPTION '$(DESC)'
  59. SEGMENTS
  60. _LPTEXT CLASS 'LCODE' PRELOAD NONDISCARDABLE
  61. _LTEXT CLASS 'LCODE' PRELOAD NONDISCARDABLE
  62. _LDATA CLASS 'LCODE' PRELOAD NONDISCARDABLE
  63. _TEXT CLASS 'LCODE' PRELOAD NONDISCARDABLE
  64. _DATA CLASS 'LCODE' PRELOAD NONDISCARDABLE
  65. CONST CLASS 'LCODE' PRELOAD NONDISCARDABLE
  66. _TLS CLASS 'LCODE' PRELOAD NONDISCARDABLE
  67. _BSS CLASS 'LCODE' PRELOAD NONDISCARDABLE
  68. .data CLASS 'LCODE' PRELOAD NONDISCARDABLE
  69. .text CLASS 'LCODE' PRELOAD NONDISCARDABLE
  70. !IF "$(VERDIR)" == "debug"
  71. _PATHSTART CLASS 'LCODE' PRELOAD NONDISCARDABLE
  72. _PATHDATA CLASS 'LCODE' PRELOAD NONDISCARDABLE
  73. _PATHEND CLASS 'LCODE' PRELOAD NONDISCARDABLE
  74. !ENDIF
  75. EXPORTS
  76. $(DEVICE)_DDB @1
  77. <<$(KEEPFLAG)
  78. del $(OUTDIR)\$(DEVICE).lib
  79. del $(OUTDIR)\$(DEVICE).exp
  80. mapsym -s -o $(OUTDIR)\$(DEVICE).sym $(OUTDIR)\$(DEVICE).map
  81. clean:
  82. del *.obj /s /a-r
  83. del *.vxd /s /a-r
  84. del *.lst /s /a-r
  85. del *.map /s /a-r
  86. del *.lib /s /a-r
  87. del *.exp /s /a-r
  88. del *.sym /s /a-r
  89. depend:
  90. copy wubios.mk wubios.old
  91. sed "/^# Dependencies follow/,/^# see depend: above/D" wubios.old > wubios.mk
  92. echo # Dependencies follow >> wubios.mk
  93. bin\includes -sobj -I.\inc -I$(_NTDRIVE)$(_NTROOT)\public\sdk\inc *.c >> wubios.mk
  94. bin\includes -sobj -I.\inc *.asm >> wubios.mk
  95. echo # IF YOU PUT STUFF HERE IT WILL GET BLASTED >> wubios.mk
  96. echo # see depend: above >> wubios.mk
  97. # DO NOT DELETE THE FOLLOWING LINE
  98. # Dependencies follow
  99. acpi.obj acpi.lst: acpi.c .\inc\basedef.h .\inc\configmg.h .\inc\poppack.h \
  100. .\inc\pshpack1.h .\inc\vmm.h .\inc\vmmreg.h .\inc\vwin32.h \
  101. .\inc\vxdwraps.h $(_NTDRIVE)$(_NTROOT)\public\sdk\inc\dbt.h \
  102. $(_NTDRIVE)$(_NTROOT)\public\sdk\inc\guiddef.h \
  103. $(_NTDRIVE)$(_NTROOT)\public\sdk\inc\winerror.h wubiosp.h
  104. control.obj control.lst: control.c .\inc\basedef.h .\inc\configmg.h \
  105. .\inc\poppack.h .\inc\pshpack1.h .\inc\vmm.h .\inc\vmmreg.h \
  106. .\inc\vwin32.h .\inc\vxdwraps.h $(_NTDRIVE)$(_NTROOT)\public\sdk\inc\dbt.h \
  107. $(_NTDRIVE)$(_NTROOT)\public\sdk\inc\guiddef.h \
  108. $(_NTDRIVE)$(_NTROOT)\public\sdk\inc\winerror.h wubiosp.h
  109. debug.obj debug.lst: debug.c .\inc\basedef.h .\inc\configmg.h \
  110. .\inc\poppack.h .\inc\pshpack1.h .\inc\vmm.h .\inc\vmmreg.h \
  111. .\inc\vwin32.h .\inc\vxdwraps.h $(_NTDRIVE)$(_NTROOT)\public\sdk\inc\dbt.h \
  112. $(_NTDRIVE)$(_NTROOT)\public\sdk\inc\guiddef.h \
  113. $(_NTDRIVE)$(_NTROOT)\public\sdk\inc\winerror.h wubiosp.h
  114. smbios.obj smbios.lst: smbios.c .\inc\basedef.h .\inc\configmg.h \
  115. .\inc\poppack.h .\inc\pshpack1.h .\inc\vmm.h .\inc\vmmreg.h \
  116. .\inc\vwin32.h .\inc\vxdwraps.h $(_NTDRIVE)$(_NTROOT)\public\sdk\inc\dbt.h \
  117. $(_NTDRIVE)$(_NTROOT)\public\sdk\inc\guiddef.h \
  118. $(_NTDRIVE)$(_NTROOT)\public\sdk\inc\winerror.h wubiosp.h
  119. main.obj main.lst: main.asm .\inc\vmm.inc
  120. # IF YOU PUT STUFF HERE IT WILL GET BLASTED
  121. # see depend: above