summaryrefslogtreecommitdiffstats
path: root/otherlibs/labltk/lib/Makefile.nt
blob: cc9f453a6ff9867575525bba6f7e7be8740ab00e (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
!include ..\support\Makefile.common.nt

COMPFLAGS= -I ../support

SUPPORT=../support/support.cmo ../support/widget.cmo ../support/protocol.cmo \
        ../support/textvariable.cmo ../support/timer.cmo \
        ../support/fileevent.cmo

SUPPORTX = $(SUPPORT:.cmo=.cmx)

TOPDEPS = $(TOPDIR)/toplevel/toplevellib.cma $(TOPDIR)/toplevel/topmain.cmo

all : labltk.cma labltk

opt : labltk.cmxa

include ./modules
WIDGETOBJSX = $(WIDGETOBJS:.cmo=.cmx)

labltk.cma : $(SUPPORT) $(WIDGETOBJS) tk.cmo 
	$(LABLLIBR) -custom -o labltk.cma $(SUPPORT) tk.cmo $(WIDGETOBJS) \
	  -cclib -llabltk41 $(TK_LINK)

labltk.cmxa : $(SUPPORTX) $(WIDGETOBJSX) tk.cmx
	$(CAMLOPTLIBR) -o labltk.cmxa $(SUPPORTX) tk.cmx $(WIDGETOBJSX) \
	  -cclib -llabltk41 $(TK_LINK)

labltk : $(TOPDEPS) $(WIDGETOBJS) $(SUPPORT)
	$(LABLC) -custom -linkall -o $@ -I ../support $(TKLINKOPT) \
	       -I $(TOPDIR)/toplevel toplevellib.cma labltk.cma \
	       -I $(OTHERS)/win32unix -ccopt -L$(OTHERS)/unix unix.cma \
	       -I $(OTHERS)/str -ccopt -L$(OTHERS)/str str.cma \
	       topmain.cmo

# All .{ml,mli} files are generated in this directory
clean : 
	rm -f *.cm* *.ml *.mli *.o *.a labltktop

install: labltk.cma labltk
	@if not exist $(LABLTKDIR) mkdir $(LABLTKDIR)
	cp *.cmi labltk.cma $(LABLTKDIR)
	@if not exist $(BINDIR) mkdir $(BINDIR)
	cp labltk.exe $(BINDIR)

installopt: labltk.cmxa
	@if not exist $(LABLTKDIR) mkdir $(LABLTKDIR)
	cp labltk.cmxa labltk.lib $(LABLTKDIR)

.SUFFIXES :
.SUFFIXES : .mli .ml .cmi .cmx .cmo .mlp

.mli.cmi:
	$(LABLCOMP) $(COMPFLAGS) $<

.ml.cmo:
	$(LABLCOMP) $(COMPFLAGS) $<

.ml.cmx:
	$(CAMLOPT) -c $(COMPFLAGS) $<

!include .depend