2 # Author : Cedric.Bilat@he-arc.ch
5 ifndef __API_WIN_ADVANCED_LIBRARY_MK__
6 __API_WIN_ADVANCED_LIBRARY_MK__=true
8 ##########################################
9 # win advanced library #
10 ##########################################
14 #########################
16 #########################
24 ifeq ($(COMPILATEUR),VISUAL)
26 ifneq (, $(findstring /MD,$(CXXFLAGS)))#findstring return vide si /MD pas trouver!
27 CXXFLAGS+= /MD #dynamicaly link CRT with the target
30 #CXXFLAGS+= /MT #statically link the MS CRT to the DLL par d�faut !
31 # en commentaire, pour pouvoir mettre /MD pour linker own lib
34 DEFAULT_SYS_LIBRARY_FILES+= kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib
35 DEFAULT_SYS_LIBRARY_FILES+= shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
37 ADVANCED_SYS_LIBRARY:=$(LIB) #where LIB is a va set by the script vcvarsamd64.bat. Requiert speccifique .dll as msvcr90.dll for running)
38 ADVANCED_SYS_LIBRARY:=$(subst \,/,$(ADVANCED_SYS_LIBRARY))
39 ADVANCED_SYS_LIBRARY:=$(subst ;, ,$(ADVANCED_SYS_LIBRARY))
40 #CRT =C runtime library.
41 #Only one of: libcmt.lib libcmt.lib libcmtd.lib msvcrtd.lib msvcmrt.lib msvcurt.lib msvcrt.lib
43 #Choice smart 1: use msvcrt.lib (Contrainte use /MD)
44 #Choice smart 2: use libcmt.lib (Contrainte use /MT)
45 EXCLUDE_LIBRARY_FILES+= libcmt.lib libcmtd.lib msvcrtd.lib msvcmrt.lib
53 ifeq ($(COMPILATEUR),INTEL)
55 ADVANCED_SYS_LIBRARY:=$(LIB) #where LIB is a va set by the script vcvarsamd64.bat. Requiert speccifique .dll as msvcr90.dll for running)
56 ADVANCED_SYS_LIBRARY:=$(subst \,/,$(ADVANCED_SYS_LIBRARY))
57 ADVANCED_SYS_LIBRARY:=$(subst ;, ,$(ADVANCED_SYS_LIBRARY))
58 #CRT =C runtime library.
59 #Only one of: libcmt.lib libcmt.lib libcmtd.lib msvcrtd.lib msvcmrt.lib msvcurt.lib msvcrt.lib
61 #Choice smart 1: use msvcrt.lib (Contrainte use /MD)
62 #Choice smart 2: use libcmt.lib (Contrainte use /MT)
63 EXCLUDE_LIBRARY_FILES+= libcmt.lib libcmtd.lib msvcrtd.lib msvcmrt.lib libcpmtd.lib libcpmt.lib
71 ifeq ($(COMPILATEUR),MINGW)
82 #########################
84 #########################
92 ifeq ($(COMPILATEUR),g++)
103 ifeq ($(COMPILATEUR),INTEL)
112 ##########################################
114 ##########################################
116 endif#__API_WIN_ADVANCED_LIBRARY_MK__