ba02bca0443a0234b1fea29757cbc49cb45a2b78
[mirror/winof/.git] / tools / mtcr / user / SOURCES
1 #\r
2 # Name: sources\r
3 #\r
4 # Purpose:\r
5 #       Building MTCR for this platform (user space)\r
6 #\r
7 \r
8 TARGETTYPE=DYNLINK\r
9 TARGETNAME=mtcr\r
10 DLLENTRY=_DllMainCRTStartup\r
11 DLLDEF=mtcr.def\r
12 USE_CRTDLL=1\r
13 \r
14 !if !defined(WINIBHOME)\r
15 WINIBHOME=..\..\..\r
16 !endif\r
17 \r
18 LIBPATH=$(WINIBHOME)\bin\user\obj$(BUILD_ALT_DIR)\r
19 \r
20 TARGETPATH=$(WINIBHOME)\bin\user\obj$(BUILD_ALT_DIR)\r
21 \r
22 \r
23 INCLUDES= $(WINIBHOME)\inc;                    \\r
24           $(WINIBHOME)\inc\user;               \\r
25           $(WINIBHOME)\inc\iba;                \\r
26           $(WINIBHOME)\inc\mthca;                \\r
27           .\usb;\r
28           \r
29 \r
30 SOURCES= \\r
31         mtcr.rc \\r
32         mtcr_i2c.c \\r
33         mtcr.c \\r
34         usb.cpp\r
35  \r
36 \r
37 TARGETLIBS= \\r
38 !if $(FREEBUILD)\r
39                         $(TARGETPATH)\*\complib.lib \\r
40                         $(CRT_LIB_PATH)\msvcrt.lib \\r
41                         $(TARGETPATH)\*\ibal.lib\\r
42                         $(SDK_LIB_PATH)\Kernel32.lib\\r
43 !else\r
44                         $(TARGETPATH)\*\complibd.lib\\r
45                         $(CRT_LIB_PATH)\msvcrt.lib\\r
46                         $(TARGETPATH)\*\ibald.lib\\r
47                         $(SDK_LIB_PATH)\Ws2_32.lib\\r
48                         $(SDK_LIB_PATH)\Kernel32.lib\\r
49 \r
50 !endif\r
51 \r
52 \r
53 # dimax driver not provided for 64 bits arch.\r
54 MTCR_NO_USB=1\r
55 \r
56 \r
57 !if "$(_BUILDARCH)" == "x86"\r
58 TARGETLIBS=$(TARGETLIBS)\\r
59         .\usb\usbi2cio.lib \\r
60         .\usb\I2cBrdg.lib\r
61         \r
62 C_DEFINES=$(C_DEFINES) -DMTCR_USB_SUPPORT\r
63 !endif\r
64 \r
65 \r
66 \r
67 \r
68 # TODO:Should I define the __WIN__ manually\r
69 C_DEFINES=$(C_DEFINES) /DMTCR_EXPORTS /DMTL_MODULE=MTCR -D__WIN__ \r
70 \r
71 \r
72 !if $(FREEBUILD)\r
73 \r
74 !else\r
75 C_DEFINES=$(C_DEFINES) -DDEBUG -DDBG\r
76 !endif\r
77 \r
78 \r
79 # This is for the perl and zlib lib funcs, which requires __cdecl.\r
80 # TODO: define for all arch. check if MSC_STDCALL works.\r
81 386_STDCALL=0\r
82 amd64_STDCALL=0\r
83 \r
84 MSC_WARNING_LEVEL= /W3\r
85 \r
86 #BUILD_CONSUMES=mlxsys\r
87 BUILD_PRODUCES=mtcr\r
88 \r