1
1
### Configuration section
3
3
# Where to install the library. By default: OCaml's standard library directory.
4
INSTALLDIR=$(OCAMLSTDLIB)
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
10
10
### End of configuration section
46
CFLAGS=-I$(OCAMLSTDLIB)
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) \
65
67
allopt: dllcryptokit.dll libcryptokit.$(A) cryptokit.cmi cryptokit.cmxa
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))
70
72
libcryptokit.$(A): $(SC_OBJS)
71
73
$(call MKLIB,$@,$(SC_OBJS))
123
125
rm -f *.cm* *.$(O) *.$(A) *.dll
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