~ubuntu-branches/debian/sid/ocaml/sid

« back to all changes in this revision

Viewing changes to otherlibs/labltk/lib/Makefile.nt

  • Committer: Bazaar Package Importer
  • Author(s): Stefano Zacchiroli
  • Date: 2009-02-22 08:49:13 UTC
  • mfrom: (12.1.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090222084913-3i0uw2bhd0lgw0ok
* Uploading to unstable
* debian/control: bump dh-ocaml to (>= 0.4) to avoid buggy ocamlinit.mk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
include ../support/Makefile.common.nt
2
 
 
3
 
all: $(LIBNAME).cma
4
 
 
5
 
opt: $(LIBNAME).cmxa
6
 
 
7
 
clean: 
8
 
        rm -f $(LIBNAME).cma $(LIBNAME).cmxa *.$(A)
9
 
 
10
 
include ../labltk/modules
11
 
LABLTKOBJS=tk.cmo $(WIDGETOBJS)
12
 
 
13
 
include ../camltk/modules
14
 
CAMLTKOBJS=cTk.cmo $(CWIDGETOBJS) labltk.cmo camltk.cmo
15
 
 
16
 
SUPPORT=../support/support.cmo ../support/rawwidget.cmo \
17
 
        ../support/widget.cmo ../support/protocol.cmo \
18
 
        ../support/textvariable.cmo ../support/timer.cmo \
19
 
        ../support/fileevent.cmo ../support/camltkwrap.cmo
20
 
 
21
 
TKOBJS=$(SUPPORT) $(LABLTKOBJS) $(CAMLTKOBJS)
22
 
 
23
 
TOPDEPS = $(TOPDIR)/toplevel/toplevellib.cma $(TOPDIR)/toplevel/topmain.cmo
24
 
 
25
 
UNIXLIB = $(call SYSLIB,wsock32)
26
 
 
27
 
$(LIBNAME).cma: $(SUPPORT)
28
 
        cd ../labltk ; $(MAKEREC)
29
 
        cd ../camltk ; $(MAKEREC)
30
 
        $(CAMLLIBR) -o $(LIBNAME).cma -I ../labltk -I ../camltk $(TKOBJS) \
31
 
          -dllib -l$(LIBNAME) -cclib -l$(LIBNAME) \
32
 
          -cclib "$(TK_LINK)" -cclib $(UNIXLIB)
33
 
 
34
 
$(LIBNAME).cmxa: $(SUPPORT:.cmo=.cmx)
35
 
        cd ../labltk; $(MAKEREC) opt
36
 
        cd ../camltk; $(MAKEREC) opt
37
 
        $(CAMLOPTLIBR) -o $(LIBNAME).cmxa -I ../labltk -I ../camltk \
38
 
          $(TKOBJS:.cmo=.cmx) -cclib -l$(LIBNAME) \
39
 
          -cclib "$(TK_LINK)" -cclib $(UNIXLIB)
40
 
 
41
 
# $(LIBNAME)top$(EXE) : $(TOPDEPS) $(LIBNAME).cma ../support/lib$(LIBNAME).a
42
 
#       $(CAMLC) -linkall -o $(LIBNAME)top$(EXE) -I ../support \
43
 
#              -I $(TOPDIR)/toplevel toplevellib.cma \
44
 
#              -I ../labltk -I ../camltk $(LIBNAME).cma \
45
 
#              -I $(OTHERS)/unix unix.cma \
46
 
#              -I $(OTHERS)/str str.cma \
47
 
#              topmain.cmo
48
 
49
 
# $(LIBNAME): Makefile $(TOPDIR)/config/Makefile
50
 
#       @echo Generate $@
51
 
#       @echo "#!/bin/sh" > $@
52
 
#       @echo 'exec $(INSTALLDIR)/$(LIBNAME)top$(EXE) -I $(INSTALLDIR) $$*' >> $@
53
 
 
54
 
install: all
55
 
        mkdir -p $(INSTALLDIR)
56
 
        cp $(LIBNAME).cma $(INSTALLDIR)
57
 
 
58
 
installopt: opt
59
 
        mkdir -p $(INSTALLDIR)
60
 
        cp $(LIBNAME).cmxa $(LIBNAME).$(A) $(INSTALLDIR)
 
1
include Makefile
 
 
b'\\ No newline at end of file'