Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / BUILDER / makefile / private / api / cpp / winAdvancedSystemLib.mk
1 # Version : 0.0.4
2 # Author : Cedric.Bilat@he-arc.ch
3 #
4
5 ifndef __API_WIN_ADVANCED_LIBRARY_MK__
6 __API_WIN_ADVANCED_LIBRARY_MK__=true
7
8 ##########################################
9 # win advanced library #
10 ##########################################
11
12 #deprecated
13
14 #########################
15 # WINDOWS #
16 #########################
17
18 ifeq ($(OS),Win)
19
20 ############
21 # Visual #
22 ############
23
24 ifeq ($(COMPILATEUR),VISUAL)
25
26 ifneq (, $(findstring /MD,$(CXXFLAGS)))#findstring return vide si /MD pas trouver!
27 CXXFLAGS+= /MD #dynamicaly link CRT with the target
28 endif
29
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
32
33 #link
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
36
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
42 #must be used
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
46
47 endif
48
49 ############
50 # Intel #
51 ############
52
53 ifeq ($(COMPILATEUR),INTEL)
54
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
60 #must be used
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
64
65 endif
66
67 ############
68 # MINGW #
69 ############
70
71 ifeq ($(COMPILATEUR),MINGW)
72
73 #link
74 #rien
75
76 endif
77
78 endif
79
80
81
82 #########################
83 # LINUX #
84 #########################
85
86 ifeq ($(OS),Linux)
87
88 ############
89 # GCC #
90 ############
91
92 ifeq ($(COMPILATEUR),g++)
93
94 #link
95 #rien
96
97 endif
98
99 ############
100 # INTEL #
101 ############
102
103 ifeq ($(COMPILATEUR),INTEL)
104
105 #link
106 #rien
107
108 endif
109
110 endif
111
112 ##########################################
113 # END #
114 ##########################################
115
116 endif#__API_WIN_ADVANCED_LIBRARY_MK__
117