df00f6bcc923fd8a42778353047931e79ac0e69b
[reactos.git] / reactos / drivers / net / tcpip / makefile
1 # $Id: makefile,v 1.31 2004/11/13 00:06:32 arty Exp $
2
3 PATH_TO_TOP = ../../..
4
5 TARGET_REGTESTS = yes
6
7 TARGET_TYPE = export_driver
8
9 TARGET_NAME = tcpip
10
11 TARGET_PCH = include/precomp.h
12
13 # -DMEMTRACK
14 TARGET_CFLAGS = \
15 -D__USE_W32API \
16 -DMEMTRACK \
17 -DNDIS40 \
18 -Wall -Werror \
19 -I./include \
20 -I$(PATH_TO_TOP)/drivers/lib/oskittcp/include \
21 -I$(PATH_TO_TOP)/w32api/include \
22 -I$(PATH_TO_TOP)/include
23
24 TARGET_DDKLIBS = \
25 $(PATH_TO_TOP)/dk/w32/lib/ip.a \
26 $(PATH_TO_TOP)/dk/w32/lib/oskittcp.a \
27 $(PATH_TO_TOP)/dk/w32/lib/rosrtl.a \
28 ndis.a
29
30 TARGET_CLEAN = tcpip/*.o datalink/*.o \
31 $(PATH_TO_TOP)/dk/w32/lib/ip.a \
32 $(PATH_TO_TOP)/dk/w32/lib/oskittcp.a
33
34 TCPIP_OBJECTS = tcpip/buffer.o \
35 tcpip/dispatch.o \
36 tcpip/fileobjs.o \
37 tcpip/irp.o \
38 tcpip/main.o \
39 tcpip/pool.o \
40 tcpip/proto.o \
41 tcpip/lock.o \
42 tcpip/wait.o \
43 tcpip/bug.o
44 INFO_OBJECTS = tcpip/info.o tcpip/ninfo.o tcpip/tinfo.o tcpip/iinfo.o
45 DATALINK_OBJECTS = datalink/lan.o
46 MOCKOBJS = tcpip/mockbuffer.o \
47 tcpip/mockwait.o \
48 tcpip/mocklock.o \
49 tcpip/mockpool.o \
50 tcpip/mockbug.o
51
52 TARGET_OBJECTS = \
53 $(TCPIP_OBJECTS) \
54 $(INFO_OBJECTS) \
55 $(DATALINK_OBJECTS)
56
57 preall: preclean
58 $(MAKE) -C ../../lib/ip
59 $(MAKE) -C ../../lib/oskittcp
60 $(MAKE) all
61 $(MAKE) $(MOCKOBJS)
62
63 preclean:
64 $(RM) $(PATH_TO_TOP)/dk/w32/lib/ip.a \
65 $(PATH_TO_TOP)/dk/w32/lib/oskittcp.a
66
67 $(PATH_TO_TOP)/dk/w32/lib/oskittcp.a:
68 $(MAKE) -C $(PATH_TO_TOP)/drivers/lib/oskittcp
69
70 $(PATH_TO_TOP)/dk/w32/lib/ip.a:
71 $(MAKE) -C $(PATH_TO_TOP)/drivers/lib/ip
72
73 $(TARGET_OBJECTS):: makefile
74
75 include $(PATH_TO_TOP)/rules.mak
76
77 include $(TOOLS_PATH)/helper.mk