]> matita.cs.unibo.it Git - helm.git/blob - helm/DEVEL/lablgtk/lablgtk_20001129-0.1.0/applications/browser/Makefile
Initial revision
[helm.git] / helm / DEVEL / lablgtk / lablgtk_20001129-0.1.0 / applications / browser / Makefile
1 # $Id$
2 # Makefile for lablgtk.
3
4 all: browser
5
6 CAMLC = ocamlc
7 CAMLOPT = ocamlopt
8 COMPILER = $(CAMLC) $(MLFLAGS) -labels -w s -c
9 LINKER = $(CAMLC) $(MLFLAGS)
10 COMPOPT = $(CAMLOPT) $(MLFLAGS) -labels -w s -c
11 LINKOPT = $(CAMLOPT) $(MLFLAGS)
12
13 RANLIB = ranlib
14
15 include ../../config.make
16
17 MLFLAGS = -I ../.. -I ocaml-src/utils -I ocaml-src/parsing
18
19 # Rules
20 .SUFFIXES: .ml .mli .cmo .cmi .cmx .c .o .var .h .opt .def
21 .ml.cmo:
22         $(COMPILER) $<
23 .mli.cmi:
24         $(COMPILER) $<
25 .ml.cmx:
26         $(COMPOPT) $<
27
28 # Targets
29 MLOBJS = text.cmo file.cmo lexical.cmo shell.cmo editor.cmo
30
31 browser: $(MLOBJS)
32         $(LINKER) -o $@ toplevellib.cma str.cma unix.cma \
33             lablgtk.cma $(MLOBJS) 
34
35 clean:
36         rm -f *.cm* browser
37
38 .depend:
39         ocamldep *.ml *.mli > .depend
40
41 include .depend