2000-01-31 21:43:25 -08:00
|
|
|
!include ..\support\Makefile.common.nt
|
|
|
|
|
|
|
|
LABLTKLIB=-I ../lib -I ../support
|
2000-01-31 23:43:54 -08:00
|
|
|
OTHERSLIB=-I $(OTHERS)/win32unix -I $(OTHERS)/str -I $(OTHERS)/systhreads
|
2000-01-31 21:43:25 -08:00
|
|
|
OCAMLTOPLIB=-I $(TOPDIR)/parsing -I $(TOPDIR)/utils -I $(TOPDIR)/typing
|
|
|
|
INCLUDES=$(OTHERSLIB) $(LABLTKLIB) $(OCAMLTOPLIB)
|
2001-02-12 17:57:34 -08:00
|
|
|
CCFLAGS=-I..\..\..\byterun /Zi $(TK_DEFS)
|
2000-01-31 21:43:25 -08:00
|
|
|
|
|
|
|
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 \
|
2000-01-31 21:43:25 -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) $<
|
|
|
|
|
2001-02-12 17:57:34 -08:00
|
|
|
.c.obj:
|
|
|
|
$(BYTECC) $(BYTECCCOMPOPTS) $(CCFLAGS) -c $<
|
|
|
|
|
2000-01-31 21:43:25 -08:00
|
|
|
all: ocamlbrowser
|
|
|
|
|
2001-02-12 17:57:34 -08:00
|
|
|
ocamlbrowser: $(TOPDIR)/toplevel/toplevellib.cma jglib.cma $(OBJ) winmain.obj
|
2000-03-16 05:35:20 -08:00
|
|
|
$(LABLC) -o ocamlbrowser $(INCLUDES) \
|
2000-01-31 21:43:25 -08:00
|
|
|
$(TOPDIR)/toplevel/toplevellib.cma \
|
2000-04-13 20:40:13 -07:00
|
|
|
unix.cma threads.cma str.cma labltk.cma jglib.cma $(OBJ) \
|
2001-02-12 17:57:34 -08:00
|
|
|
$(TKLINKOPT) winmain.obj
|
2000-01-31 21:43:25 -08:00
|
|
|
|
|
|
|
jglib.cma: $(JG)
|
|
|
|
$(LABLCOMP) -a -o jglib.cma $(JG)
|
|
|
|
|
|
|
|
install:
|
|
|
|
if exist ocamlbrowser.exe cp ocamlbrowser.exe $(BINDIR)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.cm? ocamlbrowser dummy.mli *~ *.orig
|
|
|
|
|
|
|
|
depend:
|
|
|
|
$(LABLDEP) *.ml *.mli > .depend
|
|
|
|
|
|
|
|
dummy.mli:
|
|
|
|
cp dummyWin.mli dummy.mli
|
|
|
|
shell.cmo: dummy.cmi
|
|
|
|
|
|
|
|
!include .depend
|