1999-12-07 07:25:56 -08:00
|
|
|
include ../support/Makefile.common
|
1999-11-30 06:59:39 -08:00
|
|
|
|
|
|
|
LABLTKLIB=-I ../lib -I ../support
|
|
|
|
OTHERSLIB=-I $(OTHERS)/unix -I $(OTHERS)/str
|
|
|
|
OCAMLTOPLIB=-I $(TOPDIR)/parsing -I $(TOPDIR)/utils -I $(TOPDIR)/typing
|
|
|
|
INCLUDES=$(OTHERSLIB) $(LABLTKLIB) $(OCAMLTOPLIB)
|
|
|
|
|
|
|
|
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) $<
|
|
|
|
|
1999-12-10 07:50:53 -08:00
|
|
|
all: ocamlbrowser
|
1999-11-30 06:59:39 -08:00
|
|
|
|
1999-12-10 07:50:53 -08:00
|
|
|
ocamlbrowser: $(TOPDIR)/toplevel/toplevellib.cma jglib.cma $(OBJ)
|
2000-03-12 05:11:26 -08:00
|
|
|
$(LABLC) -o ocamlbrowser $(INCLUDES) \
|
1999-11-30 06:59:39 -08:00
|
|
|
$(TOPDIR)/toplevel/toplevellib.cma \
|
|
|
|
unix.cma str.cma tk41.cma jglib.cma $(OBJ) \
|
2000-03-12 05:11:26 -08:00
|
|
|
$(TKLINKOPT)
|
1999-11-30 06:59:39 -08:00
|
|
|
|
|
|
|
jglib.cma: $(JG)
|
|
|
|
$(LABLCOMP) -a -o jglib.cma $(JG)
|
|
|
|
|
|
|
|
install:
|
1999-12-10 07:50:53 -08:00
|
|
|
if test -f ocamlbrowser; then : ; cp ocamlbrowser $(BINDIR); fi
|
1999-11-30 06:59:39 -08:00
|
|
|
|
|
|
|
clean:
|
2000-01-31 21:43:25 -08:00
|
|
|
rm -f *.cm? ocamlbrowser dummy.mli *~ *.orig
|
1999-11-30 06:59:39 -08:00
|
|
|
|
|
|
|
depend:
|
|
|
|
$(LABLDEP) *.ml *.mli > .depend
|
|
|
|
|
2000-01-31 21:43:25 -08:00
|
|
|
dummy.mli:
|
|
|
|
ln -sf dummyUnix.mli dummy.mli
|
|
|
|
shell.cmo: dummy.cmi
|
|
|
|
|
1999-11-30 06:59:39 -08:00
|
|
|
include .depend
|