blob: 47ffdf4e1d0fc60389eb5390d38b0a7f5148644c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
--- Makefile.orig Thu Apr 18 16:39:26 2002
+++ Makefile Tue Aug 1 12:53:14 2006
@@ -1,10 +1,12 @@
#Adjust this directory for installation
-LIBDIR=`ocamlc -where`
+LIBDIR=$(LOCALBASE)/lib/ocaml/site-lib/classes
+DISTDIR=$(PREFIX)/lib/ocaml/site-lib/classes
COMPILER=ocamlc -c
LIBRARIAN=ocamlc -a
OPTCOMP=ocamlopt -c
OPTLIB=ocamlopt -a
-INSTALL=cp
+INSTALL=install -o root -g wheel -m 644
+INSTALLDIR=install -d -o root -g wheel -m 755
OBJECTS=obuffer.cmo ohashtbl.cmo oqueue.cmo ostack.cmo \
omap.cmo oset.cmo ostream.cmo omapping.cmo
@@ -16,13 +18,13 @@
.SUFFIXES: .ml .mli .cmo .cmi .cmx
.ml.cmo:
- $(COMPILER) $(INCLUDES) $<
+ $(COMPILER) -ccopt "${CFLAGS}" $(INCLUDES) $<
.ml.cmx:
- $(OPTCOMP) $(INCLUDES) $<
+ $(OPTCOMP) -ccopt "${CFLAGS}" $(INCLUDES) $<
.mli.cmi:
- $(COMPILER) $(INCLUDES) $<
+ $(COMPILER) -ccopt "${CFLAGS}" $(INCLUDES) $<
all: stdclass.cma
opt: stdclass.cmxa
@@ -43,12 +45,15 @@
@$(MAKE) real-install LIBDIR=$(LIBDIR)
real-install:
- $(INSTALL) stdclass.cma *.cmi *.mli $(LIBDIR)
+ $(INSTALLDIR) $(DISTDIR)
+ $(INSTALL) stdclass.cma *.cmi *.mli $(DISTDIR)
if test -f stdclass.cmxa; \
- then $(INSTALL) stdclass.cmxa stdclass.a *.cmx $(LIBDIR); fi
+ then $(INSTALL) stdclass.cmxa stdclass.a *.cmx $(DISTDIR); fi
+ if test -f META; \
+ then $(INSTALL) META $(DISTDIR); fi
clean:
- rm -f *.cm* *.o *.a *~ #*
+ rm -f *.cm* *.o *.a *~
depend:
ocamldep *.ml *.mli > .depend
|