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 \
|
2001-04-13 02:27:04 -07:00
|
|
|
help.cmo \
|
1999-11-30 06:59:39 -08:00
|
|
|
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) $<
|
|
|
|
|
2000-08-24 23:56:06 -07:00
|
|
|
all: ocamlbrowser$(EXE)
|
1999-11-30 06:59:39 -08:00
|
|
|
|
2000-08-24 23:56:06 -07:00
|
|
|
ocamlbrowser$(EXE): $(TOPDIR)/toplevel/toplevellib.cma jglib.cma $(OBJ) \
|
|
|
|
../support/liblabltk41.a
|
2001-09-05 03:44:46 -07:00
|
|
|
$(LABLC) -o ocamlbrowser$(EXE) $(INCLUDES) -dllpath $(LABLTKDIR) \
|
1999-11-30 06:59:39 -08:00
|
|
|
$(TOPDIR)/toplevel/toplevellib.cma \
|
2000-04-16 19:26:44 -07:00
|
|
|
unix.cma str.cma labltk.cma jglib.cma $(OBJ)
|
1999-11-30 06:59:39 -08:00
|
|
|
|
|
|
|
jglib.cma: $(JG)
|
2001-04-13 02:27:04 -07:00
|
|
|
$(LABLCOMP) -a -o jglib.cma $(JG)
|
|
|
|
|
|
|
|
#help.ml: help.txt
|
|
|
|
# printf 'let text = "' > $@
|
|
|
|
# cat help.txt >> $@
|
|
|
|
# printf '";;\n' >> $@
|
1999-11-30 06:59:39 -08:00
|
|
|
|
|
|
|
install:
|
2000-08-24 23:56:06 -07:00
|
|
|
if test -f ocamlbrowser$(EXE); then : ; \
|
|
|
|
cp ocamlbrowser$(EXE) $(BINDIR); fi
|
1999-11-30 06:59:39 -08:00
|
|
|
|
|
|
|
clean:
|
2000-08-24 23:56:06 -07:00
|
|
|
rm -f *.cm? ocamlbrowser$(EXE) 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:
|
2000-04-23 19:39:35 -07:00
|
|
|
rm -f $@
|
|
|
|
ln -s dummyUnix.mli $@
|
2000-01-31 21:43:25 -08:00
|
|
|
shell.cmo: dummy.cmi
|
2001-10-01 07:20:09 -07:00
|
|
|
lexical.cmi searchid.cmi typecheck.cmi: $(TOPDIR)/toplevel/toplevellib.cma
|
2000-01-31 21:43:25 -08:00
|
|
|
|
1999-11-30 06:59:39 -08:00
|
|
|
include .depend
|