summaryrefslogtreecommitdiffstats
path: root/otherlibs/labltk/browser/Makefile.nt
blob: a1ac3656857c81bc58071d9d6889885368006a08 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
include ../support/Makefile.common.nt

LABLTKLIB=-I ../labltk -I ../lib -I ../support
OTHERSLIB=-I $(OTHERS)/win32unix -I $(OTHERS)/str -I $(OTHERS)/systhreads
OCAMLTOPLIB=-I $(TOPDIR)/parsing -I $(TOPDIR)/utils -I $(TOPDIR)/typing
INCLUDES=$(OTHERSLIB) $(LABLTKLIB) $(OCAMLTOPLIB)
CCFLAGS=-I../../../byterun $(TK_DEFS)

ifeq ($(CCOMPTYPE),cc)
WINDOWS_APP=
else
WINDOWS_APP=-cclib "/link /subsystem:windows"
endif

OBJS =	list2.cmo	useunix.cmo	setpath.cmo	lexical.cmo	\
	fileselect.cmo	searchid.cmo	searchpos.cmo	shell.cmo	\
	help.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 .c .$(O)

.ml.cmo:
	$(CAMLCOMP) $(INCLUDES) $<

.mli.cmi:
	$(CAMLCOMP) $(INCLUDES) $<

.c.$(O):
	$(BYTECC) $(BYTECCCOMPOPTS) $(CCFLAGS) -c $<

all: ocamlbrowser.exe

ocamlbrowser.exe: $(TOPDIR)/toplevel/toplevellib.cma \
	../support/lib$(LIBNAME).$(A)
ocamlbrowser.exe: jglib.cma $(OBJS) winmain.$(O)
	$(CAMLC) -o ocamlbrowser.exe -custom $(INCLUDES) \
		$(TOPDIR)/toplevel/toplevellib.cma \
		unix.cma threads.cma str.cma $(LIBNAME).cma jglib.cma $(OBJS) \
		winmain.$(O) $(WINDOWS_APP)

jglib.cma: $(JG)
	$(CAMLCOMP) -a -o jglib.cma $(JG) 

install:
	if test -f ocamlbrowser.exe; then cp ocamlbrowser.exe $(BINDIR); fi

clean:
	rm -f *.cm? ocamlbrowser.exe dummy.mli *~ *.orig *.$(O)

depend:
	$(CAMLDEP) *.ml *.mli > .depend

dummy.mli:
	cp dummyWin.mli dummy.mli
shell.cmo: dummy.cmi
setpath.cmo fileselect.cmo lexical.cmi searchid.cmi typecheck.cmi: $(TOPDIR)/toplevel/toplevellib.cma

include	.depend