7acd92f2c15ea56c0ce82cc9833b30fb7427bc5a
[mirror/winof/.git] / ulp / opensm / user / libopensm / SOURCES
1 !if $(FREEBUILD)
2 TARGETNAME=opensm_ibal
3 !else
4 TARGETNAME=opensm_ibald
5 !endif
6 TARGETTYPE=LIBRARY
7
8 !if !defined(WINIBHOME)
9 WINIBHOME=..\..\..\..
10 !endif
11
12 LIBPATH=$(WINIBHOME)\bin\user\obj$(BUILD_ALT_DIR)
13
14 !if defined(OSM_TARGET)
15 TARGETPATH=$(OSM_TARGET)\bin\user\obj$(BUILD_ALT_DIR)
16 !else
17 TARGETPATH=$(WINIBHOME)\bin\user\obj$(BUILD_ALT_DIR)
18 !endif
19
20 USE_NTDLL=1
21 OVR_DIR=..\addon
22
23
24 SOURCES=\
25    osm_log.c \
26    osm_mad_pool.c \
27    osm_helper.c
28
29 OSM_HOME=..
30
31 TARGETLIBS=\
32 !if $(FREEBUILD)
33                         $(LIBPATH)\*\ibal.lib \
34                         $(LIBPATH)\*\complib.lib \
35                         $(TARGETPATH)\*\osmv_ibal.lib \
36                         $(CRT_LIB_PATH)\msvcrt.lib
37
38 !else
39                         $(LIBPATH)\*\ibald.lib \
40                         $(LIBPATH)\*\complibd.lib \
41                         $(TARGETPATH)\*\osmv_ibald.lib \
42                         $(CRT_LIB_PATH)\msvcrt.lib
43 !endif
44
45 #DO NOT TOUCH the order of search path , until ib_types.h merging process will be done
46 INCLUDES= \
47         $(OSM_HOME)\include; \
48         $(OSM_HOME); \
49         $(WINIBHOME)\inc; \
50         $(WINIBHOME)\inc\user;
51
52 # Could be any special flag needed for this project 
53 USER_C_FLAGS=$(USER_C_FLAGS) /MD
54 #Add preproccessor definitions
55 C_DEFINES=$(C_DEFINES) -DWIN32 -D__WIN__ -D__i386__ -Dinline=__inline -DMT_LITTLE_ENDIAN -DOSM_VENDOR_INTF_AL
56 C_DEFINES=$(C_DEFINES) -I.. -DHAVE_CONFIG_H
57 !if !$(FREEBUILD)
58 #C_DEFINES=$(C_DEFINES) -D_DEBUG -DDEBUG -DDBG
59 C_DEFINES=$(C_DEFINES) 
60 !endif
61
62 LINKER_FLAGS= $(LINKER_FLAGS)
63 MSC_WARNING_LEVEL= /W3
64 #MSC_OPTIMIZATION= /O0