~ubuntu-branches/debian/sid/ocaml/sid

« back to all changes in this revision

Viewing changes to config/Makefile.msvc64

  • Committer: Bazaar Package Importer
  • Author(s): Stefano Zacchiroli
  • Date: 2009-02-22 08:49:13 UTC
  • mfrom: (12.1.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090222084913-3i0uw2bhd0lgw0ok
* Uploading to unstable
* debian/control: bump dh-ocaml to (>= 0.4) to avoid buggy ocamlinit.mk

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
#                                                                       #
12
12
#########################################################################
13
13
 
14
 
# $Id: Makefile.msvc64,v 1.6.2.1 2007/10/25 09:31:54 xleroy Exp $
 
14
# $Id: Makefile.msvc64,v 1.13 2008/07/29 08:31:41 xleroy Exp $
15
15
 
16
16
# Configuration for Windows, Visual C++ compiler
17
17
 
61
61
SHAREDCCCOMPOPTS=
62
62
NATIVECCPROFOPTS=
63
63
NATIVECCRPATH=
64
 
ASFLAGS=
 
64
ASM=ml64 /nologo /Cp /c /Fo
65
65
ASPP=
66
 
ASPPFLAGS=
67
66
ASPPPROFFLAGS=
68
67
PROFILING=noprof
69
68
DYNLINKOPTS=
70
 
DEBUGGER=
 
69
DEBUGGER=ocamldebugger
71
70
CC_PROFILE=
72
71
SYSTHREAD_SUPPORT=true
 
72
CMXS=cmxs
73
73
 
74
74
########## Configuration for the bytecode compiler
75
75
 
77
77
BYTECC=cl /nologo -D_CRT_SECURE_NO_DEPRECATE
78
78
 
79
79
### Additional compile-time options for $(BYTECC).  (For static linking.)
80
 
BYTECCCOMPOPTS=/Ox /MT
 
80
BYTECCCOMPOPTS=/Ox /MD
81
81
 
82
82
### Additional compile-time options for $(BYTECC).  (For debug version.)
83
83
BYTECCDBGCOMPOPTS=-DDEBUG /Zi /W3 /Wp64
84
84
 
85
85
### Additional link-time options for $(BYTECC).  (For static linking.)
86
 
BYTECCLINKOPTS=/MT /F33554432
 
86
BYTECCLINKOPTS=/MD /F33554432
87
87
 
88
88
### Additional compile-time options for $(BYTECC).  (For building a DLL.)
89
 
DLLCCCOMPOPTS=/Ox /MD -DCAML_DLL
 
89
DLLCCCOMPOPTS=/Ox /MD
90
90
 
91
91
### Libraries needed
92
92
EXTRALIBS=bufferoverflowu.lib
93
 
BYTECCLIBS=advapi32.lib $(EXTRALIBS)
94
 
NATIVECCLIBS=advapi32.lib $(EXTRALIBS)
 
93
BYTECCLIBS=advapi32.lib ws2_32.lib $(EXTRALIBS)
 
94
NATIVECCLIBS=advapi32.lib ws2_32.lib $(EXTRALIBS)
95
95
 
96
96
### How to invoke the C preprocessor
97
97
CPP=cl /nologo /EP
98
98
 
99
 
### How to merge a .manifest (if any) in a .exe or .dll
100
 
MERGEMANIFEST=test ! -f $(1).manifest || mt -nologo -outputresource:$(1) -manifest $(1).manifest && rm -f $(1).manifest
101
 
#ml let mergemanifest out = Printf.sprintf "test ! -f %s.manifest || mt -nologo -outputresource:%s -manifest %s.manifest && rm -f %s.manifest" out out out out;;
102
 
 
103
 
### How to build an EXE
104
 
MKEXE=$(BYTECC) /Fe$(1) $(2) && ($(MERGEMANIFEST))
105
 
#ml let mkexe out files opts = Printf.sprintf "%s /Fe%s %s %s && (%s)" bytecc out opts files (mergemanifest out);;
106
 
 
107
 
### How to build a DLL
108
 
MKDLL=link /nologo /dll /machine:AMD64 /out:$(1) /implib:$(2) $(3) $(EXTRALIBS) && ($(MERGEMANIFEST))
109
 
#ml let mkdll out implib files opts = Printf.sprintf "link /nologo /dll /machine:AMD64 /out:%s /implib:%s %s %s && (%s)" out implib opts files (mergemanifest out);;
 
99
### Flexlink
 
100
FLEXLINK=flexlink -x64 -merge-manifest
 
101
FLEXDIR=$(shell $(FLEXLINK) -where)
 
102
IFLEXDIR=-I"$(FLEXDIR)"
 
103
MKDLL=$(FLEXLINK)
 
104
MKEXE=$(FLEXLINK) -exe
 
105
MKMAINDLL=$(FLEXLINK) -maindll
110
106
 
111
107
### How to build a static library
112
108
MKLIB=link /lib /nologo /machine:AMD64 /out:$(1) $(2)
118
114
#ml let syslib x = x ^ ".lib";;
119
115
 
120
116
### The ranlib command
121
 
RANLIB=
 
117
RANLIB=echo
122
118
RANLIBCMD=
123
119
 
124
120
############# Configuration for the native-code compiler
136
132
NATIVECC=cl /nologo
137
133
 
138
134
### Additional compile-time options for $(NATIVECC).
139
 
NATIVECCCOMPOPTS=/Ox /MT
 
135
NATIVECCCOMPOPTS=/Ox /MD
140
136
 
141
137
### Additional link-time options for $(NATIVECC)
142
 
NATIVECCLINKOPTS=/MT /F33554432
 
138
NATIVECCLINKOPTS=/MD /F33554432
143
139
 
144
140
### Build partially-linked object file
145
 
PARTIALLD=link /lib /nologo /machine:AMD64
146
141
PACKLD=link /lib /nologo /machine:AMD64 /out:# there must be no space after this '/out:'
147
142
 
148
143
############# Configuration for the contributed libraries