2002-06-07 02:49:45 -07:00
|
|
|
include ../support/Makefile.common.nt
|
2000-01-31 21:43:25 -08:00
|
|
|
|
2002-04-26 05:16:26 -07:00
|
|
|
LABLTKLIB=-I ../labltk -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)
|
2002-06-07 02:49:45 -07:00
|
|
|
CCFLAGS=-I../../../byterun $(TK_DEFS)
|
2000-01-31 21:43:25 -08:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
ifeq ($(CCOMPTYPE),cc)
|
|
|
|
WINDOWS_APP=
|
|
|
|
else
|
|
|
|
WINDOWS_APP=-cclib "/link /subsystem:windows"
|
|
|
|
endif
|
|
|
|
|
|
|
|
OBJS = list2.cmo useunix.cmo setpath.cmo lexical.cmo \
|
2000-01-31 21:43:25 -08:00
|
|
|
fileselect.cmo searchid.cmo searchpos.cmo shell.cmo \
|
2002-06-19 07:10:59 -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
|
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
.SUFFIXES: .ml .mli .cmo .cmi .cmx .c .$(O)
|
2000-01-31 21:43:25 -08:00
|
|
|
|
|
|
|
.ml.cmo:
|
2002-04-26 05:16:26 -07:00
|
|
|
$(CAMLCOMP) $(INCLUDES) $<
|
2000-01-31 21:43:25 -08:00
|
|
|
|
|
|
|
.mli.cmi:
|
2002-04-26 05:16:26 -07:00
|
|
|
$(CAMLCOMP) $(INCLUDES) $<
|
2000-01-31 21:43:25 -08:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
.c.$(O):
|
2001-02-12 17:57:34 -08:00
|
|
|
$(BYTECC) $(BYTECCCOMPOPTS) $(CCFLAGS) -c $<
|
|
|
|
|
2002-04-16 22:36:36 -07:00
|
|
|
all: ocamlbrowser.exe
|
2000-01-31 21:43:25 -08:00
|
|
|
|
2002-04-16 22:36:36 -07:00
|
|
|
ocamlbrowser.exe: $(TOPDIR)/toplevel/toplevellib.cma \
|
2002-06-07 02:49:45 -07:00
|
|
|
../support/lib$(LIBNAME).$(A)
|
|
|
|
ocamlbrowser.exe: jglib.cma $(OBJS) winmain.$(O)
|
2002-04-26 05:16:26 -07:00
|
|
|
$(CAMLC) -o ocamlbrowser.exe -custom $(INCLUDES) \
|
2000-01-31 21:43:25 -08:00
|
|
|
$(TOPDIR)/toplevel/toplevellib.cma \
|
2002-06-07 02:49:45 -07:00
|
|
|
unix.cma threads.cma str.cma $(LIBNAME).cma jglib.cma $(OBJS) \
|
|
|
|
winmain.$(O) $(WINDOWS_APP)
|
2000-01-31 21:43:25 -08:00
|
|
|
|
|
|
|
jglib.cma: $(JG)
|
2002-04-26 05:16:26 -07:00
|
|
|
$(CAMLCOMP) -a -o jglib.cma $(JG)
|
2000-01-31 21:43:25 -08:00
|
|
|
|
2002-07-04 03:23:16 -07:00
|
|
|
help.ml:
|
|
|
|
echo 'let text = "\\' > $@
|
|
|
|
sed -e 's/^ /\\032/' -e 's/$$/\\n\\/' help.txt >> $@
|
|
|
|
echo '";;' >> $@
|
|
|
|
|
2000-01-31 21:43:25 -08:00
|
|
|
install:
|
2002-06-07 02:49:45 -07:00
|
|
|
if test -f ocamlbrowser.exe; then cp ocamlbrowser.exe $(BINDIR); fi
|
2000-01-31 21:43:25 -08:00
|
|
|
|
|
|
|
clean:
|
2002-06-07 02:49:45 -07:00
|
|
|
rm -f *.cm? ocamlbrowser.exe dummy.mli *~ *.orig *.$(O)
|
2000-01-31 21:43:25 -08:00
|
|
|
|
|
|
|
depend:
|
2002-04-26 05:16:26 -07:00
|
|
|
$(CAMLDEP) *.ml *.mli > .depend
|
2000-01-31 21:43:25 -08:00
|
|
|
|
|
|
|
dummy.mli:
|
|
|
|
cp dummyWin.mli dummy.mli
|
|
|
|
shell.cmo: dummy.cmi
|
2002-06-19 07:10:59 -07:00
|
|
|
setpath.cmo fileselect.cmo lexical.cmi searchid.cmi typecheck.cmi: $(TOPDIR)/toplevel/toplevellib.cma
|
2000-01-31 21:43:25 -08:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
include .depend
|