Lines 19-28
Link Here
|
19 |
OCAMLOPT=ocamlopt |
19 |
OCAMLOPT=ocamlopt |
20 |
OCAMLDEP=ocamldep |
20 |
OCAMLDEP=ocamldep |
21 |
OCAMLMKLIB=ocamlmklib |
21 |
OCAMLMKLIB=ocamlmklib |
|
|
22 |
OCAMLFIND=ocamlfind |
22 |
|
23 |
|
23 |
OBJS=zlib.cmo zip.cmo gzip.cmo |
24 |
OBJS=zlib.cmo zip.cmo gzip.cmo |
24 |
C_OBJS=zlibstubs.o |
25 |
C_OBJS=zlibstubs.o |
25 |
|
26 |
|
|
|
27 |
LIBINSTALL_FILES = $(wildcard *.mli *.cmi *.cma *.cmxa *.a *.so) |
28 |
|
26 |
all: libcamlzip.a zip.cma |
29 |
all: libcamlzip.a zip.cma |
27 |
|
30 |
|
28 |
allopt: libcamlzip.a zip.cmxa |
31 |
allopt: libcamlzip.a zip.cmxa |
Lines 55-72
Link Here
|
55 |
rm -f *.o *.a |
58 |
rm -f *.o *.a |
56 |
|
59 |
|
57 |
install: |
60 |
install: |
58 |
mkdir -p $(INSTALLDIR) |
61 |
$(OCAMLFIND) install camlzip META $(LIBINSTALL_FILES) |
59 |
cp zip.cma zip.cmi gzip.cmi zip.mli gzip.mli libcamlzip.a $(INSTALLDIR) |
|
|
60 |
if test -f dllcamlzip.so; then \ |
61 |
cp dllcamlzip.so $(INSTALLDIR); \ |
62 |
ldconf=`$(OCAMLC) -where`/ld.conf; \ |
63 |
installdir=$(INSTALLDIR); \ |
64 |
if test `grep -s -c $$installdir'$$' $$ldconf || :` = 0; \ |
65 |
then echo $$installdir >> $$ldconf; fi \ |
66 |
fi |
67 |
|
68 |
installopt: |
69 |
cp zip.cmxa zip.a zip.cmx gzip.cmx $(INSTALLDIR) |
70 |
|
62 |
|
71 |
depend: |
63 |
depend: |
72 |
gcc -MM -I$(ZLIB_INCLUDE) *.c > .depend |
64 |
gcc -MM -I$(ZLIB_INCLUDE) *.c > .depend |