blob: 94b11d80ce178c7822772a18d7df065a575b3764 (
plain)
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
|
include ../Makefile.config
LINKER=labltklink
LABLTKLIB=-I $(INSTALLDIR)
INCLUDES=$(LABLTKLIB) $(OLABLINCLUDES)
OLABLINCLUDES=-I $(OCAMLDIR)/parsing -I $(OCAMLDIR)/utils -I $(OCAMLDIR)/typing
OBJ = list2.cmo useunix.cmo setpath.cmo lexical.cmo \
fileselect.cmo searchid.cmo searchpos.cmo shell.cmo \
viewer.cmo typecheck.cmo editor.cmo main.cmo
JG = jg_tk.cmo jg_config.cmo jg_bind.cmo jg_completion.cmo \
jg_box.cmo \
jg_button.cmo jg_toplevel.cmo jg_text.cmo jg_message.cmo \
jg_menu.cmo jg_entry.cmo jg_multibox.cmo jg_memo.cmo
# Default rules
.SUFFIXES: .ml .mli .cmo .cmi .cmx
.ml.cmo:
$(LABLCOMP) $(INCLUDES) $<
.mli.cmi:
$(LABLCOMP) $(INCLUDES) $<
all: lablbrowser
lablbrowser: jglib.cma $(OBJ)
$(LINKER) -o lablbrowser $(LABLTKLIB) toplevellib.cma \
unix.cma str.cma tk41.cma jglib.cma $(OBJ) \
-cclib -lstr -cclib -lunix $(SYSLIBS)
jglib.cma: $(JG)
$(LABLCOMP) -a -o jglib.cma $(JG)
install:
if test -f lablbrowser; then : ; cp lablbrowser $(INSTALLBINDIR); fi
clean:
rm -f *.cm? lablbrowser *~ *.orig
depend:
$(LABLDEP) *.ml *.mli > .depend
include .depend
|