add winpcap 4.0.2 from url http://www.winpcap.org/
[natblaster.git] / winpcap / Packet9x / VXD / Ndis.mk
blob17b865245c3f7d73bc81dbe3e256428de98bdf7c
1 ##################################################################
3 # Microsoft Confidential
4 # Copyright (C) Microsoft Corporation 1993-95
5 # All Rights Reserved.
7 # Master Makefile for packet driver
9 # This document is provided for informational purposes only and Microsoft
10 # Corporation makes no warranties, either expressed or implied, in this document.
11 # Information in this document may be substantially changed without notice in
12 # subsequent versions of windows and does not represent a commitment on the
13 # part of Microsoft Corporation. This information is for internal use only for
14 # development purposes.
16 # INPUT:
17 # BIN: Where to put the stuff
18 # DEB: Flags to control debug level
20 ##################################################################
22 NDIS_STDCALL=1
24 !IFNDEF DEBLEVEL
25 DEBLEVEL=1
26 !ENDIF
28 DDEB = -DDEBUG -DDBG=1 -DDEBLEVEL=$(DEBLEVEL) -DCHICAGO -Zi
29 RDEB = -DDEBLEVEL=0 -DCHICAGO
31 !IFNDEF BIN
32 BIN = retail
33 DEB = $(RDEB)
34 LDEB = NONE
35 !ELSE
36 DEB = $(DDEB)
37 LDEB = FULL
38 !ENDIF
41 WIN32 = $(DDKROOT)
42 NETROOT = $(DDKROOT)\net
43 NDISROOT = $(NETROOT)\ndis3
44 LIBDIR = $(NDISROOT)\lib
45 INCLUDE = ..\..\common;$(INCLUDE);.
47 DDKTOOLS = $(WIN32)\bin
49 i386 = TRUE
50 VXD = TRUE
51 ASM = ml.exe
52 CL = cl.exe -bzalign
53 CHGNAM = chgnam.exe
54 CHGNAMSRC = $(DDKTOOLS)\chgnam.vxd
55 INCLUDES = $(NETROOT)\bin\includes.exe
56 MAPSYM = mapsym
58 LIBNDIS = $(LIBDIR)\$(BIN)\libndis.clb
59 LINK = link.exe /DEBUG /DEBUGTYPE:CV
60 LIBWRAPS = $(DDKROOT)\lib\vxdwraps.clb
63 LFLAGS = /m /NOD /MA /LI /NOLOGO /NOI
65 CFLAGS = -Zp -Gs -c -DIS_32 -Zl -DWIN32 -DW95
66 AFLAGS = -DIS_32 -W2 -Cx -DMASM6 -DVMMSYS -Zm -DSEGNUM=3
68 #AFLAGS = $(AFLAGS) -DNDIS_WIN -c -coff -DBLD_COFF
69 AFLAGS = $(AFLAGS) -c -coff -DBLD_COFF -DDEVICE=$(DEVICE)
71 !ifdef NDIS_STDCALL
72 CFLAGS = $(CFLAGS) -Gz -DNDIS_STDCALL
73 AFLAGS = $(AFLAGS) -DNDIS_STDCALL
74 !endif
76 .asm{$(BIN)}.obj:
77 set INCLUDE=$(INCLUDE)
78 set ML= $(AFLAGS) $(DEB)
79 $(ASM) -Fo$*.obj $<
81 .asm{$(BIN)}.lst:
82 set INCLUDE=$(INCLUDE)
83 set ML= $(AFLAGS) $(DEB)
84 $(ASM) -Fl$*.obj $<
86 .c{$(BIN)}.obj:
87 set INCLUDE=$(INCLUDE)
88 set CL= $(CFLAGS) $(DEB)
89 $(CL) -Fo$*.obj $<
91 target: $(BIN) $(BIN)\$(DEVICE).VXD $(BIN)\$(DEVICE).RES
93 $(BIN):
94 if not exist $(BIN)\nul md $(BIN)
96 dbg: depend
97 $(MAKE) BIN=debug DEB="$(DDEB)"
99 rtl: depend
100 $(MAKE) BIN=retail DEB="$(RDEB)"
102 all: rtl dbg
104 !if EXIST (depend.mk)
105 !include depend.mk
106 !endif
108 VERSION = 4.0
110 !ifdef OMB
112 $(BIN)\$(DEVICE).VXD: $(OBJS) $(DEVICE).def $(LIBNDIS)
113 $(LINK) @<<
114 $(OBJS: =+^
116 $(BIN)\$(DEVICE).VXD $(LFLAGS)
117 $(BIN)\$(DEVICE).map
118 $(LIBNDIS)
119 $(DEVICE).def
122 !else
124 $(BIN)\$(DEVICE).VXD: $(OBJS) $(DEVICE).def $(LIBNDIS) $(LIBWRAPS)
125 $(LINK) @<<
126 -MACHINE:i386
127 -DEBUG:$(LDEB)
128 -DEBUGTYPE:CV
129 -PDB:NONE
130 -DEF:$(DEVICE).def
131 -OUT:$(BIN)\$(DEVICE).VXD
132 -MAP:$(BIN)\$(DEVICE).map
133 -VXD
134 $(LIBNDIS)
135 $(LIBWRAPS)
136 $(OBJS: =^
141 !endif
142 cd $(BIN)
143 $(MAPSYM) $(DEVICE)
145 cd ..
148 $(BIN)\$(DEVICE).RES:
149 $(SDKROOT)\bin\rc -r -i$(DDKROOT)\inc32 $(DEVICE).RC
151 move $(DEVICE).RES $(BIN)
152 cd $(BIN)
154 adrc2vxd $(DEVICE).vxd $(DEVICE).res
156 cd ..
160 depend:
161 # -mkdir debug
162 # -mkdir retail
163 set INCLUDE=$(INCLUDE)
164 # $(INCLUDES) -i -L$$(BIN) -S$$(BIN) *.asm *.c > depend.mk
165 # $(INCLUDES) -i -L$$(BIN) -S$$(BIN) $(NDISSRC)\ndisdev.asm >> depend.mk
168 clean :
169 - del debug\*.obj
170 - del debug\*.sym
171 - del debug\*.VXD
172 - del debug\*.map
173 - del debug\*.lst
174 - del retail\*.obj
175 - del retail\*.sym
176 - del retail\*.VXD
177 - del retail\*.map
178 - del retail\*.lst
179 - del depend.mk