~ubuntu-branches/ubuntu/lucid/cryptokit/lucid

« back to all changes in this revision

Viewing changes to Makefile.win32

  • Committer: Bazaar Package Importer
  • Author(s): Samuel Mimram
  • Date: 2006-05-19 14:09:09 UTC
  • mfrom: (3.1.2 dapper)
  • Revision ID: james.westby@ubuntu.com-20060519140909-4z01m12l8t4pd8ek
Tags: 1.3-3
* Rebuild with OCaml 3.09.2.
* Updated standards version to 3.7.2, no changes needed.
* We don't need to remove rpaths anymore.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
### Configuration section
2
2
 
3
3
# Where to install the library. By default: OCaml's standard library directory.
4
 
INSTALLDIR=$(OCAMLLIB)
 
4
INSTALLDIR=$(OCAMLSTDLIB)
5
5
 
6
6
# Which Win32 port of OCaml is used?
7
 
TOOLCHAIN=msvc     # Native Win32 port with Microsoft compilers
8
 
#TOOLCHAIN=mingw    # Native Win32 port with Mingw compilers
 
7
#TOOLCHAIN=msvc     # Native Win32 port with Microsoft compilers
 
8
TOOLCHAIN=mingw    # Native Win32 port with Mingw compilers
9
9
 
10
10
### End of configuration section
11
11
 
13
13
OCAMLC=ocamlc -g
14
14
OCAMLOPT=ocamlopt
15
15
OCAMLDEP=ocamldep
16
 
OCAMLLIB=`$(OCAMLC) -where`
 
16
OCAMLSTDLIB="$(shell $(OCAMLC) -where)"
17
17
 
18
18
ifeq ($(strip $(TOOLCHAIN)),mingw)
19
19
 
43
43
LIBS=advapi32.lib
44
44
endif
45
45
 
46
 
CFLAGS=-I$(OCAMLLIB)
 
46
CFLAGS=-I$(OCAMLSTDLIB)
47
47
 
48
48
C_OBJS=\
49
49
  rijndael-alg-fst.$(O) stubs-aes.$(O) \
50
50
  d3des.$(O) stubs-des.$(O) \
51
51
  arcfour.$(O) stubs-arcfour.$(O) \
52
52
  sha1.$(O) stubs-sha1.$(O) \
 
53
  sha256.$(O) stubs-sha256.$(O) \
 
54
  ripemd160.$(O) stubs-ripemd160.$(O) \
53
55
  stubs-md5.$(O) \
54
56
  stubs-zlib.$(O) \
55
57
  stubs-misc.$(O) \
65
67
allopt: dllcryptokit.dll libcryptokit.$(A) cryptokit.cmi cryptokit.cmxa 
66
68
 
67
69
dllcryptokit.dll: $(DC_OBJS)
68
 
        $(call MKDLL,$@,tmp.$(A),$(DC_OBJS) $(OCAMLLIB)/ocamlrun.$(A) $(LIBS))
 
70
        $(call MKDLL,$@,tmp.$(A),$(DC_OBJS) $(OCAMLSTDLIB)/ocamlrun.$(A) $(LIBS))
69
71
 
70
72
libcryptokit.$(A): $(SC_OBJS)
71
73
        $(call MKLIB,$@,$(SC_OBJS))
122
124
clean::
123
125
        rm -f *.cm* *.$(O) *.$(A) *.dll
124
126
 
125
 
arcfour.$(SO) arcfour.$(DO): arcfour.h
126
 
d3des.$(SO) d3des.$(DO): d3des.h
127
 
rijndael-alg-fst.$(SO) rijndael-alg-fst.$(DO): rijndael-alg-fst.h
128
 
sha1.$(SO) sha1.$(DO): sha1.h
129
 
stubs-aes.$(SO) stubs-aes.$(DO): rijndael-alg-fst.h
130
 
stubs-arcfour.$(SO) stubs-arcfour.$(DO): arcfour.h
131
 
stubs-des.$(SO) stubs-des.$(DO): d3des.h
132
 
stubs-sha1.$(SO) stubs-sha1.$(DO): sha1.h
 
127
arcfour.$(SO) arcfour.$(DO): arcfour.c arcfour.h
 
128
d3des.$(SO) d3des.$(DO): d3des.c d3des.h
 
129
rijndael-alg-fst.$(SO) rijndael-alg-fst.$(DO): rijndael-alg-fst.c rijndael-alg-fst.h
 
130
ripemd160.$(SO) ripemd160.$(DO): ripemd160.c ripemd160.h
 
131
sha1.$(SO) sha1.$(DO): sha1.c sha1.h
 
132
sha256.$(SO) sha256.$(DO): sha256.c sha256.h
 
133
stubs-aes.$(SO) stubs-aes.$(DO): stubs-aes.c rijndael-alg-fst.h
 
134
stubs-arcfour.$(SO) stubs-arcfour.$(DO): stubs-arcfour.c arcfour.h
 
135
stubs-des.$(SO) stubs-des.$(DO): stubs-des.c d3des.h
 
136
stubs-md5.$(SO) stubs-md5.$(DO): stubs-md5.c
 
137
stubs-misc.$(SO) stubs-misc.$(DO): stubs-misc.c
 
138
stubs-ripemd160.$(SO) stubs-ripemd160.$(DO): stubs-ripemd160.c ripemd160.h
 
139
stubs-rng.$(SO) stubs-rng.$(DO): stubs-rng.c
 
140
stubs-sha1.$(SO) stubs-sha1.$(DO): stubs-sha1.c sha1.h
 
141
stubs-sha256.$(SO) stubs-sha256.$(DO): stubs-sha256.c sha256.h
 
142
stubs-zlib.$(SO) stubs-zlib.$(DO): stubs-zlib.c
133
143
 
134
144
include .depend